Closed mdewey closed 5 years ago
Able to get weather data by zipcode and by city but only in the US.
Was able to get local storage to store the zipcode when user inputs in the search field. Found the geolocation api but haven't been able to get the location to automatically populate.
got a local storage object to be returned on page load but it is still one that i used in the input value previously. the on page load continues to return the same zipcode that I used before to search. Kinda mixed up about the logic of the local storage - do I need to set the local storage in the search button click functions? Geolocation doesn't seem to be working correctly.
Saw in the console that I got the current location to be returned in an object on page load but not sure how to extract that aside from using lat and long values.
Your homework was marked: Meets Expectations
“With LASERS” — via Jason L Perry
Cloudy with a chance of Syntax Error
Using a popular weather API, Create a web site that allows a user to search for a location and gets that location's weather.
Objectives
Requirements
openweathermap.org
, create a simple UI that allows a user to search for the current weather by zip code or city.SIGN UP!
openweathermap.org
and signup for an accountAPI Keys
in your dashboardappid=KEY
https://api.openweathermap.org/data/2.5/weather?q=Tampa
becomeshttps://api.openweathermap.org/data/2.5/weather?q=Tampa&appid=cbb5b6537cd4a6eccd9aee04ffffffff
Explorer Mode
button
openweathermap.org
, get the current weather for that location.Adventure Mode
Epic Mode
Slides:
https://slides.com/markdewey-1/promises-apis-fetch-json