Weather Prediction Aplication
Weather Prediction Aplication
• 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
• 5 day/ 3 hour forecast: This API provides the 5 day forecast
available in any city or location. 5 day forecast includes weather
data every 3 hours. Forecast is available in JSON and XML format.
• API Call
api.openweathermap.org/data/2.5/forecast?q={city
name},{country code}
api.openweathermap.org/data/2.5/forecast?id={city ID}
api.openweathermap.org/data/2.5/forecast?zip={zip
code},{country code}
ARCHITECTURE DIAGRAM
WORKING 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.
ACTIVITY
DIAGRAM
USE CASE FOR ADMINISTRATOR
USE CASE FOR USERS
PROPOSED SYSTEM
1. Starting Window displaying options to either shows current
weather or predicted weather
2. User enters the city name and clicks on show button.
3. Predicted weather forecast of the city for the next 3 days at a
given time.
SCOPE OF THE APPLICATION
● Weather forecast can be given for up to 10 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.
THE END !!!