A simple command-line weather app that fetches real-time weather data for any city in the world using the Open-Meteo API.
- Python 3.10 or above
- requests (
pip install requests)
git clone https://github.com/apathydevil/WeatherCLI
cd WeatherCLI
pip install requests
python main.py
- Search weather by city name
- Displays temperature and wind speed
- Handles invalid cities and network errors gracefully
- Open-Meteo — weather data
- Open-Meteo Geocoding — city name to coordinates
I learned how to make API calls using the requests library, parse JSON responses, handle network errors with try/except, and work with nested dictionaries. First project to use real live external data.