mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-07-05 09:21:23 +02:00
enableGBalerts
This commit is contained in:
+1
-1
@@ -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
@@ -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
@@ -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
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user