Welcome to the Weather App! This application allows you to fetch and display current weather information for any city around the world using the OpenWeatherMap API.
- 🌍 Global Weather Data: Retrieve weather information for any city worldwide.
- 🌡️ Temperature Details: Get the current temperature and "feels like" temperature.
- 🌤️ Weather Description: Understand the current weather conditions with a detailed description.
- 💧 Humidity Levels: Check the humidity percentage.
- 🌬️ Wind Speed: Know the current wind speed in km/h.
- 🌀 Pressure: Get the atmospheric pressure in hPa.
- 🌅 Sunrise and Sunset Times: See the sunrise and sunset times in UTC.
These instructions will help you set up and run the Enhanced Weather App on your local machine.
- Python 3.x
requests
librarydatetime
library
-
Clone the repository:
git clone https://github.com/Goyam02/Weather-App.git cd Weather-App
-
Install the required dependencies:
pip install requests from datetime import datetime,timezone
-
Get your API key:
- Sign up for a free API key at OpenWeatherMap.
- Replace the api_key variable in the fetch_weather function with your valid API key.
- Sign up for a free API key at OpenWeatherMap.
- Run the application:
python weather.py
- Enter the city name when prompted:
🌤 Welcome to the Weather App! Enter city name: London
- View Weather Deatils:
- 🌍 Weather Details for London, GB: - 🌡️ Temperature: 15°C - 🥶 Feels Like: 13°C - 🌤️ Weather: Clear sky - 💧 Humidity: 60% - 🌬️ Wind Speed: 5 km/h - 🌀 Pressure: 1012 hPa - 🌅 Sunrise: 07:30:00 UTC - 🌇 Sunset: 16:45:00 UTC
Feel free to contribute to this project by submitting a pull request. For major changes, please open an issue first to discuss what you would like to change.
This project is licensed under the MIT License - see the LICENSE file for details.
- Thanks to OpenWeatherMap for providing the weather data API.