Weather API Issue

Weather API Issue
0

#1

Hello

I’m not retrieving any data from my weather api. Can anyone see what I’m doing wrong?

http://codepen.io/jameswinfield/pen/WxQQGj

My suspicion is that it is around this - var getWeatherData = “http://api.openweathermap.org/data/2.5/weather?lat=” + lat + “&lon=” + lon;

Thanks
James


#2

If you are on Chrome press F12 and you’ll see all errors in the console.


#3

It doesn’t work without an API-key. You have to sign up and get one from them.