From 7e5626cd30a118d6d90db0181ebac710ae27e04c Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Thu, 19 Dec 2024 16:27:09 -0800 Subject: [PATCH] Update system.py --- modules/system.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/system.py b/modules/system.py index ba4c4b1..b2e22cd 100644 --- a/modules/system.py +++ b/modules/system.py @@ -677,7 +677,11 @@ def handleAlertBroadcast(deviceID=1): # check for alerts alertWx = alertBrodcastNOAA() alertFema = getIpawsAlert(latitudeValue,longitudeValue, shortAlerts=True) - alertUk = get_govUK_alerts(latitudeValue, longitudeValue) + + if enableGBalerts: + alertUk = get_govUK_alerts() + else: + alertUk = NO_ALERTS # format alert wxAlert = f"🚨 {alertWx[1]} EAS WX ALERT: {alertWx[0]}"