Skip to content

The code is for a weather application that uses the OpenWeatherMap API. The application allows the user to enter the name of a city and then displays the weather data for that city, including the temperature, feels like temperature, minimum temperature, maximum temperature, humidity, sunrise time, sunset time, and overall description..

Notifications You must be signed in to change notification settings

theiturhs/GUI-based-Weather-Application

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

GUI-based-Weather-Application

The code is for a weather application that uses the OpenWeatherMap API. The application allows the user to enter the name of a city and then displays the weather data for that city, including the temperature, feels like temperature, minimum temperature, maximum temperature, humidity, sunrise time, sunset time, and overall description. The application also includes error handling in case the HTTP request to the OpenWeatherMap API fails.

NOTE: Replace the API Key in the code. Otherwise it will throw error!!!!!

The steps on how to use the application:

  1. Enter the name of the city in the entry field.
  2. Click the "Check Status" button.
  3. The weather data for the city will be displayed on the GUI window.

Some of the key features of the code:

The code uses the tkinter module to create a GUI window. Then it uses the requests module to make HTTP requests. Further, it uses the convert_api_time_to_ist() function to convert the sunrise and sunset times from the OpenWeatherMap API to IST. Then it uses the api_call() function to retrieve the weather data for the city that is entered by the user. Also it includes some error handling.

The main window looks like:

image

Further,

image

image

About

The code is for a weather application that uses the OpenWeatherMap API. The application allows the user to enter the name of a city and then displays the weather data for that city, including the temperature, feels like temperature, minimum temperature, maximum temperature, humidity, sunrise time, sunset time, and overall description..

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages