xxxxxxxxxx
19
function setup() {
createCanvas(400, 400);
let url = 'https://dataservice.accuweather.com/forecasts/v1/hourly/1hour/249209?language=nl-nl&details=false&metric=true&apikey=dSOITZZpdU24COK3qLHJ4UnURRvAgFmg';
fetch(url)
.then((response) => {
let json = response.json();
console.log(JSON.stringify(json));
})
.catch((error) => {
console.error(error);
});
}
function draw() {
background(220);
}