enableGBalerts

This commit is contained in:
SpudGunMan
2024-12-18 19:58:21 -08:00
parent 35cc029984
commit 93b7a1d613
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -127,7 +127,7 @@ NOAAalertCount = 2
# use Open-Meteo API for weather data not NOAA useful for non US locations
UseMeteoWxAPI = False
enableUKalerts = False
enableGBalerts = False
# NOAA Hydrology
# unique identifiers, LID or USGS ID
+1 -1
View File
@@ -688,7 +688,7 @@ def handle_wxc(message_from_id, deviceID, cmd):
def handle_fema_alerts(message, message_from_id, deviceID):
location = get_node_location(message_from_id, deviceID)
if enableUKalerts:
if enableGBalerts:
# UK Alerts
return get_govUK_alerts(str(location[0]), str(location[1]))
if message.lower().startswith("ealert"):
+1 -1
View File
@@ -155,7 +155,7 @@ try:
latitudeValue = config['location'].getfloat('lat', 48.50)
longitudeValue = config['location'].getfloat('lon', -123.0)
use_meteo_wxApi = config['location'].getboolean('UseMeteoWxAPI', False) # default False use NOAA
enableUKalerts = config['location'].getboolean('enableUKalerts', False) # default False
enableGBalerts = config['location'].getboolean('enableUKalerts', False) # default False
use_metric = config['location'].getboolean('useMetric', False) # default Imperial units
forecastDuration = config['location'].getint('NOAAforecastDuration', 4) # NOAA forcast days
numWxAlerts = config['location'].getint('NOAAalertCount', 2) # default 2 alerts
+1 -1
View File
@@ -74,7 +74,7 @@ if location_enabled:
from modules.locationdata import * # from the spudgunman/meshing-around repo
trap_list = trap_list + trap_list_location # items tide, whereami, wxc, wx
help_message = help_message + ", whereami, wx, wxc, rlist"
if enableUKalerts:
if enableGBalerts:
from modules.locationdata_eu import * # from the spudgunman/meshing-around repo
trap_list = trap_list + trap_list_location_eu
#help_message = help_message + ", ukalert, ukwx, ukflood"