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())[1]
py: line="device=temp, 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/09/30 18:28:43, v=1005.1660333910964
device=temp, Date=2024/09/30 18:29:03, v=27.967170722055766
device=temp, Date=2024/09/30 18:29:23, v=27.974186809157278
device=temp, Date=2024/09/30 18:29:43, v=27.983754201546095
device=temp, Date=2024/09/30 18:30:03, v=28.022980521037606
device=temp, Date=2024/09/30 18:30:23, v=28.035737051407704
device=temp, Date=2024/09/30 18:30:43, v=28.052001630267682
device=temp, Date=2024/09/30 18:31:03, v=28.065077078161995
device=temp, Date=2024/09/30 18:33:44, v=28.189453385387697
device=temp, Date=2024/09/30 18:34:04, v=28.190729040716633
current_device="yama_bot_0000_0000_0000_0001". Date=2024/09/30 18:34:04

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