diff --git a/modules/locationdata.py b/modules/locationdata.py index b713d22..48d62d5 100644 --- a/modules/locationdata.py +++ b/modules/locationdata.py @@ -462,7 +462,6 @@ def alertBrodcastNOAA(): # broadcast the alerts send to wxBrodcastCh elif currentAlert[0] not in wxAlertCacheNOAA: # Check if the current alert is not in the weather alert cache - logger.debug("Location:Broadcasting weather alerts") wxAlertCacheNOAA = currentAlert[0] return currentAlert diff --git a/modules/settings.py b/modules/settings.py index 1fdc200..c66f41b 100644 --- a/modules/settings.py +++ b/modules/settings.py @@ -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('eAlertBroadcastChannel', '') # default empty + eAlertBroadcastChannel = config['location'].getint('eAlertBroadcastCh', '') # default empty # any US alerts enabled usAlerts = ( diff --git a/modules/system.py b/modules/system.py index 76fc143..abf6abb 100644 --- a/modules/system.py +++ b/modules/system.py @@ -1169,8 +1169,10 @@ 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): + 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}") send_message(alert_msg, eAlertBroadcastChannel, 0, emergency_responder_alert_interface) except Exception as e: logger.error(f"System: Error in handleAlertBroadcast: {e}")