-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathexample.py
30 lines (23 loc) · 879 Bytes
/
example.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
from pprint import pprint
import time
from WaveThermo import WaveThermo
wave = WaveThermo(serial_number='SERIALNUMBERHERE',
access_code='ACCESSCODEHERE',
password='PASSWORDHERE')
wave.status.update()
print("Current temperature: ", wave.status.current_temp)
print("Set point temperature: ", wave.status.set_point)
print("Full status information:")
pprint(wave.status.data)
print("Setting temperature to 24 degrees")
wave.set_temperature(24)
wave.status.update()
print("Current temperature: ", wave.status.current_temp)
print("Set point temperature: ", wave.status.set_point)
print("Waiting for 5 seconds")
time.sleep(5)
print("Turning off override - so back to where we were before")
wave.override(False)
wave.status.update()
print("Current temperature: ", wave.status.current_temp)
print("Set point temperature: ", wave.status.set_point)