# Debug in gauge node red

**URL:** <https://discourse.nodered.org/t/debug-in-gauge-node-red/21242>\
**Category:** Dashboard\
**Created:** [4 February 2020 08:03 UTC](https://discourse.nodered.org/t/debug-in-gauge-node-red/21242 "2020-02-04T08:03:42Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![cherryberry](https://avatars.discourse-cdn.com/v4/letter/c/71c47a/32.png) [@cherryberry](https://discourse.nodered.org/u/cherryberry)\
**Post date:** [4 February 2020 08:03 UTC](https://discourse.nodered.org/t/debug-in-gauge-node-red/21242/1 "2020-02-04T08:03:42Z")

</div>

Hai, I have a problem with my dashboard. the gauge cannot show the data. I have used change to change the string data to number, but it's still not working.

this is the flow

 ![Screenshot_1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/4/74a4693d08bcf39bbe3a20451fa81d4f989ae9e0.png)

---

<div class="post-metadata">

**Author:** ![cherryberry](https://avatars.discourse-cdn.com/v4/letter/c/71c47a/32.png) [@cherryberry](https://discourse.nodered.org/u/cherryberry)\
**Post date:** [4 February 2020 08:05 UTC](https://discourse.nodered.org/t/debug-in-gauge-node-red/21242/2 "2020-02-04T08:05:17Z")

</div>

my dashboard

 ![Screenshot_2](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/d/0d2cf4ae06e9c4da635ca44f47e25ec1f97ed2c7.png)

---

<div class="post-metadata">

**Author:** ![afelix](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/afelix/32/9743_2.png) [@afelix](https://discourse.nodered.org/u/afelix)\
**Post date:** [4 February 2020 08:14 UTC](https://discourse.nodered.org/t/debug-in-gauge-node-red/21242/3 "2020-02-04T08:14:00Z")

</div>

How are you converting it to a number in the change node? And how is the gauge configured?

---

<div class="post-metadata">

**Author:** ![cherryberry](https://avatars.discourse-cdn.com/v4/letter/c/71c47a/32.png) [@cherryberry](https://discourse.nodered.org/u/cherryberry)\
**Post date:** [4 February 2020 08:17 UTC](https://discourse.nodered.org/t/debug-in-gauge-node-red/21242/4 "2020-02-04T08:17:08Z")

</div>

this is the change config

 ![Screenshot_3](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/8/c8cc997b2f3cb9abf67d32a3d812f46e74fff54a.png)

and the gauge config

 ![Screenshot_4](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/b/fbde78043e337242602b2fe897fd3cc7d300dbfb.png)

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [4 February 2020 09:55 UTC](https://discourse.nodered.org/t/debug-in-gauge-node-red/21242/5 "2020-02-04T09:55:04Z")

</div>

I understood the gauge node should accept a string containing a number, but I may be wrong. Feed the message you are sending to the gauge node to a debug and show us what it says.

---

<div class="post-metadata">

**Author:** ![iTzMentats](https://avatars.discourse-cdn.com/v4/letter/i/dec6dc/32.png) [@iTzMentats](https://discourse.nodered.org/u/iTzMentats)\
**Post date:** [4 February 2020 10:55 UTC](https://discourse.nodered.org/t/debug-in-gauge-node-red/21242/6 "2020-02-04T10:55:26Z")

</div>

I think you have to set {{ **msg**.payload}} instead of {{payload}} 🙂

If it doesn't work, try to link your change node to a debug node and post here the result (showing all msg object structure, not only the payload )

---

<div class="post-metadata">

**Author:** ![cherryberry](https://avatars.discourse-cdn.com/v4/letter/c/71c47a/32.png) [@cherryberry](https://discourse.nodered.org/u/cherryberry)\
**Post date:** [10 February 2020 10:08 UTC](https://discourse.nodered.org/t/debug-in-gauge-node-red/21242/7 "2020-02-10T10:08:19Z")

</div>

Thank u, it is working! Thank you guys for giving me the answers

---

<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:** [24 February 2020 10:08 UTC](https://discourse.nodered.org/t/debug-in-gauge-node-red/21242/8 "2020-02-24T10:08:20Z")

</div>

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