v0.2.3 update

pull/24/head
Mason10198 3 years ago
parent 0803225465
commit e8bd7907ba

@ -31,10 +31,11 @@ SkywarnPlus is a sophisticated software solution that works hand-in-hand with yo
Whether you wish to auto-link to a Skywarn net during severe weather, program your node to control an external device like a siren during a tornado warning, or simply want to stay updated on changing weather conditions, SkywarnPlus offers a comprehensive, efficient, and customizable solution for your weather alert needs. Whether you wish to auto-link to a Skywarn net during severe weather, program your node to control an external device like a siren during a tornado warning, or simply want to stay updated on changing weather conditions, SkywarnPlus offers a comprehensive, efficient, and customizable solution for your weather alert needs.
# Comprehensive Information # Comprehensive Information
SkywarnPlus supports all 128 alert types included in the [NWS v1.2 API](https://www.weather.gov/documentation/services-web-api). SkywarnPlus supports all 128 alert types included in the [NWS v1.2 API](https://www.weather.gov/documentation/services-web-api).
|||| | | | |
| --- | --- | --- | | ---------------------------------- | -------------------------------------- | --------------------------------------- |
| 911 Telephone Outage Emergency | Administrative Message | Air Quality Alert | | 911 Telephone Outage Emergency | Administrative Message | Air Quality Alert |
| Air Stagnation Advisory | Arroyo And Small Stream Flood Advisory | Ashfall Advisory | | Air Stagnation Advisory | Arroyo And Small Stream Flood Advisory | Ashfall Advisory |
| Ashfall Warning | Avalanche Advisory | Avalanche Warning | | Ashfall Warning | Avalanche Advisory | Avalanche Warning |
@ -192,7 +193,9 @@ remotetx = /usr/local/bin/SkywarnPlus/SOUNDS/TONES/CT1
``` ```
## CW / Voice IDs ## CW / Voice IDs
SkywarnPlus can automatically change the node ID whenever certain weather alerts are active. The configuration for this is based on your `rpt.conf` file setup. Here's an example:
SkywarnPlus can automatically change the node ID whenever certain weather alerts are active. This requires creating your own audio files; one for the `NORMAL` ID, and one for the `WX` ID. The configuration for this is based on your `rpt.conf` file setup. Here's an example:
```ini ```ini
[NODENUMBER] [NODENUMBER]
idrecording = /usr/local/bin/SkywarnPlus/SOUNDS/ID/RPTID idrecording = /usr/local/bin/SkywarnPlus/SOUNDS/ID/RPTID
@ -207,7 +210,7 @@ SkywarnPlus can use the free Pushover API to send WX alert notifications and deb
3. Scroll down and create an Application/API key for your node 3. Scroll down and create an Application/API key for your node
4. Add UserKey & API Key to `config.yaml` 4. Add UserKey & API Key to `config.yaml`
# Control Script # SkyControl
SkywarnPlus comes with a powerful control script (`SkyControl.py`) that can be used to enable or disable certain SkywarnPlus functions via shell, without manually editing `config.yaml`. This script is particularly useful when you want to map DTMF control codes to these functions. An added advantage is that the script provides spoken feedback upon execution, making it even more suitable for DTMF control. SkywarnPlus comes with a powerful control script (`SkyControl.py`) that can be used to enable or disable certain SkywarnPlus functions via shell, without manually editing `config.yaml`. This script is particularly useful when you want to map DTMF control codes to these functions. An added advantage is that the script provides spoken feedback upon execution, making it even more suitable for DTMF control.
@ -262,16 +265,17 @@ Upon the successful execution of a control command, the `SkyControl.py` script w
You can map the `SkyControl.py` script to DTMF commands in the `rpt.conf` file of your node. Here is an example of how to do this: You can map the `SkyControl.py` script to DTMF commands in the `rpt.conf` file of your node. Here is an example of how to do this:
```bash ```ini
801 = cmd,/usr/local/bin/SkywarnPlus/SkyControl.py enable toggle ; Toggles SkywarnPlus ; SkyControl DTMF Commands
802 = cmd,/usr/local/bin/SkywarnPlus/SkyControl.py sayalert toggle ; Toggles SayAlert 831 = cmd,/usr/local/bin/SkywarnPlus/SkyControl.py enable toggle ; Toggles SkywarnPlus
803 = cmd,/usr/local/bin/SkywarnPlus/SkyControl.py sayallclear toggle ; Toggles SayAllClear 832 = cmd,/usr/local/bin/SkywarnPlus/SkyControl.py sayalert toggle ; Toggles SayAlert
804 = cmd,/usr/local/bin/SkywarnPlus/SkyControl.py tailmessage toggle ; Toggles TailMessage 833 = cmd,/usr/local/bin/SkywarnPlus/SkyControl.py sayallclear toggle ; Toggles SayAllClear
805 = cmd,/usr/local/bin/SkywarnPlus/SkyControl.py courtesytone toggle ; Toggles CourtesyTone 834 = cmd,/usr/local/bin/SkywarnPlus/SkyControl.py tailmessage toggle ; Toggles TailMessage
806 = cmd,/usr/local/bin/SkywarnPlus/SkyControl.py alertscript toggle ; Toggles AlertScript 835 = cmd,/usr/local/bin/SkywarnPlus/SkyControl.py courtesytone toggle ; Toggles CourtesyTone
807 = cmd,/usr/local/bin/SkywarnPlus/SkyControl.py idchange toggle ; Toggles IDChange 836 = cmd,/usr/local/bin/SkywarnPlus/SkyControl.py alertscript toggle ; Toggles AlertScript
808 = cmd,/usr/local/bin/SkywarnPlus/SkyControl.py changect normal ; Forces CT to "normal" mode 837 = cmd,/usr/local/bin/SkywarnPlus/SkyControl.py idchange toggle ; Toggles IDChange
809 = cmd,/usr/local/bin/SkywarnPlus/SkyControl.py changeid normal ; Forces ID to "normal" mode 838 = cmd,/usr/local/bin/SkywarnPlus/SkyControl.py changect normal ; Forces CT to "normal" mode
839 = cmd,/usr/local/bin/SkywarnPlus/SkyControl.py changeid normal ; Forces ID to "normal" mode
``` ```
With this setup, you can control SkywarnPlus' functionality using DTMF commands. With this setup, you can control SkywarnPlus' functionality using DTMF commands.
@ -290,24 +294,78 @@ Here are examples of how to map alerts to DTMF commands or bash scripts:
```yaml ```yaml
AlertScript: AlertScript:
Enable: true # Completely enable/disable AlertScript
Enable: false
Mappings: Mappings:
# Define the mapping of alerts to either DTMF commands or bash scripts here.
# Examples:
#
# This entry will execute the bash command 'asterisk -rx "rpt fun 1999 *123*456*789"'
# when the alerts "Tornado Warning" AND "Tornado Watch" are detected.
#
- Type: DTMF - Type: DTMF
Nodes: Nodes:
- <NODE_NUMBERS> - 1999
Commands: Commands:
- '<DTMF_COMMAND>' - "*123*456*789"
Triggers: Triggers:
- <ALERTS> - Tornado Warning
Match: ALL # or ANY - Tornado Watch
Match: ALL
#
# This entry will execute the bash command '/home/repeater/testscript.sh'
# and the bash command '/home/repeater/saytime.sh' when an alert whose
# title ends with "Statement" is detected.
#
- Type: BASH - Type: BASH
Commands: Commands:
- '<BASH_COMMAND>' - "/home/repeater/testscript.sh"
- "/home/repeater/saytime.sh"
Triggers:
- "*Statement"
#
# This entry will execute the bash command 'asterisk -rx "rpt fun 1998 *123*456*789"'
# and the bash command 'asterisk -rx "rpt fun 1999 *123*456*789"' when an alert
# titled "Tornado Warning" OR "Tornado Watch" is detected.
#
- Type: DTMF
Nodes:
- 1998
- 1999
Commands:
- "*123*456*789"
Triggers:
- Tornado Warning
- Tornado Watch
#
# This entry will execute the bash command 'asterisk -rx "rpt fun 1999 *123*456*789"'
# and the bash command 'asterisk -rx "rpt fun 1999 *987*654*321"'
# when an alert titled "Tornado Warning" OR "Tornado Watch" is detected.
#
- Type: DTMF
Nodes:
- 1999
Commands:
- "*123*456*789"
- "*987*654*321"
Triggers: Triggers:
- <ALERTS> - Tornado Warning
- Tornado Watch
Match: ANY
#
# This is an example entry that will automatically execute SkyDescribe and
# announce the full details of a Tornado Warning when it is detected.
#
- Type: BASH
Commands:
- '/usr/local/bin/SkywarnPlus/SkyDescribe.py "Tornado Warning"'
Triggers:
- Tornado Warning
``` ```
In the examples above, `<NODE_NUMBERS>` are the nodes where you want the DTMF command to be dispatched, `<DTMF_COMMAND>` is the command to be executed, and `<ALERTS>` are the alerts to trigger this command. Likewise, for bash commands, `<BASH_COMMAND>` is the script to be executed and `<ALERTS>` are the alerts to trigger this script. Note that wildcards (`*`) can be used in `<ALERTS>` for broader matches. ## Matching
The `Match:` parameter tells `AlertScript` how to handle the triggers. If `Match: ANY`, then only 1 of the triggers needs to be matched for the command(s) to execute. If `Match: ALL`, then all of the triggers must be matched for the command(s) to execute. If `Match:` is not defined, then `ANY` is used by default.
## The Power of YOU ## The Power of YOU
@ -321,11 +379,11 @@ In essence, `AlertScript` unleashes a world of customization possibilities, empo
`SkyDescribe` is a powerful and flexible tool that works in tandem with SkywarnPlus. It enables the system to provide a spoken detailed description of weather alerts, adding depth and clarity to the basic information broadcasted by default. `SkyDescribe` is a powerful and flexible tool that works in tandem with SkywarnPlus. It enables the system to provide a spoken detailed description of weather alerts, adding depth and clarity to the basic information broadcasted by default.
The `SkyDescribe.py` script works by fetching a specific alert from the stored data (maintained by SkywarnPlus) based on the title or index provided. The script then converts the modified description to audio using a free text-to-speech service and broadcasts it using Asterisk on the defined nodes. The `SkyDescribe.py` script works by fetching a specific alert from the stored data (maintained by SkywarnPlus) based on the title or index provided. The script then converts the description to audio using a free text-to-speech service and broadcasts it using Asterisk on the defined nodes.
## Usage ## Usage
To use `SkyDescribe.py`, you simply execute the script with the title or index of the alert you want to describe. To use `SkyDescribe.py`, you simply execute the script with the title or index of the alert you want to be described. The index of the alert is the place it holds in the alert announcement or tailmessage (depending on blocking sonfiguration).
For example, if SkywarnPlus announces `"Tornado Warning, Tornado Watch, Severe Thunderstorm Warning"`, you could execute the following: For example, if SkywarnPlus announces `"Tornado Warning, Tornado Watch, Severe Thunderstorm Warning"`, you could execute the following:
@ -334,7 +392,9 @@ SkyDescribe.py 1 # Describe the 1st alert (Tornado Warning)
SkyDescribe.py 2 # Describe the 2nd alert (Tornado Watch) SkyDescribe.py 2 # Describe the 2nd alert (Tornado Watch)
SkyDescribe.py 3 # Describe the 3rd alert (Severe Thunderstorm Warning) SkyDescribe.py 3 # Describe the 3rd alert (Severe Thunderstorm Warning)
``` ```
or
or, you can use the title of the alert instead of the index:
```bash ```bash
SkyDescribe.py "Tornado Warning" SkyDescribe.py "Tornado Warning"
SkyDescribe.py "Tornado Watch" SkyDescribe.py "Tornado Watch"
@ -355,31 +415,34 @@ AlertScript:
# announce the full details of a Tornado Warning when it is detected. # announce the full details of a Tornado Warning when it is detected.
- Type: BASH - Type: BASH
Commands: Commands:
- 'echo Tornado Warning detected!' - "echo Tornado Warning detected!"
- '/usr/local/bin/SkywarnPlus/SkyDescribe.py "Tornado Warning"' - '/usr/local/bin/SkywarnPlus/SkyDescribe.py "Tornado Warning"'
Triggers: Triggers:
- Tornado Warning - Tornado Warning
``` ```
## Mapping to DTMF commands
For added flexibility, `SkyDescribe.py` can also be linked to DTMF commands. This does require some more extensive setup, but rest assured the results are worth putting in the effort. ## Mapping to DTMF commands
```ini For added flexibility, `SkyDescribe.py` can also be linked to DTMF commands, allowing alert descriptions to be requested over-the-air.
; DTMF Entry in rpt.conf
810 = autopatchup,context=SkyDescribe,noct=1,farenddisconnect=1,dialtime=60000,quiet=1
```
```ini ```ini
; SkyDescribe DTMF Extension ; SkyDescribe DTMF Commands
[SkyDescribe] 841 = cmd,/usr/local/bin/SkywarnPlus/SkyDescribe.py 1 ; SkyDescribe the 1st alert
exten => _xx,1,System(/usr/local/bin/SkywarnPlus/SkyDescribe.py {$EXTEN}) 842 = cmd,/usr/local/bin/SkywarnPlus/SkyDescribe.py 2 ; SkyDescribe the 2nd alert
exten => _xx,n,Hangup 843 = cmd,/usr/local/bin/SkywarnPlus/SkyDescribe.py 3 ; SkyDescribe the 3rd alert
844 = cmd,/usr/local/bin/SkywarnPlus/SkyDescribe.py 4 ; SkyDescribe the 4th alert
845 = cmd,/usr/local/bin/SkywarnPlus/SkyDescribe.py 5 ; SkyDescribe the 5th alert
846 = cmd,/usr/local/bin/SkywarnPlus/SkyDescribe.py 6 ; SkyDescribe the 6th alert
847 = cmd,/usr/local/bin/SkywarnPlus/SkyDescribe.py 7 ; SkyDescribe the 7th alert
848 = cmd,/usr/local/bin/SkywarnPlus/SkyDescribe.py 8 ; SkyDescribe the 8th alert
849 = cmd,/usr/local/bin/SkywarnPlus/SkyDescribe.py 9 ; SkyDescribe the 9th alert
``` ```
## **NOTE:** ## **NOTE:**
If you have SkywarnPlus set up to monitor multiple counties, it will, by design, only store **ONE** instance of each alert type in order to prevent announcing duplicate messages. Because of this, if SkywarnPlus checks 3 different counties and finds a `"Tornado Warning"` in each one, only the first description will be saved. Thus, executing `SkyControl.py "Tornado Warning"` will broadcast the description of the `"Tornado Warning"` for the first county **ONLY**. If you have SkywarnPlus set up to monitor multiple counties, it will, by design, only store **ONE** instance of each alert type in order to prevent announcing duplicate messages. Because of this, if SkywarnPlus checks 3 different counties and finds a `"Tornado Warning"` in each one, only the first description will be saved. Thus, executing `SkyControl.py "Tornado Warning"` will broadcast the description of the `"Tornado Warning"` for the first county **ONLY**.
In *most* cases, any multiple counties that SkywarnPlus is set up to monitor will be adjacent to one another, and any duplicate alerts would actually be the ***same*** alert with the ***same*** description, so this wouldn't matter. In _most_ cases, any multiple counties that SkywarnPlus is set up to monitor will be adjacent to one another, and any duplicate alerts would actually be the **_same_** alert with the **_same_** description, so this wouldn't matter.
# Customizing the Audio Files # Customizing the Audio Files

@ -1,6 +1,6 @@
#!/usr/bin/python3 #!/usr/bin/python3
# SkyControl.py # SkyControl.py
# A Control Script for SkywarnPlus v0.2.2 # A Control Script for SkywarnPlus v0.2.3
# by Mason Nelson (N5LSN/WRKF394) # by Mason Nelson (N5LSN/WRKF394)
# #
# This script allows you to change the value of specific keys in the SkywarnPlus config.yaml file. # This script allows you to change the value of specific keys in the SkywarnPlus config.yaml file.
@ -21,6 +21,7 @@ from ruamel.yaml import YAML
# Use ruamel.yaml instead of PyYAML to preserve comments in the config file # Use ruamel.yaml instead of PyYAML to preserve comments in the config file
yaml = YAML() yaml = YAML()
# Define a function to change the CT # Define a function to change the CT
def changeCT(ct): def changeCT(ct):
tone_dir = config["CourtesyTones"].get( tone_dir = config["CourtesyTones"].get(

@ -1,7 +1,7 @@
#!/usr/bin/python3 #!/usr/bin/python3
""" """
SkywarnPlus v0.2.2 by Mason Nelson (N5LSN/WRKF394) SkywarnPlus v0.2.3 by Mason Nelson (N5LSN/WRKF394)
================================================== ==================================================
SkywarnPlus is a utility that retrieves severe weather alerts from the National SkywarnPlus is a utility that retrieves severe weather alerts from the National
Weather Service and integrates these alerts with an Asterisk/app_rpt based Weather Service and integrates these alerts with an Asterisk/app_rpt based
@ -291,6 +291,7 @@ def load_state():
] ]
state["last_alerts"] = OrderedDict(last_alerts) state["last_alerts"] = OrderedDict(last_alerts)
state["last_sayalert"] = state.get("last_sayalert", []) state["last_sayalert"] = state.get("last_sayalert", [])
state["active_alerts"] = state.get("active_alerts", [])
return state return state
else: else:
return { return {
@ -299,6 +300,7 @@ def load_state():
"alertscript_alerts": [], "alertscript_alerts": [],
"last_alerts": OrderedDict(), "last_alerts": OrderedDict(),
"last_sayalert": [], "last_sayalert": [],
"active_alerts": [],
} }
@ -312,6 +314,7 @@ def save_state(state):
state["alertscript_alerts"] = list(state["alertscript_alerts"]) state["alertscript_alerts"] = list(state["alertscript_alerts"])
state["last_alerts"] = list(state["last_alerts"].items()) state["last_alerts"] = list(state["last_alerts"].items())
state["last_sayalert"] = list(state["last_sayalert"]) state["last_sayalert"] = list(state["last_sayalert"])
state["active_alerts"] = list(state["active_alerts"])
with open(data_file, "w") as file: with open(data_file, "w") as file:
json.dump(state, file, ensure_ascii=False, indent=4) json.dump(state, file, ensure_ascii=False, indent=4)
@ -337,20 +340,24 @@ def getAlerts(countyCodes):
} }
severity_mapping_words = {"Warning": 4, "Watch": 3, "Advisory": 2, "Statement": 1} severity_mapping_words = {"Warning": 4, "Watch": 3, "Advisory": 2, "Statement": 1}
# Inject alerts if DEV INJECT is enabled in the config alerts = OrderedDict()
seen_alerts = set() # Store seen alerts
current_time = datetime.now(timezone.utc)
# Check if injection is enabled
if config.get("DEV", {}).get("INJECT", False): if config.get("DEV", {}).get("INJECT", False):
logger.debug("getAlerts: DEV Alert Injection Enabled") logger.debug("getAlerts: DEV Alert Injection Enabled")
injected_alerts = [ injected_alerts = config["DEV"].get("INJECTALERTS", [])
alert.strip() for alert in config["DEV"].get("INJECTALERTS", [])
]
logger.debug("getAlerts: Injecting alerts: %s", injected_alerts) logger.debug("getAlerts: Injecting alerts: %s", injected_alerts)
alerts = OrderedDict((alert, "Injected manually") for alert in injected_alerts)
for event in injected_alerts:
last_word = event.split()[-1]
severity = severity_mapping_words.get(last_word, 0)
alerts[(event, severity)] = "Manually injected."
alerts = OrderedDict(list(alerts.items())[:max_alerts]) alerts = OrderedDict(list(alerts.items())[:max_alerts])
return alerts
alerts = OrderedDict() return alerts
seen_alerts = set() # Store seen alerts
current_time = datetime.now(timezone.utc)
for countyCode in countyCodes: for countyCode in countyCodes:
url = "https://api.weather.gov/alerts/active?zone={}".format(countyCode) url = "https://api.weather.gov/alerts/active?zone={}".format(countyCode)
@ -752,9 +759,20 @@ def alertScript(alerts):
:type alerts: list[str] :type alerts: list[str]
""" """
# Load the saved state
state = load_state()
processed_alerts = state["alertscript_alerts"]
active_alerts = state.get("active_alerts", []) # Load active alerts from state
# Extract only the alert names from the OrderedDict keys # Extract only the alert names from the OrderedDict keys
alert_names = [alert[0] for alert in alerts.keys()] alert_names = [alert[0] for alert in alerts.keys()]
# New alerts are those that are in the current alerts but were not active before
new_alerts = list(set(alert_names) - set(active_alerts))
# Update the active alerts in the state
state["active_alerts"] = alert_names
# Fetch AlertScript configuration from global_config # Fetch AlertScript configuration from global_config
alertScript_config = config.get("AlertScript", {}) alertScript_config = config.get("AlertScript", {})
logger.debug("AlertScript configuration: %s", alertScript_config) logger.debug("AlertScript configuration: %s", alertScript_config)
@ -765,6 +783,9 @@ def alertScript(alerts):
mappings = [] mappings = []
logger.debug("Mappings: %s", mappings) logger.debug("Mappings: %s", mappings)
# A set to hold alerts that are processed in this run
currently_processed_alerts = set()
# Iterate over each mapping # Iterate over each mapping
for mapping in mappings: for mapping in mappings:
logger.debug("Processing mapping: %s", mapping) logger.debug("Processing mapping: %s", mapping)
@ -775,7 +796,7 @@ def alertScript(alerts):
match_type = mapping.get("Match", "ANY").upper() match_type = mapping.get("Match", "ANY").upper()
matched_alerts = [] matched_alerts = []
for alert in alert_names: for alert in new_alerts: # We only check the new alerts
for trigger in triggers: for trigger in triggers:
if fnmatch.fnmatch(alert, trigger): if fnmatch.fnmatch(alert, trigger):
logger.debug( logger.debug(
@ -795,6 +816,9 @@ def alertScript(alerts):
) )
# Execute commands based on the Type of mapping # Execute commands based on the Type of mapping
for alert in matched_alerts:
currently_processed_alerts.add(alert)
if mapping.get("Type") == "BASH": if mapping.get("Type") == "BASH":
logger.debug('Mapping type is "BASH"') logger.debug('Mapping type is "BASH"')
for cmd in commands: for cmd in commands:
@ -805,9 +829,15 @@ def alertScript(alerts):
for node in nodes: for node in nodes:
for cmd in commands: for cmd in commands:
dtmf_cmd = 'asterisk -rx "rpt fun {} {}"'.format(node, cmd) dtmf_cmd = 'asterisk -rx "rpt fun {} {}"'.format(node, cmd)
logger.info("AlertScript: Executing DTMF command: %s", dtmf_cmd) logger.info(
"AlertScript: Executing DTMF command: %s", dtmf_cmd
)
subprocess.run(dtmf_cmd, shell=True) subprocess.run(dtmf_cmd, shell=True)
# Update the state with the alerts processed in this run
state["alertscript_alerts"] = list(currently_processed_alerts)
save_state(state)
def sendPushover(message, title=None, priority=0): def sendPushover(message, title=None, priority=0):
""" """
@ -917,6 +947,25 @@ def change_and_log_CT_or_ID(
logger.debug("%s auto change is not enabled", alert_type) logger.debug("%s auto change is not enabled", alert_type)
def supermon_back_compat(alerts):
"""
Write alerts to a file for backward compatibility with supermon.
Args:
alerts (OrderedDict): The alerts to write.
"""
# Ensure the target directory exists
os.makedirs("/tmp/AUTOSKY", exist_ok=True)
# Get alert titles (without severity levels)
alert_titles = [alert[0] for alert in alerts.keys()]
# Write alert titles to a file, with each title on a new line
with open("/tmp/AUTOSKY/warnings.txt", "w") as file:
file.write("<br>".join(alert_titles))
def main(): def main():
""" """
The main function that orchestrates the entire process of fetching and The main function that orchestrates the entire process of fetching and
@ -953,6 +1002,10 @@ def main():
pushover_enabled = config["Pushover"].get("Enable", False) pushover_enabled = config["Pushover"].get("Enable", False)
pushover_debug = config["Pushover"].get("Debug", False) pushover_debug = config["Pushover"].get("Debug", False)
supermon_compat_enabled = config["DEV"].get("SupermonCompat", True)
if supermon_compat_enabled:
supermon_back_compat(alerts)
# Initialize pushover message # Initialize pushover message
pushover_message = ( pushover_message = (
"Alerts Cleared\n" "Alerts Cleared\n"

@ -1,4 +1,4 @@
# SkywarnPlus v0.2.2 Configuration File # SkywarnPlus v0.2.3 Configuration File
# Author: Mason Nelson (N5LSN/WRKF394) # Author: Mason Nelson (N5LSN/WRKF394)
# Please edit this file according to your specific requirements. # Please edit this file according to your specific requirements.
# #
@ -22,7 +22,7 @@ Asterisk:
# - 1998 # - 1998
# - 1999 # - 1999
Nodes: Nodes:
- 1999 - YOUR_NODE_NUMBER
################################################################################################################################ ################################################################################################################################
@ -35,7 +35,7 @@ Alerting:
# - ARC121 # - ARC121
# - ARC021 # - ARC021
CountyCodes: CountyCodes:
- ARC125 - YOUR_COUNTY_CODE
# Enable instant voice announcement when new weather alerts are issued. # Enable instant voice announcement when new weather alerts are issued.
# Set to 'True' for enabling or 'False' for disabling. # Set to 'True' for enabling or 'False' for disabling.
# Example: SayAlert: true # Example: SayAlert: true
@ -74,7 +74,7 @@ Blocking:
Tailmessage: Tailmessage:
# Configuration for the tail message functionality. Requires initial setup in RPT.CONF. # Configuration for the tail message functionality. Requires initial setup in RPT.CONF.
# Set 'Enable' to 'True' for enabling or 'False' for disabling. # Set 'Enable' to 'True' for enabling or 'False' for disabling.
Enable: true Enable: false
# Specify an alternative path and filename for saving the tail message. # Specify an alternative path and filename for saving the tail message.
# Default is /tmp/SkywarnPlus/wx-tail.wav. # Default is /tmp/SkywarnPlus/wx-tail.wav.
# TailmessagePath: # TailmessagePath:
@ -207,10 +207,9 @@ SkyDescribe:
AlertScript: AlertScript:
# Completely enable/disable AlertScript # Completely enable/disable AlertScript
Enable: true Enable: false
Mappings: Mappings:
# Define the mapping of alerts to either DTMF commands or bash scripts here. # Define the mapping of alerts to either DTMF commands or bash scripts here.
# Wildcards (*) can be used in the ALERTS for broader matches.
# Examples: # Examples:
# #
# This entry will execute the bash command 'asterisk -rx "rpt fun 1999 *123*456*789"' # This entry will execute the bash command 'asterisk -rx "rpt fun 1999 *123*456*789"'
@ -220,7 +219,7 @@ AlertScript:
# Nodes: # Nodes:
# - 1999 # - 1999
# Commands: # Commands:
# - '*123*456*789' # - "*123*456*789"
# Triggers: # Triggers:
# - Tornado Warning # - Tornado Warning
# - Tornado Watch # - Tornado Watch
@ -232,10 +231,10 @@ AlertScript:
# #
# - Type: BASH # - Type: BASH
# Commands: # Commands:
# - '/home/repeater/testscript.sh' # - "/home/repeater/testscript.sh"
# - '/home/repeater/saytime.sh' # - "/home/repeater/saytime.sh"
# Triggers: # Triggers:
# - '*Statement' # - "*Statement"
# #
# This entry will execute the bash command 'asterisk -rx "rpt fun 1998 *123*456*789"' # This entry will execute the bash command 'asterisk -rx "rpt fun 1998 *123*456*789"'
# and the bash command 'asterisk -rx "rpt fun 1999 *123*456*789"' when an alert # and the bash command 'asterisk -rx "rpt fun 1999 *123*456*789"' when an alert
@ -246,7 +245,7 @@ AlertScript:
# - 1998 # - 1998
# - 1999 # - 1999
# Commands: # Commands:
# - '*123*456*789' # - "*123*456*789"
# Triggers: # Triggers:
# - Tornado Warning # - Tornado Warning
# - Tornado Watch # - Tornado Watch
@ -259,8 +258,8 @@ AlertScript:
# Nodes: # Nodes:
# - 1999 # - 1999
# Commands: # Commands:
# - '*123*456*789' # - "*123*456*789"
# - '*987*654*321' # - "*987*654*321"
# Triggers: # Triggers:
# - Tornado Warning # - Tornado Warning
# - Tornado Watch # - Tornado Watch
@ -291,7 +290,7 @@ Pushover:
Logging: Logging:
# Enable verbose logging # Enable verbose logging
Debug: true Debug: false
# Specify an alternative log file path. # Specify an alternative log file path.
# LogPath: # LogPath:
@ -301,7 +300,9 @@ DEV:
# Delete cached data on startup # Delete cached data on startup
CLEANSLATE: false CLEANSLATE: false
# Specify the TMP directory. # Specify the TMP directory.
TmpDir: C:\Users\Mason\Desktop\SWP_TMP TmpDir: /tmp/SkywarnPlus
# Write alert titles to /tmp/AUTOSKY/alerts.txt for Supermon backwards compatibility.
SupermonCompat: true
# Enable test alert injection instead of calling the NWS API by setting 'INJECT' to 'True'. # Enable test alert injection instead of calling the NWS API by setting 'INJECT' to 'True'.
INJECT: false INJECT: false
# List the test alerts to inject. Use a case-sensitive list. One alert per line. # List the test alerts to inject. Use a case-sensitive list. One alert per line.

Loading…
Cancel
Save

Powered by TurnKey Linux.