SpudGunMan
2025-10-31 07:04:21 -07:00
parent d56c1380c3
commit b9f5a0c7f9
2 changed files with 8 additions and 5 deletions
+1 -1
View File
@@ -344,7 +344,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('eAlertBroadcastCh', '') # default empty
eAlertBroadcastChannel = config['location'].get('eAlertBroadcastCh', '').split(',') # default empty
# any US alerts enabled
usAlerts = (
+7 -4
View File
@@ -1174,10 +1174,13 @@ def handleAlertBroadcast(deviceID=1):
if should_send_alert(alert_type, alert_msg):
logger.debug(f"System: Sending {alert_type} alert to emergency responder channel {emergency_responder_alert_channel}")
send_message(alert_msg, emergency_responder_alert_channel, 0, emergency_responder_alert_interface)
if eAlertBroadcastChannel != '':
logger.debug(f"System: Sending {alert_type} alert to aux channel {eAlertBroadcastChannel}")
time.sleep(splitDelay)
send_message(alert_msg, eAlertBroadcastChannel, 0, emergency_responder_alert_interface)
if eAlertBroadcastChannel:
for ch in eAlertBroadcastChannel:
ch = ch.strip()
if ch:
logger.debug(f"System: Sending {alert_type} alert to aux channel {ch}")
time.sleep(splitDelay)
send_message(alert_msg, int(ch), 0, emergency_responder_alert_interface)
except Exception as e:
logger.error(f"System: Error in handleAlertBroadcast: {e}")
return False