https://github.com/wonjong2/week6_weather_dashboard
This Web site provides current weather and 5 days forecast for the city that a user searches or selects.
https://github.com/wonjong2/week6_weather_dashboard
bootstrap css html javascript localstorage momentjs rest-api weather-api
Last synced: 27 days ago
JSON representation
This Web site provides current weather and 5 days forecast for the city that a user searches or selects.
- Host: GitHub
- URL: https://github.com/wonjong2/week6_weather_dashboard
- Owner: wonjong2
- Created: 2022-03-24T22:16:13.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-17T01:02:48.000Z (about 4 years ago)
- Last Synced: 2025-02-26T17:36:13.439Z (over 1 year ago)
- Topics: bootstrap, css, html, javascript, localstorage, momentjs, rest-api, weather-api
- Language: JavaScript
- Homepage:
- Size: 406 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Week6_Weather_Dashboard
## Description
This Web site provides current weather and 5 days forecast for the city that a user searches/selects.
- Use Bootstrap for UI configuration
- Use JavaScript to add functionallities and handle elements
- Use Moment.js to get the date information
- Use localStorage to keep search history
- Use fetch() to fetch data from the server
- Use the Geocoding API (https://openweathermap.org/api/geocoding-api) to get lat and lon information that matches to the city name a user searches or selects
- Use the One Call API (https://openweathermap.org/api/one-call-api) to retrieve weather data
- Use the URL (http://openweathermap.org/img/wn/{icon}@2x.png) to get weather icon image file (Refer to https://openweathermap.org/weather-conditions#How-to-get-icon-URL)
## Web Site's URL
- Weather Dashboard :
https://wonjong2.github.io/Week6_Weather_Dashboard/
## Git Hub URL for this Web Site
- wonjong2/Week5_Work_Day_Scheduler : https://github.com/wonjong2/Week6_Weather_Dashboard
## Usage
- When a user opens this web site, it shows the first screen including the search form for city and empty weather blocks
- When a user clicks 'Search' button with a city name in input field, it starts retriving the weather data for that city
- A searched city name is added to the search history
- The search history will be maintained even though the browser refreshes/restarts
- It shows current weather and 5 days forecast
- Current Weather includes :
* Date : Month/Day/Year
* Weather Icon, Temp(°F), Wind(MPH), Humidity(%)
* And UV Index with matched color (Refer to https://www.who.int/uv/publications/en/UVIGuide.pdf)
- Green : No Protection Required
- Yellow and Orange : Protection Required
- Red and Violet : Extra Proection Required
- 5 Days forecast includes
* Date : Month/Day/Year
* Weather Icon, Temp(°F), Wind(MPH), Humidity(%)
- When a user clicks one of the cities in the search history, it shows current weather and 5 days forecast for that city
- __Simple Demo__ : https://watch.screencastify.com/v/q8SSCtv0sS3xjGt8idvM
Please see the screenshots on this Website.
- First Screen

- Search Result with valid city name

- Search Result with invalid city name

- Select the city in the search hitory

## License
MIT License
Copyright (c) [2022] [Wonjong Park]
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.