thermostat/pythermostat/example.py

14 lines
375 B
Python
Raw Normal View History

import time
from pythermostat.client import Client
2020-09-29 08:52:46 +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())
while True:
print(thermostat.get_report())
time.sleep(0.05)