# Help with "openweathermap" node

**URL:** https://discourse.nodered.org/t/help-with-openweathermap-node/35042
**Category:** General
**Created:** [29 October 2020 21:08 UTC](https://discourse.nodered.org/t/help-with-openweathermap-node/35042 "2020-10-29T21:08:17Z")
**Posts on this page:** 5
**Page:** 2

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [30 October 2020 07:56 UTC](https://discourse.nodered.org/t/help-with-openweathermap-node/35042/22 "2020-10-30T07:56:36Z")

</div>

Like this one?

 ![20201013_075545](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/b/0b5b5149bb5459a70d62ee987eb248863b6a740d.jpeg)

Oh, sorry. It's plastic.

😉

---

<div class="post-metadata">

### Author: ![Bobo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bobo/32/8401_2.png) [@Bobo](https://discourse.nodered.org/u/Bobo)
#### Post date: [30 October 2020 07:58 UTC](https://discourse.nodered.org/t/help-with-openweathermap-node/35042/23 "2020-10-30T07:58:39Z")

</div>

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

(just trying to keep things on topic) 🤣

---

<div class="post-metadata">

### Author: ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)
#### Post date: [30 October 2020 09:05 UTC](https://discourse.nodered.org/t/help-with-openweathermap-node/35042/24 "2020-10-30T09:05:58Z")

</div>

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

```auto
[{"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":[[]]}]

```

---

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [30 October 2020 09:08 UTC](https://discourse.nodered.org/t/help-with-openweathermap-node/35042/25 "2020-10-30T09:08:39Z")

</div>

Thanks.

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

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [29 December 2020 09:08 UTC](https://discourse.nodered.org/t/help-with-openweathermap-node/35042/26 "2020-12-29T09:08:39Z")

</div>

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

[Previous page](https://discourse.nodered.org/t/help-with-openweathermap-node/35042.md?page=1)
