mjsouthcott / 06-weather-dashboard

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Weather Dashboard

Description

This application displays the current weather and five-day forecast for a city specified by the user. It runs in the browser, and features dynamically updating HTML and CSS, powered by jQuery and the OpenWeather API.

This application meets all of the acceptance criteria specified by the customer:

  • The user can search for new cities using form inputs.
  • The dashboard displays current and future conditions, such as temperature, humidity, wind speed and UV index.
  • The colour of the UV index badge changes to reflect its severity.
  • The user can display conditions for previously searched cities by clicking on the city in the search history.
  • When the dashboard is launched, it displays the forecast for the last searched city.

Installation

Click on the following URL to view the application in your browser: https://mjsouthcott.github.io/06-weather-dashboard/.

Usage

  1. Start by clicking on the form input in the left aside.

Step 1

  1. Type a city name (in this case, "Vancouver"), and click the search button or press "Enter". Note that character case doesn't matter as the application will properly format city names before displaying them in the search history.

Step 1

  1. The current conditons and five-day forecast for the city will now appear. Note that the city ("Vancouver") now appears in the search history in the left aside.

Step 1

  1. As you search for new cities, they'll appear in the search history. Note that if you search for the same city more than once, the search history will not create a duplicate entry.

Step 1

  1. The search history can contain a lot of cities.

Step 1

  1. If you click on a city in the search history, it will redisplay the conditions for that city (in this case, "Ottawa").

Step 1

  1. If you refresh the page, the last searched city's conditions will appear (in this case, "Calgary").

Step 1

Credits

Matthew Southcott, Full Stack Developer, Company X

License

MIT License

Copyright (c) 2020 Matthew James Southcott

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About


Languages

Language:JavaScript 72.9%Language:HTML 15.0%Language:CSS 12.1%