mirror of
https://github.com/mewtek/i2ME-Legacy.git
synced 2025-05-12 01:10:24 -05:00
Fix request URL for MosquitoActivity record
This commit is contained in:
parent
a45db0afb7
commit
0db804a31a
3
main.py
3
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...")
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user