Some sort of change
This commit is contained in:
parent
7c9d0ac8ac
commit
5c4496fd10
@ -34,8 +34,8 @@ class tempThread (threading.Thread):
|
|||||||
def run(self):
|
def run(self):
|
||||||
while True:
|
while True:
|
||||||
temp = sensor.temperature
|
temp = sensor.temperature
|
||||||
if temp > set_point:
|
if temp >= set_point:
|
||||||
print(requests.post(os.environ.get('NOTIF_URL'), headers={'Content-Type': 'application/json'}, data=json.dumps({'text': '@all The water is too damn hot!', 'channel': os.environ.get('CHANNEL_ID')})))
|
print(requests.post(os.environ.get('NOTIF_URL'), headers={'Content-Type': 'application/json'}, data=json.dumps({'text': '@all The water is too damn hot!', 'channel': os.environ.get('CHANNEL_ID')}), timeout=5))
|
||||||
time.sleep(sleep_timer)
|
time.sleep(sleep_timer)
|
||||||
|
|
||||||
T_thread = tempThread()
|
T_thread = tempThread()
|
||||||
|
Loading…
Reference in New Issue
Block a user