This is my first Python project, built as part of my journey to learn Python and practical programming.
The project is a simple weather data collector that uses the Open-Meteo API to find a city's geographical coordinates and retrieve its current weather information.
The program works with two main steps:
- The user enters a city name.
- The program sends the city name to the Open-Meteo Geocoding API.
- It receives information about the city, including:
- Name
- Latitude
- Longitude
- The location information is stored in a JSON file.
- The user selects a city.
- The program reads the city's latitude and longitude from the JSON file.
- These coordinates are sent to the Open-Meteo Weather API.
- The program retrieves current weather information such as:
- Temperature
- Relative humidity
- Wind speed
- The weather information is stored in another JSON file.
The general workflow of the project is:
User enters a city
β
Geocoding API
β
City name + Latitude + Longitude
β
Save location data in JSON
β
User selects a city
β
Read coordinates from JSON
β
Weather API
β
Temperature + Humidity + Wind Speed
β
Save weather data in JSON