This commit is contained in:
SpudGunMan
2025-10-29 10:44:42 -07:00
parent 185de28139
commit ffdd3a1ea9
3 changed files with 10 additions and 4 deletions
+1
View File
@@ -339,6 +339,7 @@ try:
myStateFIPSList = config['location'].get('myFIPSList', '').split(',') # default empty
mySAMEList = config['location'].get('mySAMEList', '').split(',') # default empty
myRegionalKeysDE = config['location'].get('myRegionalKeysDE', '110000000000').split(',') # default city Berlin
eAlertBroadcastChannel = config['location'].getint('eAlertBroadcastChannel', '') # default empty
# any alert broadcast enabled
anyAlertBroadcastEnabled = (
+3 -1
View File
@@ -1172,7 +1172,9 @@ def handleAlertBroadcast(deviceID=1):
for alert_type, alert_msg, enabled in alert_types:
if enabled and alert_msg and NO_ALERTS not in alert_msg and ERROR_FETCHING_DATA not in alert_msg:
if should_send_alert(alert_type, alert_msg):
send_message(alert_msg, emergency_responder_alert_channel, 0, deviceID)
send_message(alert_msg, emergency_responder_alert_channel, 0, emergency_responder_alert_interface)
if eAlertBroadcastChannel != '':
send_message(alert_msg, eAlertBroadcastChannel, 0, emergency_responder_alert_interface)
except Exception as e:
logger.error(f"System: Error in handleAlertBroadcast: {e}")
return False