diff --git a/temperato.py b/temperato.py index 48e7bd0..d8ef479 100644 --- a/temperato.py +++ b/temperato.py @@ -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'}) + requests.post(os.environ.get('NOTIF_URL'), data={'message': 'The water is too damn hot!', 'title': 'Water temperature'}, timeout=5) time.sleep(5) T_thread = tempThread()