Help with "openweathermap" node

Like this one?

Oh, sorry. It's plastic.

:wink:

1 Like

I could see an esp32 inside that with mqtt back to NR.

(just trying to keep things on topic) :rofl:

Or you could do the whole thing in one change node, including the msg.now. i.e.

[{"id":"40687e33.121cd8","type":"change","z":"8d22ae29.7df6d","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"($time := $toMillis($now());\t(((payload.sunrise * 1000) < $time) and ((payload.sunset * 1000) > $time)) ? \t'<i class=\"wi wi-darksky-cloudy\"></i>' :\t'<i class=\"wi-darksky-partly-cloudy-night\"></i>')","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":700,"y":240,"wires":[[]]}]

Thanks.

Alas I am having trouble with the "night" icons.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.