๐ฆ๏ธ Weather App
๐ Description
The Weather App is a Python-based GUI application built using Tkinter that fetches real-time weather data from the OpenWeatherMap API. Users can enter a city name to get temperature, humidity, wind speed, pressure, sunrise, and sunset times in an intuitive interface.
โ
Real-time Weather Data - Fetches live weather conditions using OpenWeatherMap API.
โ
Temperature Conversion - Displays temperature in Celsius.
โ
Sunrise & Sunset Times - Shows human-readable sunrise & sunset times.
โ
Simple GUI - Built using Tkinter for easy interaction.
โ
Keyboard Support - Press Enter to get weather details.
- Python - Core programming language.
- Tkinter - For building the graphical user interface.
- Requests - To fetch weather data from OpenWeatherMap API.
- Time Module - To format sunrise and sunset timings.
Ensure you have Python installed. Then, install dependencies:
bash pip install requests
Execute the Python script: python weather_app.py
๐ API Key Configuration
This app uses OpenWeatherMap API. Get your API key from OpenWeatherMap and replace it in the code:
api = "https://api.openweathermap.org/data/2.5/weather?q="+city+"&appid=YOUR_API_KEY"
๐ Directory Structure
weather-app/ โ-- weather_app.py โ-- README.md โ-- requirements.txt
๐ Author Developed by Atharv Raskar