graph_weather
graph_weather copied to clipboard
Script to fetch OpenMeteo Data(NWP Forecast and Historical data)
Pull Request
Description
This pull request adds functionality to fetch both forecast and historical weather data using the OpenMeteo API. It introduces a new class WeatherDataFetcher to encapsulate the data fetching logic and provides methods to fetch forecast data for specific models and historical data from the OpenMeteo API.
- Created a new class
WeatherDataFetcher
to handle weather data fetching. - Implemented methods to fetch forecast data (
fetch_forecast_data
) and historical data (fetch_historical_data
). - Added a method to process hourly data (
process_hourly_data
) extracted from the API response. - Implemented a method to print location information (
print_location_info
) extracted from the API response.
Fixes #90