From 99ea3f4a91cecd1d3ddb2ed5e74a811f20b25927 Mon Sep 17 00:00:00 2001 From: Manuel Winz <28740753+manuelwinz@users.noreply.github.com> Date: Mon, 24 Feb 2025 12:16:47 +0100 Subject: [PATCH] OpenWeatherMap One Call API 3.0 Since the OpenWeatherMap One Call API 2.5 is deprecated since June 2024, its time to use the 3.0 version. --- psa_car_controller/psacc/utils/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/psa_car_controller/psacc/utils/utils.py b/psa_car_controller/psacc/utils/utils.py index 1c396e6..9dcf186 100644 --- a/psa_car_controller/psacc/utils/utils.py +++ b/psa_car_controller/psacc/utils/utils.py @@ -10,7 +10,7 @@ TIMEOUT_IN_S = 10 def get_temp(latitude: str, longitude: str, api_key: str) -> float: try: if latitude and longitude and api_key: - weather_rep = requests.get("https://api.openweathermap.org/data/2.5/onecall", + weather_rep = requests.get("https://api.openweathermap.org/data/3.0/onecall", params={"lat": latitude, "lon": longitude, "exclude": "minutely,hourly,daily,alerts", "appid": api_key,