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)