https://github.com/masilab/weather_fetcher
https://github.com/masilab/weather_fetcher
Last synced: 11 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/masilab/weather_fetcher
- Owner: MASILab
- Created: 2025-11-12T17:20:06.000Z (3 months ago)
- Default Branch: master
- Last Pushed: 2025-11-12T18:13:59.000Z (3 months ago)
- Last Synced: 2025-11-12T19:23:49.076Z (3 months ago)
- Language: Python
- Size: 14.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WeatherAPI
Fetch weather, air quality, and water quality data using Open-Meteo.
## Usage
### Option 1: API Only
Use `API_weather_tool.py` to fetch all data directly from APIs.
### Option 2: Local Docker + APIs
Use a local Docker container for weather data and fetch air/water quality from APIs.
**Setup:**
1. Create a Docker volume:
```bash
# 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=/open-meteo-historical \
--opt o=bind \
open-meteo-historical
```
2. Run `OpenMeteoDataFetcher.sh` to download weather data
- Set `DAYS` to specify how many days of historical data to fetch
3. Use `LocalOpenMeteoAPI.py` to 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.
## Resources
- [Open-Meteo Docker Tutorial](https://github.com/open-meteo/open-data/tree/main/tutorial_weather_api)