thermostat/pytec/examples/example.py
atse fe0dc30a66 Create GUI to Thermostat
Control the Thermostat with a Qt GUI, with plotting of key parameters.
2024-10-28 18:13:58 +08:00

12 lines
288 B
Python

from pytec.client import Client
tec = Client() # (host="localhost", port=6667)
tec.set_param("b-p", 1, "t0", 20)
print(tec.get_output())
print(tec.get_pid())
print(tec.get_output())
print(tec.get_postfilter())
print(tec.get_b_parameter())
for data in tec.report_mode():
print(data)