# Msg.payload Tinkerforge Dashboard

**URL:** <https://discourse.nodered.org/t/msg-payload-tinkerforge-dashboard/15959>\
**Category:** Dashboard\
**Created:** [26 September 2019 16:59 UTC](https://discourse.nodered.org/t/msg-payload-tinkerforge-dashboard/15959 "2019-09-26T16:59:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Manu](https://avatars.discourse-cdn.com/v4/letter/m/7c8e57/32.png) [@Manu](https://discourse.nodered.org/u/Manu)\
**Post date:** [26 September 2019 16:59 UTC](https://discourse.nodered.org/t/msg-payload-tinkerforge-dashboard/15959/1 "2019-09-26T16:59:54Z")

</div>

Hello everybody,  
i am new here and a total beginner and not so good in English. I have a Tinkerforge HAT-Zero. And can, for example, receive the voltage as an answer about MQTT.

My answer comes as "msg.payload" (Object) so on.

 ![Screenshot%20from%202019-09-26%2018-43-32](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/7/7dbbe07ff4b1f0fc27da6b4d2cde8cff47e48595.png)

 ![Screenshot%20from%202019-09-26%2018-51-28](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/a/aaf2d2e37f06b60c728c767c52377502fef34cb5.png)

I would like to have these displayed on the dashboard via text or gauge. For that I only need the value in msg.payload. How can i do it?

I can not find anything at google. I've been studying the documentation for days - it does not really help me either.

Please help me...

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [26 September 2019 17:07 UTC](https://discourse.nodered.org/t/msg-payload-tinkerforge-dashboard/15959/2 "2019-09-26T17:07:32Z")

</div>

You need to convert the `msg.payload` string to an object

Use the `JSON` node

Then move the data to `msg.payload` using a `CHANGE` node

````auto
[{"id":"c154269.edb92d8","type":"inject","z":"8b2ca025.238bc","name":"","topic":"","payload":"{\"voltage\":5360}","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":143.5,"y":119,"wires":[["45b0fc42.726164","c4d39c9a.ad81b8"]]},{"id":"45b0fc42.726164","type":"json","z":"8b2ca025.238bc","name":"","property":"payload","action":"","pretty":false,"x":322.5,"y":158,"wires":[["33b0acc9.2dc8bc","8784797e.f92868"]]},{"id":"819816e2.a86c98","type":"debug","z":"8b2ca025.238bc","name":"OUTPUT","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":516.5,"y":361,"wires":[]},{"id":"c4d39c9a.ad81b8","type":"debug","z":"8b2ca025.238bc","name":"INPUT","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":317.5,"y":43,"wires":[]},{"id":"33b0acc9.2dc8bc","type":"change","z":"8b2ca025.238bc","name":"","rules":[{"t":"move","p":"payload.voltage","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":517.5,"y":202,"wires":[["819816e2.a86c98"]]},{"id":"8784797e.f92868","type":"debug","z":"8b2ca025.238bc","name":"Converted to Javascript Object","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":561.5,"y":99,"wires":[]},{"id":"12e8b130.577bdf","type":"comment","z":"8b2ca025.238bc","name":"The input is a string so you need to convert it to a javascript object","info":"The input is a string so you need to convert it to a javascript object","x":256.5,"y":243,"wires":[]},{"id":"178125f6.9c0b2a","type":"comment","z":"8b2ca025.238bc","name":"Then use a change node to move it to msg.payload","info":"","x":227.5,"y":299,"wires":[]}]```
````

---

<div class="post-metadata">

**Author:** ![Manu](https://avatars.discourse-cdn.com/v4/letter/m/7c8e57/32.png) [@Manu](https://discourse.nodered.org/u/Manu)\
**Post date:** [26 September 2019 17:39 UTC](https://discourse.nodered.org/t/msg-payload-tinkerforge-dashboard/15959/3 "2019-09-26T17:39:26Z")

</div>

Thank you, that's what I was looking for. Has worked for me.
