Weather Prediction App

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 18

► The team members are:

OU TLI NE
• ABOUT WEATHER PREDICTION
• EXISTING SYSTEM
• PROBLEMS IN EXISTING SYSTEMS
• PYTHON
• MAIN MODULE- TKINTER
• OPEN WEATHER MAP API
• ARCHITECTURE DIAGRAM
• WORKING OF THE APPLICATION
• ACTIVITY DIAGRAM
• USE CASE DIAGRAMS
E
ABOUT WEATHER
PREDICTION
• A useful tool for informing populations about expected weather

conditions.

• Important for planning our day-to-day activities.

• Farmers need information to help them plan for the plan for the

planting and harvesting of their crops.

• Airlines need to know about local weather conditions in order to

schedule flights.

• Weather forecasting helps us to make more informed daily

decisions, and may even help keep us out of danger.


EXISTING SYSTEM
*''''''*
' II/Ill

* *
• The Weather Channel: provides you with a wealth of meteorological data
such as temperature, wind and visibility on an hourly or daily basis, with an
extended IO day forecast available.app is available on Android, iOS and Windows
Phone.
• Weather Timeline: Android based application. Extreme weather alerts from
your choice of a variety of data sources are received. Users can save a variety of
locations and view detailed daily forecasts.

• Dark Sky: Provides hyper-accurate local weather forecasting. Improved


interface revamp puts more weather data right at your fingertips. The freakishly
accurate hyperlocal forecast is now accompanied by a precipitation map for the
next hour, as well as handy hourly forecasts and a precipitation graph.
. I , :.. \1

l"~TiJ 1, ( 1 1 1 l',.4 , , ! H tA l 1 ... ►


,t)'1 P, r ~rn ,n
11'1
·- • l
,,

waned Lake, Ml
-~
if

. ~
. EXISTING
APPLICATIONS
69'i1F~
Partly Cloudy
'

--
.,. ' .,....... __
; ,, , ,J·, I . .. t, •, I I I I ; ,; 'l) r, 111 '°' . .,".. ....., "'"·

: : l o-..t
I ~
... ...
apa tt'

•..
Or r•••
- / 111,-,.,
(

WEATHER
Tl MELINE
PROBLEMS IN EXISTING
SYSTEMS
• The Weather Channel includes social sharing. Sharing
personal details and location pose a threat to the security
of the user. Android or ios applications can even have bugs
which can corrupt the entire system.
• Dark sky application though provides hourly weather
updates but is unable to predict the weather forecast for
coming days. So, user will be unable to take necessary
steps. This application is not free to use.
• Weather Timeline beautifully show hourly updates but
doesn't provide forecast for coming days.
PYTHON

► Python is a high-level, interpreted and general-purpose


dynamic programming language.
► The syntax in Python helps the programmers to do
coding in fewer steps as compared to Java or C++.
► Python is Interactive, Interpreted, Modular, Dynamic,
Object-oriented, Portable, and High level.
► It provides large standard libraries that include the areas
like string operations, Internet, web service tools,
operating system interfaces and protocols.
MAIN MODULE - TKINTER
Tkinter is a Python binding to the Tk GUI toolkit. It is the standard
Python interface to the Tk GUI toolkit, and is Python's de
facto standard GUI. Tkinter is included with standard Linux, Microsoft
Windows and Mac OS X installs of Python. Core widgets available in
Tkinter library are-

• Containers: frame, toplevel, paned window.


• Buttons: button, radiobutton, checkbutton {checkbox),
menubutton {combobox).
• Text Widgets: label, labelframe, message, text.
• Entry Widgets: scale, scroll, listbox, slider, spinbox, entry
{singleline), text {multiline), and canvas {vector and pixel
graphics).
OPEN WEATHER MAP API
The back-end of the application uses two APls from OpenWeatherMap,
which is an open source and enables anyone to download APls for
various purposes.

• Current Weather Data: Fetch the current weather conditions for any
location over 200,000 cities round the world. Weather is updated based
on data from more than 40,000 weather stations. Data is available in
JSON, XML or HTML format.

API call:
api.openweathermap.org/data/2.5/weather?q={city name}
api.openweathermap.org/data/2.5/weather?q={city name},{country
code}
api.openweathermap.org/data/2.5/weather?zip={zip code},{country
code}
WEATHER PREDICTION API
• S day/ 3 hour forecast: This API provides the 5 day foreca~
available in any city or location. 5 day forecast includes weathe
data every 3 hours. Forecast is available in JSON and XML format.

• API Call
api.openweath ermap.org/data /2.5/forecast?q ={city
name},{country code}
api.openweath ermap.org/data /2.5/forecast?id ={city ID}
api.openweath ermap.org/data /2.5/forecast?z ip={zip
code},{country code}
ARCHITECTURE DIAGRAM
u~"' o.w.
r
fnl• City Name FAONTrtilO

»ndln1,_,,_
beck to user
Aeq~,t for wHlher ~ca,t

Open Weather Map 1#1 BACICEND

Current Welther
WNtlwr fonacast
WORKI NG OF THE
APPLICATION
•The user is asked to enter the name of the city. If he doesn't
enter the city then error is displayed on the Python shell.
•If he enters the city, he is asked if he wants to view the current
weather conditions or view the weather forecast for the coming
three days.
•User then clicks on the show button which further calls the
OpenWeatherMap API and fetches the results.
•Weather conditions of place which include temperature,
humidity, pressure, wind speed, wind direction etc, are
displayed.
•Name of the city, time and date are also fetch. If user wishes to
exit, he can simply close the application or he can re-enter name
of different city and view the results.
ACTI VITY
DIAG RAM NO Olapl-,, lirro,

Select fr-om option•

NO Dlapley ~•dllctad
w••th-

CIiek Show eutton

Dlapley City nerne. Det• end Time

NO

C clCKe the eppl~IIDn


USE CASE FOR ADMINISTRATOR

Admin"1rator

«inddt»-,

-----1C\wnumSymmy~~,
""
«!~~»,
Administrator
USE CASE FOR USERS

Condldons

Administrator User
Ent er the city you want the data for!!
city:Delhi
Condition: haze
Temperature:60.89
.-
- =
n
--

SCOPE OF THE APPLICATION
• Weather forecast can be given for up to IO days.
• Predicted temperature trends for the coming days can be shown with the help
of graphs. Graphs and charts make understanding of the data even better.
• Weather application can even show hourly updates of temperature.
• User experience can be further enhanced with the use of rich icons. For eg,
sun can be used to show sunny day/ daytime, moon can show nighttime,
clouds can indicate foggy weather.
• Application can also be made to show the UV index.
• A refresh button can be there to refresh the data.

You might also like