diff --git a/config.template b/config.template index 0f62c5c..3f870fe 100644 --- a/config.template +++ b/config.template @@ -152,6 +152,13 @@ repeaterLookup = rbook wxAlertBroadcastEnabled = False # EAS Alert Broadcast Channels wxAlertBroadcastCh = 2 +# FEMA IPAWS/CAP Alert Broadcast +femaAlertBroadcastEnabled = False +# FEMA IPAWS/CAP Alert Broadcast Channels +femaAlertBroadcastCh = 2 +# comma separated list of SAME codes to trigger local alert. +# find yours https://www.weather.gov/nwr/counties +mySAME = 053029,053073 # repeater module [repeater] diff --git a/modules/locationdata.py b/modules/locationdata.py index 8d191cb..d655def 100644 --- a/modules/locationdata.py +++ b/modules/locationdata.py @@ -501,9 +501,6 @@ def getIpawsAlert(lat=0, lon=0): if geocode_type == "SAME": sameVal = geocode_value - # comma separated list of SAME codes to trigger local alert. find yours https://www.weather.gov/nwr/counties - mySAME = "053029","053073","004013" - # if the alert is for the same area as the user add it to the alerts list if sameVal in mySAME: # add to alerts list diff --git a/modules/settings.py b/modules/settings.py index 66fd5d3..97875d5 100644 --- a/modules/settings.py +++ b/modules/settings.py @@ -157,6 +157,9 @@ try: numWxAlerts = config['location'].getint('NOAAalertCount', 2) # default 2 alerts wxAlertsEnabled = config['location'].getboolean('NOAAalertsEnabled', True) # default True not enabled yet repeater_lookup = config['location'].get('repeaterLookup', 'rbook') # default repeater lookup source + mySAME = config['location'].get('mySAME', '').split(',') # default empty + femaAlertBroadcastEnabled = config['location'].getboolean('femaAlertBroadcastEnabled', False) # default False + femaAlertBroadcastCh = config['location'].get('femaAlertBroadcastCh', '2').split(',') # default Channel 2 wxAlertBroadcastEnabled = config['location'].getboolean('wxAlertBroadcastEnabled', False) # default False # brodcast channel for weather alerts wxAlertBroadcastChannel = config['location'].get('wxAlertBroadcastCh')