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

@@ -1,5 +1,4 @@
import requests
import sys
import gzip
import uuid
import os
@@ -8,12 +7,9 @@ import xml.dom.minidom
import logging,coloredlogs
import aiohttp, aiofiles, asyncio
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()
@@ -31,7 +27,7 @@ l.debug(coopIds, geocodes)
# 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"]
@@ -94,4 +90,4 @@ async def makeDataFile():
bit.sendFile(files, commands, numFiles, 0)
os.remove("./.temp/Breathing.i2m")
os.remove("./.temp/Breathing.gz")
os.remove("./.temp/Breathing.gz")