mbrien12 / learning-2017

Place for all my tutorial and practice work, with learning resources, plan and backlog
1 stars 1 forks source link

FCC Projects - build a weather app #39

Closed mbrien12 closed 7 years ago

mbrien12 commented 7 years ago

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://.

mbrien12 commented 7 years ago

Will use https://darksky.net/dev/docs/forecast and HTML5 Geo location https://www.w3schools.com/html/html5_geolocation.asp

mbrien12 commented 7 years ago

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:

mbrien12 commented 7 years ago

Few hours on fetching location, converting to city and updating API

mbrien12 commented 7 years ago

1 hour doing images - background now switch between three different images depending on the temperature

mbrien12 commented 7 years ago

Also added dynamic icon and advice messaging

mbrien12 commented 7 years ago

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