mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-11 21:33:00 +00:00
Include hourly forecast data in One Call API request - Remove hourly from exclude parameter
This commit is contained in:
@@ -100,7 +100,7 @@ class WeatherManager:
|
|||||||
lon = geo_data[0]['lon']
|
lon = geo_data[0]['lon']
|
||||||
|
|
||||||
# Get current weather and daily forecast using One Call API
|
# Get current weather and daily forecast using One Call API
|
||||||
one_call_url = f"https://api.openweathermap.org/data/3.0/onecall?lat={lat}&lon={lon}&exclude=minutely,hourly,alerts&appid={api_key}&units={units}"
|
one_call_url = f"https://api.openweathermap.org/data/3.0/onecall?lat={lat}&lon={lon}&exclude=minutely,alerts&appid={api_key}&units={units}"
|
||||||
|
|
||||||
# Fetch current weather and daily forecast
|
# Fetch current weather and daily forecast
|
||||||
response = requests.get(one_call_url)
|
response = requests.get(one_call_url)
|
||||||
|
|||||||
Reference in New Issue
Block a user