major rewrite
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import shutil
|
||||
import requests
|
||||
import logging,coloredlogs
|
||||
from py2Lib import bit
|
||||
import Util.MachineProductCfg as MPC
|
||||
import records.LFRecord as LFR
|
||||
import py2Lib.bit
|
||||
import util.machineProductCfg as MPC
|
||||
import records.lfRecord as LFR
|
||||
import gzip
|
||||
from os import remove
|
||||
import xml.dom.minidom
|
||||
@@ -21,7 +21,7 @@ for i in MPC.getPrimaryLocations():
|
||||
|
||||
# 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"]
|
||||
@@ -82,4 +82,4 @@ async def makeRecord():
|
||||
bit.sendFile([file], [command], 1, 0)
|
||||
|
||||
remove('./.temp/MosquitoActivity.i2m')
|
||||
remove('./.temp/MosquitoActivity.gz')
|
||||
remove('./.temp/MosquitoActivity.gz')
|
||||
|
||||
Reference in New Issue
Block a user