Hourly rain forecast

To use that card’s output, you still have to declare the return value.
(console.log is only for testing)
Like shown in the demo code when you instert the card as new card.

BUT, your code does not return solely a number, but a string.
So, you should use the “Run code and return text-tag” card instead.

The return value should be something like

return (`Location: ${liveweer.plaats}, Temperature: ${liveweer.temp}°C, Summary: ${liveweer.samenv}`);

But, probably your JSON paths aren’t correct yet, see my post quoting Robert’s post from 2019

1 Like