RD
3 SEMESTER PYTHON MINI PROJECT PRESENTATION
WEATHER APPLICATION
USING
Python and Tkinter
GUIDED BY: PRESENTED BY:
APURBA ROY NILUTPAL DAS (24/544)
ABU TALHA (25/546)
ANGSUMAN CHUTIA (25/548)
RATNAMONI SAIKIA (25/549)
ROHAN GOGOI (25/550)
SAURAV MAHILARI (25/551)
DEPARTMENT OF MECHANICAL ENGINEERING
ASSAM ENGINEERING COLLEGE, GUWAHATI-13
Weather Application
Using Python and
Tkinter
Introduction to the App
This mini-project focuses on developing a Weather Application using Python and
Tkinter, integrating real-time data from the OpenWeather API to enhance user
experience and accessibility.
Objectives
The objectives of this mini-project are to gain hands-on experience in Python
programming, explore the Tkinter library, and understand how to interact with APIs for
real-world applications.
Learn Python GUI programming
Use real-time API data
Display weather details visually
Build a functional mini-project
Tools and Technologies
Essential components of the app
Python Tkinter OpenWeather API
Python is a powerful Tkinter is the standard The OpenWeather API
programming language GUI toolkit for delivers real-time weather
known for its simplicity Python, providing a data, allowing us to access
and versatility, making it straightforward way to forecasts and weather
ideal for developing create user interfaces information.
applications. for applications.
System Workflow
OPEN WEATHER API
The app uses the OpenWeather API to retrieve
current weather data based on user input, then
WEATHER DETAILS
USER GUI DISPLAYS WEATHER
processes and displays this information through
CITY
an intuitive Tkinter interface.
SOURCE
User selects city → App sends request → API returns data → GUI displays weather
Key Features
Real-time Updates Detailed Forecasts Location Search
Stay informed with live Access comprehensive Effortlessly find specific
weather information at weather predictions to weather conditions in
your fingertips. plan your day. any area.
User-Friendly Interface Clean GUI Drop down menu for
Navigate the app with A neat and simple cities
intuitive design and screen that is easy for A simple list you click to
simple features. users to understand and choose your city easily.
use.
Code Overview
This section highlights the key functions and modules used in the weather app, showcasing how they
interact to fetch and display real-time weather data seamlessly.
A. Importing Modules (Tkinter, Requests)
In this project, we first import the necessary
[Link] is used to create the graphical user
interface everything you see on the screen like
buttons, labels, and dropdowns is made using
Tkinter.
B. API Call Function
This is the main function that takes the selected city from the dropdown and sends a request to the
OpenWeather API using the city name and API key. The API returns real-time weather data, which
the function extracts and displays on the GUI.
C. GUI layout
The GUI layout is built using labels, buttons, and a combobox, which together create the visual
structure of the app.
Weather App in Action
Main window Weather result after selecting a city
Challenges Faced
1. Installing required modules
2. Error handling
3. API not working without internet
4. Tkinter layout adjustments
Applications and Educational Tool
Use Cases This project serves as an interactive
learning resource, introducing students to
programming concepts while engaging
Exploring practical applications of the
them with real-world applications of APIs.
weather app
Personal Monitoring Custom Projects
The app allows users to track local weather Developers can use this app as a base to
conditions effectively, helping them plan create their own weather tools. They can
their daily activities and stay informed. add or change features to suit the specific
needs or likes of different users.
Future Enhancements
Adding humidity and wind speed Auto-location detection
Adding humidity and wind speed will give It will automatically detect the user’s
users more detailed and accurate weather location and shows the weather without
information. needing them to type their city.
Adding weather icons 5-day weather forecast
Adding weather icons will make the app
It will show the expected weather
visually clear by showing the weather
conditions for the next five days to help
through simple images.
users plan ahead.
Conclusion
Summary of the project
This project helped us create a simple and useful weather app that gives real-
time information in an easy way. Through this project, we learned how APIs
work, improved our coding skills, and built something practical for everyday
use.
Thank You !