object_page http://www.yama-lab.org/fwb4pi/index.php?work20240902-01 or   http://www.yama-lab.org/fwb4pi/index.php?work20240902-01
device yamaRasPiDp9_1 or yamaRasPiDp9_2 start after no write for 10 min.
command: set read_interval=20000
command: set exec_interval=0
command: set report_length=10
command: py test
py; #
py: #from machine import Pin, I2C
py: import smbus2
py: import time
py: from bme280 import BME280
py: #i2c = smbus.SMBus(1)
py: #i2c= I2C(0, sda=Pin(0), scl=Pin(1), freq = 10000)
py: bme=BME280(i2c_address=0x76)
py: v=(bme.get())[0]
py: line="device=temp, Date="+self.Pico_Time.get_now()+", v="+str(v)
py: self.write_line(line)
py: v=self.ex_pico("ex self.sensing.get_motion()")
py: line="device=motion, Date="+self.Pico_Time.get_now()+", v="+str(v)
py: self.write_line(line)
py: self.send_result()
command: end test
command: run test
result:
device=temp, Date=2024/10/03 17:52:32, v=1008.1933532468134
device=temp, Date=2024/10/03 17:52:52, v=1008.2185721956578
device=temp, Date=2024/10/03 17:53:12, v=1008.2317433585761
device=temp, Date=2024/10/03 17:53:32, v=1008.2081733166845
device=temp, Date=2024/10/03 17:53:53, v=1008.232324321668
device=temp, Date=2024/10/03 17:54:12, v=1008.2345189393666
device=temp, Date=2024/10/03 17:54:32, v=1008.2065267362694
device=temp, Date=2024/10/03 17:54:53, v=1008.1993640000501
device=temp, Date=2024/10/03 17:55:13, v=1008.210873268382
device=temp, Date=2024/10/03 17:55:33, v=1008.2053715907182
device=temp, Date=2024/10/03 17:55:53, v=1008.2305996048023
current_device="yama_bot_0000_0000_0000_0001". Date=2024/10/03 17:55:53
current_device="yama_bot_0000_0000_0000_0001". Date=2024/10/03 17:55:33

トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS