1
0
forked from M-Labs/thermostat
thermostat/pythermostat/example.py

14 lines
319 B
Python
Raw Normal View History

import time
from pythermostat.client import Client
2020-09-29 08:52:46 +08:00
tec = Client() #(host="localhost", port=6667)
tec.set_param("b-p", 1, "t0", 20)
print(tec.get_output())
2020-10-01 06:21:43 +08:00
print(tec.get_pid())
print(tec.get_output())
2020-12-17 05:14:21 +08:00
print(tec.get_postfilter())
print(tec.get_b_parameter())
while True:
print(tec.get_report())
time.sleep(0.05)