Update 'temperato.py'
Change the priority so that it will buzz on phones and whatnot.
This commit is contained in:
parent
730d5c7413
commit
65455a46df
@ -34,7 +34,7 @@ class tempThread (threading.Thread):
|
||||
temp = sensor.temperature
|
||||
print(temp)
|
||||
if temp > set_point:
|
||||
requests.post(os.environ.get('NOTIF_URL'), data={'message': 'The water is too damn hot!', 'title': 'Water temperature'}, timeout=5)
|
||||
requests.post(os.environ.get('NOTIF_URL'), data={'message': 'The water is too damn hot!', 'title': 'Water temperature', 'priority', 9}, timeout=5)
|
||||
time.sleep(5)
|
||||
|
||||
T_thread = tempThread()
|
||||
|
Loading…
Reference in New Issue
Block a user