updateDEalert

thanks dude https://github.com/SpudGunMan/meshing-around/issues/325

Co-Authored-By: wh6gxz nurse dude <shawnmfarley@gmail.com>
This commit is contained in:
Kelly
2026-07-06 17:18:19 -07:00
parent 037de2e591
commit 74c029de2b
3 changed files with 5 additions and 7 deletions
+2 -2
View File
@@ -35,7 +35,7 @@ def get_nina_alerts():
# get api.bund.dev alerts
alerts = []
for regionalKey in myRegionalKeysDE:
url = ("https://nina.api.proxy.bund.dev/api31/dashboard/" + regionalKey + ".json")
url = ("https://warnung.bund.de/api31/dashboard/071380000000.json" + regionalKey + ".json")
response = requests.get(url, timeout=urlTimeoutSeconds)
data = response.json()
@@ -44,7 +44,7 @@ def get_nina_alerts():
alerts.append(f"🚨 {title}")
return "\n".join(alerts) if alerts else NO_ALERTS
except Exception as e:
logger.warning("Error getting NINA DE alerts: " + str(e))
logger.warning("Error getting DE-Bund alerts: " + str(e))
return NO_ALERTS
def get_wxUKgov():