The Weather App is a Python program that allows users to retrieve current weather information for a specific city. It provides real-time data such as temperature, weather condition, humidity, wind speed, and more. The app uses the OpenWeatherMap API to fetch weather data and display it in a user-friendly graphical interface.
- User-friendly graphical interface.
- Real-time weather data retrieval.
- Display of temperature, weather condition, and additional information.
- Automatic timezone detection based on the selected city.
-
Clone this repository to your local machine:
git clone https://github.com/yourusername/weather-app.git
-
Install the required Python packages:
pip install geopy timezonefinder requests pytz
-
Obtain an API key from OpenWeatherMap by following their registration process.
-
Replace
'YOUR_API_KEY'
in thegetWeather
function with your actual OpenWeatherMap API key.
-
Run the Weather App by executing the following command:
python weather.py
-
Enter the name of the city for which you want to retrieve weather information.
-
Click the search icon or press Enter to fetch the weather data.
-
The app will display real-time weather information for the specified city.
- OpenWeatherMap - Weather data API provider.
- Geopy - Geocoding library.
- Timezonefinder - Timezone detection library.