object_page http://www.yama-lab.org/fwb4pi/index.php?work20241006 or http://www.yama-lab.org/fwb4pi/index.php?work20241006 device yamaRasPiDp9_1 or yamaRasPiDp9_2 start after no write for 10 min. command: set read_interval=60000 command: set exec_interval=0 command: set report_length=100 command: py test py: import time py: import re py: sensor_01_driver=pico_wiki_driver() py: sensor_01_url='http://www.yama-lab.org/fwb4pi/' py: sensor_01_page='work20240902-01' py: sensor_01_driver.set_url(sensor_01_url) py: sensor_01_driver.set_page(sensor_01_page) py: r=sensor_01_driver.get_result() py: ra=r.splitlines() py: ta=[] py: for line in ra: py: if 'device=temp' in line: py: ta.append(line) py: #print(ta) py: last_temp=ta[len(ta)-1] py: #print('last_temp='+last_temp) py: ela=last_temp.split(',') py: #print(ela) py: for e in ela: py: if 'v=' in e: py: tvx=e py: #print(tvx) py: tva=tvx.split('=') py: temp_value=tva[1] py: px=temp_value.find('.') py: print('px='+str(px)) py: temp_value=temp_value[0:px+2] py: print('temp_value='+temp_value) py: map_driver=pico_wiki_driver() py: map_url='http://www.yama-lab.org/fwb4pi/' py: map_page='map02' py: map_driver.set_url(map_url) py: map_driver.set_page(map_page) py: map_source=map_driver.get_wiki_source() py: #print(map_source) py: re.sub('temp_01=\d+\.\d','temp_01='+temp_value,map_source) py: map_source = re.sub(r'=\d+(\.\d+)?', f'={temp_value}', map_source) py: # py: map_driver.replace_wiki_page(map_source) py: command: end test command: run test result: current_device="yama_bot_0000_0000_0000_0001". Date=2024/10/06 15:00:21