Skip to content

This is a simple weather application that retrieves weather information from an API and displays it in a graphical user interface (GUI) built using the Tkinter library. It demonstrates how to use APIs to fetch data, handle JSON responses, and create a user-friendly interface for displaying the weather information.

Notifications You must be signed in to change notification settings

TheUsefulNerd/The-Weather-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

The-Weather-App

WEATHER APP:

This is a simple weather application built using Python and Tkinter library. It retrieves weather information from an API based on the user's input of a city name.

FEATURES:

Retrieves and displays weather information including temperature and weather condition for a given city. Uses a configuration file to store the API key securely. GUI (Graphical User Interface) built using Tkinter library.

INSTALLATION:

Install the required dependencies. "pip install requests"

Obtain an API key from OpenWeatherMap API by creating an account at "https://openweathermap.org/".

Create a config.ini file in the project directory and add the following content:

"[api_key]" "key = YOUR_API_KEY" Replace "YOUR_API_KEY" with the API key obtained from OpenWeatherMap.

USAGE:

Run the application. python weather_app.py Enter the name of the city for which you want to retrieve weather information in the provided input field.

Click on the "Search Weather" button.

The weather information, including location, temperature, image and weather condition, will be displayed on the screen.

THE END <<<<<<<<

About

This is a simple weather application that retrieves weather information from an API and displays it in a graphical user interface (GUI) built using the Tkinter library. It demonstrates how to use APIs to fetch data, handle JSON responses, and create a user-friendly interface for displaying the weather information.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages