This program fetches weather data from Open-Meteo and plots them. It can plot today's weather, archived weather data from the past 5 hours, 4 days, 1 month, 2 months and 3 months, as well as forecast data for the next 3 days. The program can plot in both Metric and Imperial units.
Note that the Open-Meteo API returns different parameters for hourly and daily weather data.
Hourly data parameters:
- Temperature
- Humidity
- Precipitation
- Cloud cover
- Surface pressure
- Wind speed and direction
Daily data parameters:
- Temperature (max, min and mean over time)
- Precipitation sum
- Sunshine duration
- Wind speed and direction
- Clone the repository
cd weather_project- Create the virtual environment:
python3 -m venv venv
- Activate the virtual environment:
- macOS / Linux
source venv/bin/activate
- Windows (PowerShell)
.\venv\Scripts\Activate.ps1
- Windows (Command Prompt / cmd)
.\venv\Scripts\activate.bat
- Install dependencies
pip install -r requirements.txt
- Run
weather_main.py - Enter the city and country names
- Enter the duration
- Enter the units
Weather in Athens, Greece in the last 5 hours in Metric units:
Weather in Kota, India in the last month in Imperial units:

