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
requestslibrarydatetimelibrary
-
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.