v0.6.1 update

pull/140/head v0.6.1
Mason Nelson 2 years ago
parent 060e09e9de
commit f3507083c4

@ -1,7 +1,7 @@
#!/usr/bin/python3
"""
SkyControl.py v0.6.0 by Mason Nelson
SkyControl.py v0.6.1 by Mason Nelson
==================================
A Control Script for SkywarnPlus

@ -1,7 +1,7 @@
#!/usr/bin/python3
"""
SkyDescribe.py v0.6.0 by Mason Nelson
SkyDescribe.py v0.6.1 by Mason Nelson
==================================================
Text to Speech conversion for Weather Descriptions

@ -1,7 +1,7 @@
#!/usr/bin/python3
"""
SkywarnPlus.py v0.6.0 by Mason Nelson
SkywarnPlus.py v0.6.1 by Mason Nelson
===============================================================================
SkywarnPlus is a utility that retrieves severe weather alerts from the National
Weather Service and integrates these alerts with an Asterisk/app_rpt based
@ -41,7 +41,6 @@ import contextlib
import math
import sys
import itertools
import argparse
from datetime import datetime, timezone, timedelta
from dateutil import parser
from pydub import AudioSegment
@ -56,13 +55,6 @@ BASE_DIR = os.path.dirname(os.path.realpath(__file__))
CONFIG_PATH = os.path.join(BASE_DIR, "config.yaml")
COUNTY_CODES_PATH = os.path.join(BASE_DIR, "CountyCodes.md")
# Setup argparser
parser = argparse.ArgumentParser()
parser.add_argument(
"--inject", action="store_true", help="Enable inject directly via flag"
)
args = parser.parse_args()
# Open and read configuration file
with open(CONFIG_PATH, "r") as config_file:
config = yaml.load(config_file)
@ -412,7 +404,7 @@ def get_alerts(countyCodes):
LOGGER.debug("getAlerts: Current time: %s", current_time)
# Handle alert injection for development/testing purposes
if config.get("DEV", {}).get("INJECT", False) or args.inject:
if config.get("DEV", {}).get("INJECT", False):
LOGGER.debug("getAlerts: DEV Alert Injection Enabled")
injected_alerts = config["DEV"].get("INJECTALERTS", [])
LOGGER.debug("getAlerts: Injecting alerts: %s", injected_alerts)

@ -1,4 +1,4 @@
# SkywarnPlus v0.6.0 Configuration File
# SkywarnPlus v0.6.1 Configuration File
# Author: Mason Nelson (N5LSN/WRKF394)
# Please edit this file according to your specific requirements.

Loading…
Cancel
Save

Powered by TurnKey Linux.