# How to handle data from dwd weather node

**URL:** <https://discourse.nodered.org/t/how-to-handle-data-from-dwd-weather-node/22649>\
**Category:** General\
**Created:** [5 March 2020 08:17 UTC](https://discourse.nodered.org/t/how-to-handle-data-from-dwd-weather-node/22649 "2020-03-05T08:17:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thomas6789](https://avatars.discourse-cdn.com/v4/letter/t/b77776/32.png) [@Thomas6789](https://discourse.nodered.org/u/Thomas6789)\
**Post date:** [5 March 2020 08:17 UTC](https://discourse.nodered.org/t/how-to-handle-data-from-dwd-weather-node/22649/1 "2020-03-05T08:17:46Z")

</div>

Hi, I'm new here and it's my first experience with Node-Red.

What I'd like to do is to show the current temperature or windspeed data of the DWD weather node ([https://flows.nodered.org/node/node-red-contrib-dwd-local-weather](https://flows.nodered.org/node/node-red-contrib-dwd-local-weather)) at the red node dashboard. The weather node is already configured if i select the debug button I can see an object which shows the temperature, windspeed etc. of the configured weather station. But how can I further process these data?

 ![weather_node](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/3/b3664b0400e76c81dc4fb1bf18a00ecbf9a7ddcd.jpeg)

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [5 March 2020 08:19 UTC](https://discourse.nodered.org/t/how-to-handle-data-from-dwd-weather-node/22649/2 "2020-03-05T08:19:15Z")

</div>

Please go through the documentation  
[https://nodered.org/docs/user-guide/messages](https://nodered.org/docs/user-guide/messages)

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [5 March 2020 08:38 UTC](https://discourse.nodered.org/t/how-to-handle-data-from-dwd-weather-node/22649/3 "2020-03-05T08:38:52Z")

</div>

It looks like you have a very simple JavaScript object coming out of the weather node.  
To extract a particular value you should be able to use the "dot" notation (in a function node) as the example below.

For example, to get the temperature - which is named 'tempc' put this code in a function node.

```auto
msg.payload = msg.payload.tempc;
return msg;

```

Then you can process the resulting value in whatever way you want.

Hope that works for you.

---

<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:** [4 May 2020 08:52 UTC](https://discourse.nodered.org/t/how-to-handle-data-from-dwd-weather-node/22649/4 "2020-05-04T08:52:42Z")

</div>

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