diff --git a/README.md b/README.md index 9ea66c2..349c45f 100644 --- a/README.md +++ b/README.md @@ -387,7 +387,8 @@ There is no direct support for MQTT in the code, however, reports from Discord a | `riverflow` | Return information from NOAA for river flow info. Example: `riverflow modules/settings.py`| | | `solar` | Gives an idea of the x-ray flux | | | `sun` and `moon` | Return info on rise and set local time | ✅ | -| `tide` | Returns the local tides (NOAA data source) | +| `tide` | Returns the local tides (NOAA data source) | | +| `valert` | Returns USGS Volcano Data | | | `wx` and `wxc` | Return local weather forecast (wxc is metric value), NOAA or Open Meteo for weather forecasting | | | `wxa` and `wxalert` | Return NOAA alerts. Short title or expanded details | | @@ -461,7 +462,7 @@ I used ideas and snippets from other responder bots and want to call them out! - **[https://github.com/A-c0rN](A-c0rN)**: Assistance with iPAWS and EAS - **Mike O'Connell/skrrt**: For [eas_alert_parser](etc/eas_alert_parser.py) enhanced by **sheer.cold** - **PiDiBi**: For looking at test functions and other suggestions like wxc, CPU use, and alerting ideas. -- **WH6GXZ nurse dude**: For bashing on installer +- **WH6GXZ nurse dude**: For bashing on installer, Volcano Alerts 🌋 - **Josh**: For more bashing on installer! - **dj505**: trying it on windows! - **mikecarper**: ideas, and testing. hamtest diff --git a/mesh_bot.py b/mesh_bot.py index 5d70dc1..ca01460 100755 --- a/mesh_bot.py +++ b/mesh_bot.py @@ -85,6 +85,7 @@ def auto_response(message, snr, rssi, hop, pkiStatus, message_from_id, channel_n "test": lambda: handle_ping(message_from_id, deviceID, message, hop, snr, rssi, isDM, channel_number), "testing": lambda: handle_ping(message_from_id, deviceID, message, hop, snr, rssi, isDM, channel_number), "tide": lambda: handle_tide(message_from_id, deviceID, channel_number), + "valert": lambda: get_volcano_usgs(), "videopoker": lambda: handleVideoPoker(message, message_from_id, deviceID), "whereami": lambda: handle_whereami(message_from_id, deviceID, channel_number), "whoami": lambda: handle_whoami(message_from_id, deviceID, hop, snr, rssi, pkiStatus), diff --git a/modules/locationdata.py b/modules/locationdata.py index 55db4c6..a4cb5d9 100644 --- a/modules/locationdata.py +++ b/modules/locationdata.py @@ -9,7 +9,7 @@ import bs4 as bs # pip install beautifulsoup4 import xml.dom.minidom from modules.log import * -trap_list_location = ("whereami", "tide", "wx", "wxc", "wxa", "wxalert", "rlist", "ea", "ealert", "riverflow") +trap_list_location = ("whereami", "tide", "wx", "wxc", "wxa", "wxalert", "rlist", "ea", "ealert", "riverflow","valert") def where_am_i(lat=0, lon=0, short=False, zip=False): whereIam = ""