An web application that can be used to retrieve weather data for cities all over the world. It makes use of Third-party APIs to access the data and functionality by making requests with specific parameters to a URL. This app will run in the browser with features dynamically updated HTML and CSS.
- HTML
- CSS
- JavaScript
- jQuery
- Bootstrap-4
- Font-Awesome
Landing page:
Weather-dashboard:
- User is presented with a form where cityname is searched for.
- Using the search input, the app makes a call to the OpenWeather API and loads the response for current day and also the forecast for the next 5-days.
- Following data are shown in the current-day response which is loaded dynamically
- city name
- current date
- an icon representation of weather conditions
- temperature
- humidity
- wind speed
- UV index
- UV index value is presented with a color that indicates whether the conditions are favorable(1-2: green), moderate(3-5: yellow-orange) high (6-7: red-orange), severe (7-9: red) or extreme(11+: darkpurple)
- Resources used for color representation
- Future weather conditions for the city searched is shown for 5-days
- Following data are shown in the 5-day forecast response which is loaded dynamically
- date
- an icon representation of weather conditions
- temperature
- humidity
- Searched cities are stored in local storage. Upto 10 cities are displayed in the search history and follows a LIFO ( Last in first out) rule.
- User can select/click on cities from the search history to view the weather response.
- This app will run in the browser - Chrome and Mozilla-Firefox