fix weather api

This commit is contained in:
Florian Bezannier
2021-01-28 14:36:38 +01:00
parent abcb436f3e
commit f169253ec6
+1 -1
View File
@@ -465,7 +465,7 @@ class MyPSACC:
if self.weather_api is not None:
try:
weather_rep = requests.get("https://api.openweathermap.org/data/2.5/onecall",
params={"lat": res["latitude"], "lon": res["longitude"],
params={"lat": latitude, "lon": longitude,
"exclude": "minutely,hourly,daily,alerts",
"appid": "f8ee4124ea074950b696fd3e956a7069", "units": "metric"})
temp = weather_rep.json()["current"]["temp"]