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

@@ -7,13 +7,9 @@ import xml.dom.minidom
import logging,coloredlogs
import aiohttp, aiofiles, asyncio, asyncio
import sys
sys.path.append("./py2lib")
sys.path.append("./Util")
sys.path.append("./records")
import bit
import MachineProductCfg as MPC
import LFRecord as LFR
import py2Lib.bit
import util.machineProductCfg as MPC
import records.lfRecord as LFR
l = logging.getLogger(__name__)
coloredlogs.install()
@@ -33,7 +29,7 @@ for i in MPC.getMetroCities():
# 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)
apiKey = cfg["twcApiKey"]
@@ -97,4 +93,4 @@ async def makeDataFile():
bit.sendFile(files, commands, numFiles, 0)
os.remove("./.temp/HourlyForecast.i2m")
os.remove("./.temp/HourlyForecast.gz")
os.remove("./.temp/HourlyForecast.gz")