Venomen / weather-dashboard

A weather dashboard that allows the user to search for a city and obtain the current weather conditions and five day forecast. Uses JavaScript, JQuery, Bootstrap and a third-party API.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Weather Dashboard (Server-Side APIs)

MIT License

Table of Contents

Description
Key Features
Usage
Links
Screenshots
Contributing
Questions
License

Description

A weather dashboard that allows the user to get a city's current weather conditions and the five day forecast. Third-party APIs are used to access weather data by making requests with specific parameters to a URL. This was a homework assignment for the University of Toronto SCS Coding Boot Camp and no starter code was provided.

Key Features

  • Two different OpenWeather APIs are used to retrieved the required weather data
  • localStorage is used to save seach history and if any past search history is in local storage it is displayed when the site first loads
  • User can either enter a city to search for or click on a button for a previously searched city to get the current weather and five day forecast
  • jQuery event listeners are used to identify when a user wishes to search for a city (including past city) or clear search history
  • New elements were created using jQuery or vanilla Javascript
  • Bootstrap was used for styling and creation of new components (e.g. cards for each day of the five day forecast)
  • The Bootstrap grid was used to establish containers, rows and columns
  • Clean simple UI with graphical representation of weather
  • Moment.js is used to convert unix timestamp to MM/DD/YYYY format
  • Background color of UV index will adjust based on World Health Organization color scale

Usage

Enter the name of the city or city name, state code and country code you wish to search for in the search input field. Please note that searching by states is available only for the USA locations. You can click on cities in the history section to obtain their weather data again. You can also clear the search history by clicking the 'Clear History' button. For country codes visit: https://www.iso.org/obp/ui/#iso:pub:PUB500001:en.

Links

Deployed application: https://darylnauman.github.io/weather-dashboard/

Screenshots

The following image shows a snapshot of the application:

Screenshot of a website with a city's current weather conditions and the five day forecast.

Contributing

Please contact me if you wish to contribute to this application.

Questions

Please contact me, I'm happy to answer any questions.

License

This product is under the MIT License.

About

A weather dashboard that allows the user to search for a city and obtain the current weather conditions and five day forecast. Uses JavaScript, JQuery, Bootstrap and a third-party API.

License:MIT License


Languages

Language:JavaScript 81.2%Language:HTML 18.5%Language:CSS 0.3%