Skip to content

XuyangZhang0/Weather-Dashboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Weather-Dashboard

Description

This is a weather dashboard application that allows the user to get weather data by typing in the city name. The current weather and 5 day forecast will be shown on the page.

Deployed GitHub Page

Weather Dashboard

Screenshot

Screenshot

How it works

First the user will search by city name, and in the backend, there is a GeoCoding API call made to get the lat, lon of the city, and because there could be multiple cities with the name of Atlanta, I am returning top5 results, and allow the user to choose the one they wanted to see. Upon selecting the city of their choice, there is an API call made against OpenWeather, using what they called One Call API, with the current weather and next 7 day forecast, I then parse the data and render on the page.

Details

  1. To ensure the right city is selected, I made the text field dynamic by searching the matching city names
  2. The city list options get refreshed on every keystroke event after the 3rd character.
  3. Added a iOS style toggle switch to allow user to switch from Imperial unit to Metric

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages