Skip to content

The Weather App is a Python-based GUI application using Tkinter that fetches real-time weather data from the OpenWeatherMap API. Users enter a city name to get temperature, humidity, wind speed, pressure, sunrise, and sunset times. It features a simple text input, keyboard support, and displays data in an intuitive format.

Notifications You must be signed in to change notification settings

atharv-1511/WeatherApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŒฆ๏ธ 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.


๐Ÿš€ Features

โœ… 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.


๐Ÿ› ๏ธ Technologies Used

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

๐Ÿ“Œ How to Run

Step 1: Install Required Libraries

Ensure you have Python installed. Then, install dependencies:
bash pip install requests

Step 2: Run the Application

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

โš ๏ธ Limitations Requires an active internet connection to fetch data. API requests are limited based on OpenWeatherMapโ€™s free-tier restrictions.

๐Ÿ“Œ Author Developed by Atharv Raskar

About

The Weather App is a Python-based GUI application using Tkinter that fetches real-time weather data from the OpenWeatherMap API. Users enter a city name to get temperature, humidity, wind speed, pressure, sunrise, and sunset times. It features a simple text input, keyboard support, and displays data in an intuitive format.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages