2024-11-04 15:47:56 +08:00
|
|
|
import time
|
2024-11-18 17:34:39 +08:00
|
|
|
from pythermostat.client import Client
|
2020-09-29 08:52:46 +08:00
|
|
|
|
2025-01-06 18:00:34 +08:00
|
|
|
thermostat = Client() #(host="localhost", port=6667)
|
|
|
|
thermostat.set_param("b-p", 1, "t0", 20)
|
|
|
|
print(thermostat.get_output())
|
|
|
|
print(thermostat.get_pid())
|
|
|
|
print(thermostat.get_output())
|
|
|
|
print(thermostat.get_postfilter())
|
|
|
|
print(thermostat.get_b_parameter())
|
2024-11-04 15:47:56 +08:00
|
|
|
while True:
|
2025-01-06 18:00:34 +08:00
|
|
|
print(thermostat.get_report())
|
2024-11-04 15:47:56 +08:00
|
|
|
time.sleep(0.05)
|