From 5c4496fd108c50e0a128b5f5846e24f8bde438a8 Mon Sep 17 00:00:00 2001 From: William Moore Date: Tue, 1 Mar 2022 11:37:21 -0600 Subject: [PATCH] Some sort of change --- temperato.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/temperato.py b/temperato.py index 5028e06..342b183 100644 --- a/temperato.py +++ b/temperato.py @@ -34,8 +34,8 @@ class tempThread (threading.Thread): def run(self): while True: temp = sensor.temperature - 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')}))) + 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')}), timeout=5)) time.sleep(sleep_timer) T_thread = tempThread()