Fix request URL for MosquitoActivity record

This commit is contained in:
April 2022-10-21 22:39:09 -07:00
parent a45db0afb7
commit 0db804a31a
No known key found for this signature in database
GPG Key ID: 17A9A017FAA4DE5E
2 changed files with 2 additions and 3 deletions

View File

@ -60,8 +60,7 @@ async def HourUpdaters():
Breathing.makeDataFile()
HeatingAndCooling.makeRecord()
WateringNeeds.makeRecord()
# This returns a 401 at the moment and im not sure why.
# MosquitoActivity.makeRecord()
MosquitoActivity.makeRecord()
AchesAndPains.makeRecord()
TideForecast.makeRecord()
l.debug("Sleeping for an hour...")

View File

@ -21,7 +21,7 @@ for i in MPC.getPrimaryLocations():
apiKey = "21d8a80b3d6b444998a80b3d6b1449d3"
def getData(coopId, geocode):
fetchUrl = f"https://api.weather.com/v2/indices/mosquito/daypart/7day?geocode={geocode}&language=en-US&format=xml&apiKey={apiKey}"
fetchUrl = f"https://api.weather.com/v2/indices/mosquito/daily/7day?geocode={geocode}&language=en-US&format=xml&apiKey={apiKey}"
res = requests.get(fetchUrl)