Skip to content

Commit

Permalink
Merge pull request #18 from SinnieOnFire/hotfix
Browse files Browse the repository at this point in the history
Hotfix
  • Loading branch information
SinnieOnFire authored Jan 4, 2024
2 parents 48b9ce3 + d1965af commit 8f5c6d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cy_airquality_rpi.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
duration = 599

# Internet connection check interval
check_interval = 1800
check_interval = 60

while True:
# Starts counting for duration
Expand All @@ -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…")
Expand Down

0 comments on commit 8f5c6d1

Please sign in to comment.