Fetch weather, air quality, and water quality data using Open-Meteo.
Use API_weather_tool.py to fetch all data directly from APIs.
Use a local Docker container for weather data and fetch air/water quality from APIs.
Setup:
-
Create a Docker volume:
# Create a Docker volume to store weather data docker volume create --name open-meteo-data # this is in /var/lib/docker/volumes # Create a Docker volume on a specific path docker volume create \ --driver local \ --opt type=none \ --opt device=<path_to_folder>/open-meteo-historical \ --opt o=bind \ open-meteo-historical
-
Run
OpenMeteoDataFetcher.shto download weather data- Set
DAYSto specify how many days of historical data to fetch
- Set
-
Use
LocalOpenMeteoAPI.pyto fetch data from the local Docker container and APIs
Note: The fetcher uses Copernicus satellite data by default. Edit the script to select other satellites.