Alerts.py --> recordGenerators/Alerts.py

This commit is contained in:
April 2022-10-08 15:55:02 -07:00
parent 499491334f
commit 8079ce09e9
No known key found for this signature in database
GPG Key ID: 17A9A017FAA4DE5E
2 changed files with 12 additions and 1 deletions

View File

@ -10,7 +10,7 @@ import gzip
import py2Lib.bit as bit import py2Lib.bit as bit
#Zones/Counties to fetch alerts for #Zones/Counties to fetch alerts for
interestList = ['FLZ151', 'FLC057', 'FLZ149', 'FLZ249', 'FLC101'] interestList = ['FLZ151', 'FLC057', 'FLZ149', 'FLZ249', 'FLC101'] # TODO: Grab these automatically from MachineProductCfg.xml
#You can safely edit the API key here. Make sure to include the ' before and after the key #You can safely edit the API key here. Make sure to include the ' before and after the key
headlineApiKey = '21d8a80b3d6b444998a80b3d6b1449d3' headlineApiKey = '21d8a80b3d6b444998a80b3d6b1449d3'
@ -18,6 +18,7 @@ detailsApiKey = '21d8a80b3d6b444998a80b3d6b1449d3'
#Where does this script live? Put path below. #Where does this script live? Put path below.
#Sorry I'm too lazy to program this script figure it out itself. #Sorry I'm too lazy to program this script figure it out itself.
#TODO: Find the path automatically
path = 'D:\\PythonScripts\\Alerts' path = 'D:\\PythonScripts\\Alerts'
k = 0 k = 0
@ -309,6 +310,9 @@ def getAlerts(location):
c.close() c.close()
# TODO: This should be converted into a function so it works better with async, that way we're not getting hung up on that time.sleep() call.
n = 0 n = 0
while n==0: while n==0:
#Start our XML File #Start our XML File

View File

@ -0,0 +1,7 @@
import requests
apiKey = ''
def getCurrentConditions(locId):
pass