Closed mbrien12 closed 7 years ago
Will use https://darksky.net/dev/docs/forecast and HTML5 Geo location https://www.w3schools.com/html/html5_geolocation.asp
6 hours yesterday - main skeleton set up, geolocation working in console and static location working. Also converts to Celsius and can switch to Fahrenheit, but not back :( ....YET
Need to:
Few hours on fetching location, converting to city and updating API
1 hour doing images - background now switch between three different images depending on the temperature
Also added dynamic icon and advice messaging
Fixed toggling - with help from this http://stackoverflow.com/questions/36370772/how-can-i-use-toggleclass-to-switch-between-fahrenheit-and-celsius-on-my-p
Use any library or API. Give it own personal style.
Acceptance Criteria
NOTE Many internet browsers now require an HTTP Secure (https://) connection to obtain a user's locale via HTML5 Geolocation. For this reason, you will need to choose one of two paths to complete this project:
Use HTML5 Geolocation to get user location and then use the Dark Sky API which uses an HTTP Secure connection for the weather. Also, be sure to connect to CodePen.io via https://.
Or:
Use an Internet Protocol API to get user location (ex. IP-API) and then use the OpenWeatherMap API for the weather. Be sure to connect to CodePen.io via http://.