From 65455a46dff18119629155cbb3d247dabea9ce41 Mon Sep 17 00:00:00 2001 From: William Moore Date: Wed, 15 Dec 2021 20:58:35 +0100 Subject: [PATCH] Update 'temperato.py' Change the priority so that it will buzz on phones and whatnot. --- temperato.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/temperato.py b/temperato.py index d8ef479..7cc9d00 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'}, 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()