tDressBot_ex3
の編集
http://www.yama-lab.org/fwb4pi/index.php?tDressBot_ex3
[
トップ
] [
編集
|
差分
|
バックアップ
|
添付
|
リロード
] [
新規
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
]
-- 雛形とするページ --
01
20240312-01
Basic-ex1
Basic-ex2
Basic-ex3
BracketName
ForTest1
FormattingRules
FrontPage
GetTweTerminalID
Help
I2C-Lx-Ex1
I2CDetect
I2c-Lx-Ex2
I2c-Srb-Ex1
InterWiki
InterWikiName
InterWikiSandBox
LED_and_Button_ex01
LightSensor1
Menu
MenuBar
NetDraw
PHP
PukiWiki
PukiWiki/1.4
PukiWiki/1.4/Manual
PukiWiki/1.4/Manual/Plugin
PukiWiki/1.4/Manual/Plugin/A-D
PukiWiki/1.4/Manual/Plugin/E-G
PukiWiki/1.4/Manual/Plugin/H-K
PukiWiki/1.4/Manual/Plugin/L-N
PukiWiki/1.4/Manual/Plugin/O-R
PukiWiki/1.4/Manual/Plugin/S-U
PukiWiki/1.4/Manual/Plugin/V-Z
RecentDeleted
SandBox
Sensors2
Sensors3
SerialEx1
SerialEx2
ServerMonitorEx1
Servo1
Servo2
Value_insertion_01_20241007
WikiEngines
WikiName
WikiWikiWeb
YukiWiki
basic
capture_20250101
capture_20250115
capture_20250125
capture_20250202
ex0
ex1
ex2
ex3
ex4
getTweChanged
i2c-ADS1115-ex1
i2c-hdc1080-1
i2c-hdc1080-2
i2c-mpl3115a2-ex1
i2c-opt3001-1
i2c-opt3001-ex1
i2c-sensors-ex2
i2c-sensors-ex3
i2c-sensors-ex3-w1
i2c-sensors-ex4
i2c-sensors-ex5
i2c-veml6075
ladyMadonna
map01
map02
map02_bak2
map_02_bak
music
musicTest
musicTest0
pen
pen-ex1
sensor_01_20241007
sensor_02_20241007
sensor_03_20241031
sensor_03_h00
sensor_03_h01
sensor_03_h02
sensor_03_h03
sensor_03_h04
sensor_03_h05
sensor_03_h06
sensor_03_h07
sensor_03_h08
sensor_03_h09
sensor_03_h10
sensor_03_h11
sensor_03_h12
sensor_03_h13
sensor_03_h14
sensor_03_h15
sensor_03_h16
sensor_03_h17
sensor_03_h18
sensor_03_h19
sensor_03_h20
sensor_03_h21
sensor_03_h22
sensor_03_h23
sensor_03_h_class
sensor_04_20241120
sensor_05_202412130001
sensor_06_20241229
sensors-1-class-2
sensors-1-d-16.html
sensors-1-d-class
sensors-1-h-0
sensors-1-h-1
sensors-1-h-10
sensors-1-h-11
sensors-1-h-12
sensors-1-h-13
sensors-1-h-14
sensors-1-h-15
sensors-1-h-16
sensors-1-h-17
sensors-1-h-18
sensors-1-h-19
sensors-1-h-2
sensors-1-h-20
sensors-1-h-21
sensors-1-h-22
sensors-1-h-23
sensors-1-h-3
sensors-1-h-4
sensors-1-h-5
sensors-1-h-6
sensors-1-h-7
sensors-1-h-8
sensors-1-h-9
sensors-class-1
sensors-h-2
simple example
tDressBot_ex1
tDressBot_ex2
tDressBot_ex3
tDressBot_ex4
test02
value_insertion_02
wearable_sign_01
work202401
work20240131
work20240201-01
work20240326-01
work20240330-01
work20240902-01
work20240930
work20241006
[[FrontPage]] objectPage http://www.yama-lab.org/fwb4pi/index.php?tDressBot_ex3 or http://www.yama-lab.org/fwb4pi/index.php?tDressBot_ex3 device yamaRasPiDp9_1 or yamaRasPiDp9_2 start after no write for 10 min. command: set read_interval=180000 command: set exec_iInterval=0 command: py ex1 py: self.clear_report() py: # cmd=1 ... program py: # cmd=2 ... clear py: # cmd=3 ... shutdown py: # cmd=4 ... ip_address ... self.external("address eth0"), self.external("address wlan0"), self.external("address") ==self.external("address wlan0") py: # cmd=5 ... ls (list pictures, gif, ...) py: # cmd=18 . do nothing py: cmd=4 py: self.write_line('cmd='+str(cmd)) py: if cmd==1 : py: print('clear') py: v1=self.external('clear') py: print('text') py: v2=self.external('text') py: print('sleep(5)') py: time.sleep(5) py: #print('ls') py: #v1=self.external("ls") py: #print('sleep(5)') py: #time.sleep(5) py: # py: print('show face_shape-ex1.jpg') py: v2=self.external( "show face_shape-ex1.jpg") py: #v2=ex("pycon", "show ando-02.jpg") py: time.sleep(20) py: v2=self.external("clear") py: time.sleep(5) py: # py: v2=self.external( "show fukurin-anime-ex04.gif") py: time.sleep(10) py: # py: #v2=self.external( "show fukuyama-u-logo-03.png") py: #time.sleep(15) py: # py: #v2=ex("pycon", "show face_shape-ex3.jpg") py: #v2=ex("pycon", "show flower.jpg") py: #delay(10000) py: v2=self.external( "show giphy-art-ex13.gif") py: time.sleep(10) py: #v2=ex("pycon", "show giphy-art-ex01.gif") py: #delay(10000) py: #v2=ex("pycon", "show giphy-art-ex23.gif") py: #delay(10000) py: #v2=ex("pycon", "show giphy-art-ex09.gif") py: #delay(20000) py: #v2=ex("pycon", "show giphy-art-ex07.gif") py: #delay(10000) py: #v2=ex("pycon", "show giphy-art-ex17.gif") py: #delay(10000) py: #v2=ex("pycon", "show giphy-art-ex19.gif") py: #delay(10000) py: #v2=ex("pycon", "show giphy-art-ex20.gif") py: #delay(10000) py: v2=self.external( "show giphy-art-ex11.gif") py: time.sleep(10) py: # py: #v2=ex("pycon", "show ommf-logo.png") py: #delay(10000) py: #v2=ex("pycon", "show Purple_dress.gif") py: v2=self.external( "show fukurin-eng-anime-ex01.gif") py: time.sleep(12) py: # py: #v2=ex("pycon", "show IoTLT-H-Logo-Anime-1.gif") py: #v2=self.external( "show kui-hadaka-05.png") py: #v2=ex("pycon", "show line-dc-hackathon-2023-02.png") py: #v2=self.external( "show ipsj-logo-small-2.png") py: v2=self.external("show acm_siguccs.png") py: #v2=ex("pycon","show M5Stack-logo-02.png") py: #v2=ex("pycon", "show flower.jpg") py: time.sleep(20) py: # py: #v2=ex("pycon", "show sanzosai-2nen-01-20231023-01.png") py: #delay(20000) py: #v2=ex("pycon", "show sanzosai-2nen-02-20231023-01.png") py: #delay(20000) py: #v2=self.external( "show Tokyo-MF_logo_outlined_CMed.jpg") py: #time.sleep(20) py: # py: v2=self.external( "show MFT2023round.jpg") py: #v2=ex("pycon", "show bingo-kodomo-01-s.png") py: #v2=ex("pycon", "show bingo-kodomo-02-s.png") py: #v2=ex("pycon", "show bingo-kodomo-03-s.png") py: #v2=ex("pycon", "show araki-family-illumination-2023-01.jpg") py: time.sleep(20) py: # py: v2=self.external( "show fukurin-3.png") py: time.sleep(10) py: #v2=ex("pycon", "text 情報工学科へ") py: v2=self.external( "txtColor red") py: #v2=ex("pycon", "text 祝!") py: #delay(7000) py: # py: #v2=ex("pycon", "txtColor green") py: #v2=ex("pycon", "txtColor red") py: #v2=ex("pycon", "text 福山大学") py: v2=self.external( "text 情報処理") py: #v2=ex("pycon", "text ヒーローズ") py: time.sleep(19) py: # py: #v2=ex("pycon", "text 処理") py: #delay(4000) py: v2=self.external( "text 学会") py: #v2=ex("pycon", "text リーグ2024!") py: time.sleep(15) py: # py: #v2=ex("pycon", "txtColor magenta") py: #v2=ex("pycon", "text 工学部!") py: #v2=ex("pycon", "text MFT2024開催!") py: #v2=ex("pycon", "text 三蔵祭開催!") py: v2=self.external( "text I O T 研究会!") py: time.sleep(12) py: #v2=ex("pycon", "text 総会") py: #delay(8000) py: #v2=ex("pycon", "text 工学部へ") py: #v2=ex("pycon","text 大崎海星高校の皆様") py: #delay(12000) py: #v2=ex("pycon", "txtColor magenta") py: #v2=ex("pycon", "text Hiroshima!") py: #delay(15000) py: #v2=ex("pycon", "txtColor blue") py: #v2=ex("pycon", "text 情報工学科へようこそ!") py: #delay(12000) py: v2=self.external( "text ") py: #delay(10000) py: print('cmd==1 end') py: if cmd==2 : py: print('clear') py: v1=self.external('clear') py: if cmd== 3 : py: v2=self.external('clear') py: time.sleep(1) py: self.write_line("shutdown.") py: self.send_result() py: time.sleep(10) py: v2=self.external("shutdown") py: time.sleep(1) py: if cmd== 4 : py: v1=self.external('clear') py: time.sleep(1) py: v2=self.external('address') py: time.sleep(1) py: if cmd== 5: py: print('ls') py: v1=self.external("ls") py: print('sleep(5)') py: time.sleep(5) py: print('send_result()') py: self.send_result() py: print('python end') command: end ex1 command: run ex1 result: cmd=3 >clear shutdown. current_device="yama_bot_0000_0000_0000_0001". Date=2025-03-01 02:36:23.635889
タイムスタンプを変更しない
[[FrontPage]] objectPage http://www.yama-lab.org/fwb4pi/index.php?tDressBot_ex3 or http://www.yama-lab.org/fwb4pi/index.php?tDressBot_ex3 device yamaRasPiDp9_1 or yamaRasPiDp9_2 start after no write for 10 min. command: set read_interval=180000 command: set exec_iInterval=0 command: py ex1 py: self.clear_report() py: # cmd=1 ... program py: # cmd=2 ... clear py: # cmd=3 ... shutdown py: # cmd=4 ... ip_address ... self.external("address eth0"), self.external("address wlan0"), self.external("address") ==self.external("address wlan0") py: # cmd=5 ... ls (list pictures, gif, ...) py: # cmd=18 . do nothing py: cmd=4 py: self.write_line('cmd='+str(cmd)) py: if cmd==1 : py: print('clear') py: v1=self.external('clear') py: print('text') py: v2=self.external('text') py: print('sleep(5)') py: time.sleep(5) py: #print('ls') py: #v1=self.external("ls") py: #print('sleep(5)') py: #time.sleep(5) py: # py: print('show face_shape-ex1.jpg') py: v2=self.external( "show face_shape-ex1.jpg") py: #v2=ex("pycon", "show ando-02.jpg") py: time.sleep(20) py: v2=self.external("clear") py: time.sleep(5) py: # py: v2=self.external( "show fukurin-anime-ex04.gif") py: time.sleep(10) py: # py: #v2=self.external( "show fukuyama-u-logo-03.png") py: #time.sleep(15) py: # py: #v2=ex("pycon", "show face_shape-ex3.jpg") py: #v2=ex("pycon", "show flower.jpg") py: #delay(10000) py: v2=self.external( "show giphy-art-ex13.gif") py: time.sleep(10) py: #v2=ex("pycon", "show giphy-art-ex01.gif") py: #delay(10000) py: #v2=ex("pycon", "show giphy-art-ex23.gif") py: #delay(10000) py: #v2=ex("pycon", "show giphy-art-ex09.gif") py: #delay(20000) py: #v2=ex("pycon", "show giphy-art-ex07.gif") py: #delay(10000) py: #v2=ex("pycon", "show giphy-art-ex17.gif") py: #delay(10000) py: #v2=ex("pycon", "show giphy-art-ex19.gif") py: #delay(10000) py: #v2=ex("pycon", "show giphy-art-ex20.gif") py: #delay(10000) py: v2=self.external( "show giphy-art-ex11.gif") py: time.sleep(10) py: # py: #v2=ex("pycon", "show ommf-logo.png") py: #delay(10000) py: #v2=ex("pycon", "show Purple_dress.gif") py: v2=self.external( "show fukurin-eng-anime-ex01.gif") py: time.sleep(12) py: # py: #v2=ex("pycon", "show IoTLT-H-Logo-Anime-1.gif") py: #v2=self.external( "show kui-hadaka-05.png") py: #v2=ex("pycon", "show line-dc-hackathon-2023-02.png") py: #v2=self.external( "show ipsj-logo-small-2.png") py: v2=self.external("show acm_siguccs.png") py: #v2=ex("pycon","show M5Stack-logo-02.png") py: #v2=ex("pycon", "show flower.jpg") py: time.sleep(20) py: # py: #v2=ex("pycon", "show sanzosai-2nen-01-20231023-01.png") py: #delay(20000) py: #v2=ex("pycon", "show sanzosai-2nen-02-20231023-01.png") py: #delay(20000) py: #v2=self.external( "show Tokyo-MF_logo_outlined_CMed.jpg") py: #time.sleep(20) py: # py: v2=self.external( "show MFT2023round.jpg") py: #v2=ex("pycon", "show bingo-kodomo-01-s.png") py: #v2=ex("pycon", "show bingo-kodomo-02-s.png") py: #v2=ex("pycon", "show bingo-kodomo-03-s.png") py: #v2=ex("pycon", "show araki-family-illumination-2023-01.jpg") py: time.sleep(20) py: # py: v2=self.external( "show fukurin-3.png") py: time.sleep(10) py: #v2=ex("pycon", "text 情報工学科へ") py: v2=self.external( "txtColor red") py: #v2=ex("pycon", "text 祝!") py: #delay(7000) py: # py: #v2=ex("pycon", "txtColor green") py: #v2=ex("pycon", "txtColor red") py: #v2=ex("pycon", "text 福山大学") py: v2=self.external( "text 情報処理") py: #v2=ex("pycon", "text ヒーローズ") py: time.sleep(19) py: # py: #v2=ex("pycon", "text 処理") py: #delay(4000) py: v2=self.external( "text 学会") py: #v2=ex("pycon", "text リーグ2024!") py: time.sleep(15) py: # py: #v2=ex("pycon", "txtColor magenta") py: #v2=ex("pycon", "text 工学部!") py: #v2=ex("pycon", "text MFT2024開催!") py: #v2=ex("pycon", "text 三蔵祭開催!") py: v2=self.external( "text I O T 研究会!") py: time.sleep(12) py: #v2=ex("pycon", "text 総会") py: #delay(8000) py: #v2=ex("pycon", "text 工学部へ") py: #v2=ex("pycon","text 大崎海星高校の皆様") py: #delay(12000) py: #v2=ex("pycon", "txtColor magenta") py: #v2=ex("pycon", "text Hiroshima!") py: #delay(15000) py: #v2=ex("pycon", "txtColor blue") py: #v2=ex("pycon", "text 情報工学科へようこそ!") py: #delay(12000) py: v2=self.external( "text ") py: #delay(10000) py: print('cmd==1 end') py: if cmd==2 : py: print('clear') py: v1=self.external('clear') py: if cmd== 3 : py: v2=self.external('clear') py: time.sleep(1) py: self.write_line("shutdown.") py: self.send_result() py: time.sleep(10) py: v2=self.external("shutdown") py: time.sleep(1) py: if cmd== 4 : py: v1=self.external('clear') py: time.sleep(1) py: v2=self.external('address') py: time.sleep(1) py: if cmd== 5: py: print('ls') py: v1=self.external("ls") py: print('sleep(5)') py: time.sleep(5) py: print('send_result()') py: self.send_result() py: print('python end') command: end ex1 command: run ex1 result: cmd=3 >clear shutdown. current_device="yama_bot_0000_0000_0000_0001". Date=2025-03-01 02:36:23.635889
テキスト整形のルールを表示する