Hello,
I am currently having a lot of trouble with the local weather project. Right now, I’m trying to get my javascript to:
-
Set location (city, country) via getLocation().
-
As a part of getLocation()'s callback, retrieve JSON weather data from Open Weather Map via getWeather().
-
As a part of getWeather()'s callback, copy the JSON into a variable.
The code runs until the $.getJSON method of getWeather(), then stops. I’m unable to determine why this is the case, given that the URL is good and that it nets a callback when entered manually. I haven’t been able to get a single successful API call from Open Weather Map despite trying the crossorigin and heroku workarounds.