From 0db804a31a98c6a322db3fa0063d93d86e720de1 Mon Sep 17 00:00:00 2001 From: April Date: Fri, 21 Oct 2022 22:39:09 -0700 Subject: [PATCH] Fix request URL for MosquitoActivity record --- main.py | 3 +-- recordGenerators/MosquitoActivity.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 46ac019..3550393 100644 --- a/main.py +++ b/main.py @@ -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...") diff --git a/recordGenerators/MosquitoActivity.py b/recordGenerators/MosquitoActivity.py index 572290c..0486dc3 100644 --- a/recordGenerators/MosquitoActivity.py +++ b/recordGenerators/MosquitoActivity.py @@ -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)