diff --git a/SkyControl.py b/SkyControl.py index 07dadee..020ef3c 100644 --- a/SkyControl.py +++ b/SkyControl.py @@ -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 diff --git a/SkyDescribe.py b/SkyDescribe.py index 042e8e8..8e5d273 100644 --- a/SkyDescribe.py +++ b/SkyDescribe.py @@ -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 diff --git a/SkywarnPlus.py b/SkywarnPlus.py index ecb2600..e605297 100644 --- a/SkywarnPlus.py +++ b/SkywarnPlus.py @@ -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) diff --git a/config.yaml b/config.yaml index 4b57761..769ae2e 100644 --- a/config.yaml +++ b/config.yaml @@ -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.