major rewrite

This commit is contained in:
2025-09-24 01:32:20 -05:00
parent c332748f44
commit 41413d72fd
21 changed files with 341 additions and 139 deletions

View File

@@ -2,7 +2,7 @@ import requests
import json
import os
from datetime import datetime,timedelta
from Util.MachineProductCfg import getAlertZones
from util.machineProductCfg import getAlertZones
import time
import pytz
import xml.dom.minidom
@@ -10,11 +10,7 @@ import shutil
import gzip
import logging,coloredlogs
import aiohttp, aiofiles, asyncio
import sys
sys.path.append("./py2lib")
import bit
import py2Lib.bit
l = logging.getLogger(__name__)
coloredlogs.install()
@@ -23,7 +19,7 @@ coloredlogs.install()
alertLocations = getAlertZones()
# Open the config file and make it accessible via "cfg"
import json
with open("conf.json", "r") as file:
with open("config.json", "r") as file:
cfg = json.load(file)
headlineApiKey = cfg["twcApiKey"]