From 0675132171418b8265b3ca1f313bbe75aa892252 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Wed, 13 Aug 2025 20:41:42 -0700 Subject: [PATCH] up a river without help --- README.md | 2 +- config.template | 4 ++-- modules/settings.py | 2 +- modules/system.py | 4 ++++ 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2b1e430..9143d63 100644 --- a/README.md +++ b/README.md @@ -330,7 +330,7 @@ Volcano Alerts use lat/long to determine ~1000km radius ```ini [location] # USGS Hydrology unique identifiers, LID or USGS ID https://waterdata.usgs.gov -riverListDefault = 14144700 +riverList = 14144700 # example Mouth of Columbia River # USGS Volcano alerts Enable USGS Volcano Alert Broadcast volcanoAlertBroadcastEnabled = False diff --git a/config.template b/config.template index 6abac1d..524a377 100644 --- a/config.template +++ b/config.template @@ -160,8 +160,8 @@ myCoastalZone = https://tgftp.nws.noaa.gov/data/forecasts/marine/coastal/pz/pzz1 # number of data points to return, default is 3 coastalForecastDays = 3 -# USGS Hydrology unique identifiers, LID or USGS ID https://waterdata.usgs.gov -riverListDefault = +# NOAA USGS Hydrology river identifiers, LID or USGS ID https://waterdata.usgs.gov +riverList = # NOAA EAS Alert Broadcast wxAlertBroadcastEnabled = False diff --git a/modules/settings.py b/modules/settings.py index 0cde7d6..50e871d 100644 --- a/modules/settings.py +++ b/modules/settings.py @@ -250,7 +250,7 @@ try: repeater_lookup = config['location'].get('repeaterLookup', 'rbook') # default repeater lookup source n2yoAPIKey = config['location'].get('n2yoAPIKey', '') # default empty satListConfig = config['location'].get('satList', '25544').split(',') # default 25544 ISS - riverListDefault = config['location'].get('riverList', '').split(',') # default 12061500 Skagit River + riverListDefault = config['location'].get('riverList', '').split(',') # default None coastalEnabled = config['location'].getboolean('coastalEnabled', False) # default False myCoastalZone = config['location'].get('myCoastalZone', None) # default None coastalForecastDays = config['location'].getint('coastalForecastDays', 3) # default 3 days diff --git a/modules/system.py b/modules/system.py index 429a4c5..ab6f81e 100644 --- a/modules/system.py +++ b/modules/system.py @@ -94,6 +94,10 @@ if location_enabled: # NOAA only features help_message = help_message + ", wxa" + # USGS riverFlow Configuration + if riverListDefault != ['']: + help_message = help_message + ", riverflow" + # NOAA alerts needs location module if wxAlertBroadcastEnabled or emergencyAlertBrodcastEnabled or volcanoAlertBroadcastEnabled: from modules.locationdata import * # from the spudgunman/meshing-around repo