I’ve knocked together a first draft on the Weather project, to get the api part working. I had it working earlier, when I had function getWeather() set to retrieve data on a button click.
Now I have gotten rid of the button click, because I want the data retrieved on document.ready. But the function getWeather() is not working anymore. It’s as if the global variables aren’t global anymore.
I would appreciate a fresh set of eyes looking at this, to see what I’ve done wrong.