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 smbus
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()
py: v=(bme.get())[2]
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/27 17:46:06, v=1001.7866483938051
device=temp, Date=2024/09/27 17:46:26, v=1001.770757822491
device=temp, Date=2024/09/27 17:46:46, v=31.476877543516547
device=temp, Date=2024/09/27 17:47:06, v=31.476239692421224
device=temp, Date=2024/09/27 17:47:26, v=31.480385724622124
device=temp, Date=2024/09/27 17:47:46, v=31.49409952480928
device=temp, Date=2024/09/27 17:50:04, v=47.94328224888584
device=temp, Date=2024/09/27 17:50:24, v=48.27566503001478
device=temp, Date=2024/09/27 17:50:44, v=48.46491316113726
device=temp, Date=2024/09/27 17:51:04, v=47.39894658791352
current_device="yama_bot_0000_0000_0000_0001". Date=2024/09/27 17:51:04

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