/python-weather-app

User-friendly desktop weather application built using Python and Tkinter.

Primary LanguagePython

Python Tkinter Weather App

Description

This Weather App is a simple, user-friendly desktop application built using Python and Tkinter. It allows users to enter the name of a city and fetches the current weather information for that location using the OpenWeatherMap API. The application displays the temperature, weather description, and an icon representing the current weather condition.

Features

  • City-Based Weather Search: Users can search for weather information by typing a city's name.
  • Real-Time Weather Data: Fetches current weather data including temperature, weather conditions, and corresponding icons.
  • User-Friendly Interface: Easy to navigate GUI made with Tkinter.
  • Dynamic Content Update: Previous weather data is cleared upon a new search, keeping the display fresh and relevant.

Installation

To run this application, you'll need Python installed on your system. Clone this repository to your local machine using:

git clone https://github.com/[your-username]/weather-app.git

Usage

After cloning the repository, navigate to the app's directory and run the following command:

python weather_app.py

Enter the name of the city for which you wish to see the weather and press the "Search" button.

Dependencies

  • Python 3.x
  • Tkinter (usually comes pre-installed with Python)
  • PIL (Python Imaging Library)
  • Requests

API Key

This app uses the OpenWeatherMap API. You will need to obtain a free API key from OpenWeatherMap and replace the api_key variable in the script with your own key.

Contribution

Contributions to this project are welcome. Feel free to fork the repository and submit your pull requests.

License

This project is licensed under MIT License.