major rewrite
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user