From b7b430ba568b3d77d4ae6c7f4285226673b368c2 Mon Sep 17 00:00:00 2001 From: Sinnie Date: Thu, 4 Jan 2024 12:26:40 +0200 Subject: [PATCH 1/2] Hotfix --- cy_airquality_rpi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cy_airquality_rpi.py b/cy_airquality_rpi.py index 64b1d48..8253a23 100644 --- a/cy_airquality_rpi.py +++ b/cy_airquality_rpi.py @@ -49,7 +49,7 @@ # Check for internet connectivity while True: try: - requests.get("https://www.google.com", timeout=1) + requests.get("https://www.google.com", timeout=5) break except requests.ConnectionError: print("No internet connection. Retrying in 30 minutes…") From d1965afbfb07463b0c7c523bd73b66eb314fb633 Mon Sep 17 00:00:00 2001 From: Sinnie Date: Thu, 4 Jan 2024 14:57:40 +0200 Subject: [PATCH 2/2] Hotfix --- cy_airquality_rpi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cy_airquality_rpi.py b/cy_airquality_rpi.py index 8253a23..5a9a079 100644 --- a/cy_airquality_rpi.py +++ b/cy_airquality_rpi.py @@ -40,7 +40,7 @@ duration = 599 # Internet connection check interval -check_interval = 1800 +check_interval = 60 while True: # Starts counting for duration