Mistyped an API link resulting in a 401 fixed

This commit is contained in:
April 2022-10-21 19:06:01 -07:00
parent a8e58857cb
commit 06912658bd
No known key found for this signature in database
GPG Key ID: 17A9A017FAA4DE5E

View File

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