Professional Documents
Culture Documents
Weather Prediction App
Weather Prediction App
Weather Prediction App
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.
• Farmers need information to help them plan for the plan for the
schedule flights.
* *
• 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.
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
• 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
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,
NO Dlapley ~•dllctad
w••th-
NO
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.