Reformat config.yaml

pull/34/head v0.2.5
Mason10198 3 years ago
parent a1be2c344e
commit 0d0c96f3c2

@ -1,15 +1,14 @@
# SkywarnPlus v0.2.4 Configuration File # SkywarnPlus v0.2.4 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.
#
# This config file is structured YAML. Please be sure to maintain the structure when editing. # This config file is structured YAML. Please be sure to maintain the structure when editing.
# YAML is very picky about indentation. Use spaces, not tabs. # YAML is very picky about indentation. Use spaces, not tabs.
################################################################################################################################ ################################################################################################################################
SKYWARNPLUS: SKYWARNPLUS:
#
#
# Toggle the entire SkywarnPlus operation. # Toggle the entire SkywarnPlus operation.
# Set to 'True' to activate or 'False' to disable. # Set to 'True' to activate or 'False' to disable.
# Example: Enable: true # Example: Enable: true
@ -18,8 +17,7 @@ SKYWARNPLUS:
################################################################################################################################ ################################################################################################################################
Asterisk: Asterisk:
#
#
# List of node numbers for broadcasting alerts. Multiple nodes are specified as a list. # List of node numbers for broadcasting alerts. Multiple nodes are specified as a list.
# Example: # Example:
# Nodes: # Nodes:
@ -31,8 +29,7 @@ Asterisk:
################################################################################################################################ ################################################################################################################################
Alerting: Alerting:
#
#
# Specify the county codes for which you want to pull weather data. # Specify the county codes for which you want to pull weather data.
# Find your county codes at https://alerts.weather.gov/. # Find your county codes at https://alerts.weather.gov/.
# Make sure to use county codes ONLY, NOT zone codes, otherwise you might miss out on alerts. # Make sure to use county codes ONLY, NOT zone codes, otherwise you might miss out on alerts.
@ -42,40 +39,32 @@ Alerting:
# - ARC021 # - ARC021
CountyCodes: CountyCodes:
- YOUR_COUNTY_CODE - 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
SayAlert: true SayAlert: true
#
#
# Specify a WAV file in the root of the SOUNDS directory to be appended to the end of the alert message. # Specify a WAV file in the root of the SOUNDS directory to be appended to the end of the alert message.
#SayAlertSuffix: #SayAlertSuffix:
#
#
# Enable instant voice announcement when weather alerts are cleared. # Enable instant voice announcement when weather alerts are cleared.
# Set to 'True' for enabling or 'False' for disabling. # Set to 'True' for enabling or 'False' for disabling.
# Example: SayAllClear: true # Example: SayAllClear: true
SayAllClear: true SayAllClear: true
#
#
# Limit the maximum number of alerts to process in case of multiple alerts. # Limit the maximum number of alerts to process in case of multiple alerts.
# SkywarnPlus fetches all alerts, orders them by severity, and processes only the 'n' most severe alerts, where 'n' is the MaxAlerts value. # SkywarnPlus fetches all alerts, orders them by severity, and processes only the 'n' most severe alerts, where 'n' is the MaxAlerts value.
#MaxAlerts: #MaxAlerts:
#
#
# Specify an alternative path to the directory where sound files are located. # Specify an alternative path to the directory where sound files are located.
# Default is SkywarnPlus/SOUNDS. # Default is SkywarnPlus/SOUNDS.
#SoundsPath: #SoundsPath:
#
#
################################################################################################################################ ################################################################################################################################
Blocking: Blocking:
#
#
# List of globally blocked events. These alerts are ignored across the entire SkywarnPlus operation. # List of globally blocked events. These alerts are ignored across the entire SkywarnPlus operation.
# Use a case-sensitive list. Wildcards can be used. # Use a case-sensitive list. Wildcards can be used.
# Example: # Example:
@ -84,13 +73,11 @@ Blocking:
# - '*Statement' # - '*Statement'
# - '*Advisory' # - '*Advisory'
GlobalBlockedEvents: GlobalBlockedEvents:
#
#
# List of events blocked from being announced when received. These alerts will still be added to the tail message. # List of events blocked from being announced when received. These alerts will still be added to the tail message.
# Use a case-sensitive list. # Use a case-sensitive list.
SayAlertBlockedEvents: SayAlertBlockedEvents:
#
#
# List of events blocked from being added to the tail message. These alerts will still be announced when received. # List of events blocked from being added to the tail message. These alerts will still be announced when received.
# Use a case-sensitive list. # Use a case-sensitive list.
TailmessageBlockedEvents: TailmessageBlockedEvents:
@ -99,16 +86,13 @@ 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.
#
#
# Enable/disable automatic tail message. # Enable/disable automatic tail message.
Enable: false Enable: false
#
#
# Specify a WAV file in the root of the SOUNDS directory to be appended to the end of the tail message. # Specify a WAV file in the root of the SOUNDS directory to be appended to the end of the tail message.
#TailmessageSuffix: #TailmessageSuffix:
#
#
# 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:
@ -117,36 +101,32 @@ Tailmessage:
CourtesyTones: CourtesyTones:
# Configuration for automatic CT changing. Requires initial setup in RPT.CONF. # Configuration for automatic CT changing. Requires initial setup in RPT.CONF.
#
#
# Enable/disable automatic courtesy tones. # Enable/disable automatic courtesy tones.
Enable: false Enable: false
#
#
# Specify an alternative directory where tone files are located. # Specify an alternative directory where tone files are located.
# Default is SkywarnPlus/SOUNDS/TONES. # Default is SkywarnPlus/SOUNDS/TONES.
#ToneDir: #ToneDir:
#
#
# Define the sound files for courtesy tones. # Define the sound files for courtesy tones.
Tones: Tones:
#
# Audio file to feed Asterisk as ct1 in "normal" mode # Audio file to feed Asterisk as ct1 in "normal" mode
CT1: Boop.ulaw CT1: Boop.ulaw
#
# Audio file to feed Asterisk as ct2 in "normal" mode # Audio file to feed Asterisk as ct2 in "normal" mode
CT2: Beep.ulaw CT2: Beep.ulaw
#
# Audio file to feed Asterisk as ct1 AND ct2 in "wx" mode # Audio file to feed Asterisk as ct1 AND ct2 in "wx" mode
WXCT: Stardust.ulaw WXCT: Stardust.ulaw
#
# The file rpt.conf is looking for as ct1 # The file rpt.conf is looking for as ct1
RptCT1: CT1.ulaw RptCT1: CT1.ulaw
#
# The file rpt.conf is looking for as ct2 # The file rpt.conf is looking for as ct2
RptCT2: CT2.ulaw RptCT2: CT2.ulaw
#
#
# Define the alerts that trigger the "wx" courtesy tone. # Define the alerts that trigger the "wx" courtesy tone.
# Use a case-sensitive list. One alert per line. # Use a case-sensitive list. One alert per line.
CTAlerts: CTAlerts:
@ -185,30 +165,26 @@ CourtesyTones:
IDChange: IDChange:
# Configuration for Automatic ID Changing. Requires initial setup in RPT.CONF and manual creation of audio files. # Configuration for Automatic ID Changing. Requires initial setup in RPT.CONF and manual creation of audio files.
#
#
# Enable/disable automatic ID changing. # Enable/disable automatic ID changing.
Enable: false Enable: false
#
#
# Specify an alternative directory where ID files are located. # Specify an alternative directory where ID files are located.
# Default is SkywarnPlus/SOUNDS/ID. # Default is SkywarnPlus/SOUNDS/ID.
#IDDir: #IDDir:
#
#
# Define the sound files for IDs. # Define the sound files for IDs.
IDs: IDs:
#
# Audio file to feed Asterisk as ID in "normal" mode # Audio file to feed Asterisk as ID in "normal" mode
NormalID: NORMALID.ulaw NormalID: NORMALID.ulaw
#
# Audio file to feed Asterisk as ID in "wx" mode # Audio file to feed Asterisk as ID in "wx" mode
WXID: WXID.ulaw WXID: WXID.ulaw
#
# Audio file rpt.conf is looking for as ID # Audio file rpt.conf is looking for as ID
RptID: RPTID.ulaw RptID: RPTID.ulaw
#
#
# Define the alerts that trigger the weather ID. # Define the alerts that trigger the weather ID.
# Use a case-sensitive list. One alert per line. # Use a case-sensitive list. One alert per line.
IDAlerts: IDAlerts:
@ -249,24 +225,19 @@ SkyDescribe:
# SkyDescribe is a feature that allows you to request a detailed description of a weather alert. # SkyDescribe is a feature that allows you to request a detailed description of a weather alert.
# VoiceRSS is a free service that SkyDescribe requires to function. You must obtain an API key from VoiceRSS.org. # VoiceRSS is a free service that SkyDescribe requires to function. You must obtain an API key from VoiceRSS.org.
# See VoiceRSS.ors/api/ for more information # See VoiceRSS.ors/api/ for more information
#
#
# API Key for VoiceRSS.org # API Key for VoiceRSS.org
APIKey: APIKey:
#
#
# VoiceRSS language code # VoiceRSS language code
Language: en-us Language: en-us
#
#
# VoiceRSS speech rate. -10 is slowest, 10 is fastest. # VoiceRSS speech rate. -10 is slowest, 10 is fastest.
Speed: 0 Speed: 0
#
#
# VoiceRSS voice profile. See VoiceRSS.org/api/ for more information. # VoiceRSS voice profile. See VoiceRSS.org/api/ for more information.
Voice: John Voice: John
#
#
# Maximum number of words to be spoken by SkyDescribe. # Maximum number of words to be spoken by SkyDescribe.
# CAUTION: Setting this value too high may cause SkyDescribe to exceed the timeout timer of your node. # CAUTION: Setting this value too high may cause SkyDescribe to exceed the timeout timer of your node.
# ~130 words is around 60 seconds at Speed: 0. # ~130 words is around 60 seconds at Speed: 0.
@ -276,19 +247,17 @@ SkyDescribe:
AlertScript: AlertScript:
# AlertScript allows you to map BASH or DTMF commands to be executed when a weather alert is detected. # AlertScript allows you to map BASH or DTMF commands to be executed when a weather alert is detected.
#
#
# Completely enable/disable AlertScript # Completely enable/disable AlertScript
Enable: false 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.
# 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"'
# when the alerts "Tornado Warning" AND "Tornado Watch" are detected. # when the alerts "Tornado Warning" AND "Tornado Watch" are detected.
#
# - Type: DTMF # - Type: DTMF
# Nodes: # Nodes:
# - 1999 # - 1999
@ -298,22 +267,22 @@ AlertScript:
# - Tornado Warning # - Tornado Warning
# - Tornado Watch # - Tornado Watch
# Match: ALL # Match: ALL
#
# This entry will execute the bash command '/home/repeater/testscript.sh' # This entry will execute the bash command '/home/repeater/testscript.sh'
# and the bash command '/home/repeater/saytime.sh' when an alert whose # and the bash command '/home/repeater/saytime.sh' when an alert whose
# title ends with "Statement" is detected. # title ends with "Statement" is detected.
#
# - 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
# titled "Tornado Warning" OR "Tornado Watch" is detected. # titled "Tornado Warning" OR "Tornado Watch" is detected.
#
# - Type: DTMF # - Type: DTMF
# Nodes: # Nodes:
# - 1998 # - 1998
@ -323,11 +292,11 @@ AlertScript:
# Triggers: # Triggers:
# - Tornado Warning # - Tornado Warning
# - Tornado Watch # - Tornado Watch
#
# 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"'
# and the bash command 'asterisk -rx "rpt fun 1999 *987*654*321"' # and the bash command 'asterisk -rx "rpt fun 1999 *987*654*321"'
# when an alert titled "Tornado Warning" OR "Tornado Watch" is detected. # when an alert titled "Tornado Warning" OR "Tornado Watch" is detected.
#
# - Type: DTMF # - Type: DTMF
# Nodes: # Nodes:
# - 1999 # - 1999
@ -338,11 +307,10 @@ AlertScript:
# - Tornado Warning # - Tornado Warning
# - Tornado Watch # - Tornado Watch
# Match: ANY # Match: ANY
#
#
# This is an example entry that will automatically execute SkyDescribe and # This is an example entry that will automatically execute SkyDescribe and
# 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:
- '/usr/local/bin/SkywarnPlus/SkyDescribe.py "Tornado Warning"' - '/usr/local/bin/SkywarnPlus/SkyDescribe.py "Tornado Warning"'
@ -353,20 +321,16 @@ AlertScript:
Pushover: Pushover:
# Configuration for Pushover integration. Pushover is a free notification service. Register at https://pushover.net/. # Configuration for Pushover integration. Pushover is a free notification service. Register at https://pushover.net/.
#
#
# Enable/disable Pushover integration. # Enable/disable Pushover integration.
Enable: false Enable: false
#
#
# Provide your user key obtained from Pushover. # Provide your user key obtained from Pushover.
UserKey: UserKey:
#
#
# Provide the API token obtained from Pushover. # Provide the API token obtained from Pushover.
APIToken: APIToken:
#
#
# Enable verbose messaging # Enable verbose messaging
Debug: false Debug: false
@ -374,12 +338,10 @@ Pushover:
Logging: Logging:
# Configuration for logging. # Configuration for logging.
#
#
# Enable verbose logging # Enable verbose logging
Debug: false Debug: false
#
#
# Specify an alternative log file path. # Specify an alternative log file path.
#LogPath: #LogPath:
@ -387,24 +349,19 @@ Logging:
DEV: DEV:
# Configuration for development and testing. # Configuration for development and testing.
#
#
# Delete cached data on startup # Delete cached data on startup
CLEANSLATE: false CLEANSLATE: false
#
#
# Specify the TMP directory. # Specify the TMP directory.
TmpDir: /tmp/SkywarnPlus TmpDir: /tmp/SkywarnPlus
#
#
# Write alert titles to /tmp/AUTOSKY/alerts.txt for Supermon backwards compatibility. # Write alert titles to /tmp/AUTOSKY/alerts.txt for Supermon backwards compatibility.
SupermonCompat: true 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.
INJECTALERTS: INJECTALERTS:
- Tornado Warning - Tornado Warning

Loading…
Cancel
Save

Powered by TurnKey Linux.