Weather API Issue

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

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

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