FrontPage
objectPage http://www.yama-lab.org/fwb4pi/index.php?wearable_sign_01 or http://www.yama-lab.org/fwb4pi/index.php?wearable_sign_01
device yamaRasPiDp9_1 or yamaRasPiDp9_2 start after no write for 10 min.
command: set read_interval=60000
command: set exec_interval=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=1
py: self.write_line('cmd='+str(cmd))
py: if cmd==1 :
py: print('clear')
py: v1=self.external('clear')
py: print('show \"abc\"')
py: v2=self.external('show \"(red)abc(yellow)def\"')
py: print('sleep(20)')
py: time.sleep(20)
py: print('show \"abc\"')
py: v2=self.external('show \"(green)福山(red)バラ(blue)祭り(white)!\"')
py: print('sleep(20)')
py: time.sleep(20)
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: if cmd == 7:
py: #v2=self.external("text ")
py: #time.sleep(10)
py: #v2=self.external("show https://image.shutterstock.com/z/stock-vector-portrait-of-a-beautiful-girl-in-half-turn-young-blond-woman-avatar-for-social-networks-fashion-1643295139.jpg")
py: #v2=self.external("show http://www.yama-lab.org/WearableDigitalSignage-IoT/hei-chan-02.gif")
py: #v2=self.external("show http://www.yama-lab.org/fwb4pi/iciet2025.png")
py: #v2=self.external("show http://www.yama-lab.org/fwb4pi/IoT_Logo_01.png")
py: v2=self.external("show http://www.yama-lab.org/fwb4pi/theworldrosemeeting2025_logo_02.png")
py: time.sleep(10)
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-05-18 19:31:23.334392