FEMA config.ini

This commit is contained in:
SpudGunMan
2024-12-10 17:58:25 -08:00
parent daf43f306b
commit ab2f9a9846
3 changed files with 10 additions and 3 deletions
+7
View File
@@ -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]
-3
View File
@@ -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
+3
View File
@@ -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')