Hi
I’m stuck on the Local Weather App and I can’t see what I’m doing incorrectly. Currently all I’m trying to do is test the getJSON request but the console message I’m receiving is 404 Not Found. I’ve copied the url from the Open Weather Website, created and inserted my ID but it just won’t work. Here is my code, hopefully someone can help:
$(document).ready(function() {
$("#h1").click(function(){
$.getJSON("api.openweathermap.org/data/2.5/weather?q=London,uk&APPID={my ID}", function(data){
console.log(data);
});
});
});
Many Thanks