Python
Python
MICRO-PROJECT REPORT
PREPARED BY:-
This is to certify that Mr./ Ms. SHAILESH KOSHEof 6th Semester of Diploma in
COMPUTER ENGINEERING of Institute Shreeyash College of engineering and technology
[Polytechnic] has successfully completed Micro-Project Work in Course of
PROGRAMMING WITH PYTHON for the academic year 2023-24 as prescribed in the I-
Scheme Curriculum.
Seal of Institute
ACKNOWLEDGEMENT
Aim: -
a. To understand the Versatility of the program .
b. To understand the Community Support:.
c. To understand the Career Opportunities
d. To understand the Rapid Prototyping
Benefits
a. To gaining knowledge about Job Market Demand
b. To know their Productivity
c. To Develop new technologies
i. Action Plan (Sequence and time required for major activity. The following is for Reference, The
Activities can be Added / reduced / Modified )
Name of
Sr. Planned Planned Responsible
Details of activity
No. Week Start Finish Team Members
date date
1 1 &2 Discussion & Finalization of Shailesh koshe
Topic
2 3 Preparation of the Abstract Shailesh koshe
3 4 Literature Review Shailesh koshe
4 5 Submission of Microproject Shailesh koshe
Proposal ( Annexure-I)
5 6 Collection of information about Shailesh koshe
Topic
6 7 Collection of relevant content / Shailesh koshe
materials for the execution of
Microproject.
7 8 Discussion and submission of Shailesh koshe
outline of the Microproject.
8 9 Analysis / execution of
Collected data / information and
preparation of Prototypes / Shailesh koshe
drawings / photos / charts /
graphs / tables / circuits / Models
/ programs etc.
9 10 Completion of Contents of Shailesh koshe
Project Report
10 11 Completion of Weekly progress Shailesh koshe
Report
11 12 Completion of Project Report ( Shailesh koshe
Annexure-II)
12 13 Viva voce / Delivery of Shailesh koshe
Presentation
j. Resources Required (major resources such asraw material, some machining facility,
software etc.)
Micro-Project Report
Format for Micro-Project Report (Minimum 4 pages)
This is a project report on “WEATHER FORECAST”’ using openweathermap API. It is a service that provides weather
data, including current weather data, forecasts and historical data to the developer of web services and mobile application.
With JSON,XML and HTML formats experiences. To use this current weather data API, one must need the API
key, User need to create an account on openweathermap.org then only can use the APIs. We use two modules
in the program requests And Json.
Aim: -
a. To understand the Versatility of the program .
b. To understand the Community Support:.
c. To understand the Career Opportunities
d. To understand the Rapid Prototyping
Benefits
a. To gaining knowledge about Job Market Demand
b. To know their Productivity
c. To Develop new technologies
3.0 Course Outcomes Achieved (Add to the earlier list if more Cos are addressed)
a. Understanding of Basic Concepts
b. Proficiency in Python Syntax
c. Problem-solving Skills
d. Data Structures and Algorithms
e. Object-Oriented Programming (OOP)
f. Utilize Python programming language to access weather data from APIs such as
OpenWeatherMap or the National Weather Service.
g. Module and Package Management:
h. Implement user-friendly interfaces for users to input location data and receive weather
forecasts.
4.0 Literature Review:- ( you can include all the resources which you have used to gather the information for
the Micro-project)
• https://www.geeksforgeeks.org/weather-forecast-openweathermap-api-in
• Reference Books like Nirali Prakashan and others.
5.0 Actual Methodology Followed
Real-time Weather Data: Provide current conditions like temperature and precipitation.
Hourly & Daily Forecasts: Predict weather changes for the upcoming hours and days.
Visualizations & Alerts: Use maps and notifications to enhance user experience and convey severe
weather warnings.
The weather forecast project developed using Python offers a comprehensive solution for users to access real-
time weather data and forecasts. With features like current weather updates, hourly and daily forecasts,
personalized location-based forecasting, and visualizations with alerts, the project caters to a wide range of user
needs. It provides a user-friendly interface for accessing accurate weather information, enabling users to plan
their activities and stay informed about weather conditions. Additionally, with potential expansions such as
historical data analysis and integration with mobile devices, the project's scope can further enhance its utility
and user experience.
Implementation of the Source Code
import requests
import json
import datetime
# necessary details
root = Tk()
root.title("Weather App")
root.geometry("450x700")
root['background'] = "white"
# Image
new = ImageTk.PhotoImage(Image.open('logo.png'))
panel.place(x=0, y=520)
# Dates
dt = datetime.datetime.now()
date.place(x=5, y=130)
month.place(x=100, y=130)
# Time
hour.place(x=10, y=160)
img = ImageTk.PhotoImage(Image.open('moon.png'))
panel.place(x=210, y=200)
else:
img = ImageTk.PhotoImage(Image.open('sun.png'))
panel.place(x=210, y=200)
# City Search
city_name = StringVar()
def city_name():
# API Call
api_request = requests.get("https://api.openweathermap.org/data/2.5/weather?q="
+ city_entry.get() + "&units=metric&appid="+api_key)
api = json.loads(api_request.content)
# Temperatures
y = api['main']
current_temprature = y['temp']
humidity = y['humidity']
tempmin = y['temp_min']
tempmax = y['temp_max']
# Coordinates
x = api['coord']
longtitude = x['lon']
latitude = x['lat']
# Country
z = api['sys']
country = z['country']
citi = api['name']
lable_temp.configure(text=current_temprature)
lable_humidity.configure(text=humidity)
max_temp.configure(text=tempmax)
min_temp.configure(text=tempmin)
lable_lon.configure(text=longtitude)
lable_lat.configure(text=latitude)
lable_country.configure(text=country)
lable_citi.configure(text=citi)
lable_citi.place(x=10, y=63)
lable_country = Label(root, text="...", width=0,
lable_country.place(x=135, y=63)
lable_lon.place(x=25, y=95)
lable_lat.place(x=95, y=95)
# Current Temperature
lable_temp.place(x=18, y=220)
humi.place(x=3, y=400)
lable_humidity.place(x=107, y=400)
maxi.place(x=3, y=430)
max_temp = Label(root, text="...", width=0,
max_temp.place(x=128, y=430)
mini.place(x=3, y=460)
min_temp.place(x=128, y=460)
# Note
note.place(x=95, y=495)
root.mainloop()
OUTPUT:
Conclusion :
the weather forecast project implemented using Python presents a robust and user-centric solution for
accessing timely and accurate weather information. Through its intuitive interface and diverse features,
including real-time updates, personalized forecasts, and visualizations with alerts, the project successfully
meets the needs of users seeking reliable weather forecasts. With possibilities for future enhancements such
as historical data analysis and mobile integration, the project stands poised to further elevate its utility and
effectiveness in keeping users informed and prepared for changing weather conditions..
6.0 Actual Resources Used (Mention the actual resources used).
sr.
Name of Resource/material Specifications Qty Remarks
No.
a. Individuals can utilize the weather forecast application for planning outdoor activities,
travel, and daily routines based on accurate and timely weather predictions.
b. Transportation companies can utilize weather forecasts to plan routes, schedule logistics,
and mitigate risks associated with adverse weather conditions, improving efficiency and
safety.
c. Construction companies can use weather forecasts to plan construction activities,
schedule work accordingly, and ensure worker safety in challenging weather conditions.
d. Lead-generation method.
e. Customer service mechanism.
f. Relationship-building medium.
g. Distribution channel.
Annexure-IV
MICRO-PROJECT EVOLUTION SHEET
(A) (B)
Process and Product Individual Presentation/ Total Marks
Assessment (6 marks) Viva (4 marks) 10
Dated Signature:-