# Gauge wont update

**URL:** <https://discourse.nodered.org/t/gauge-wont-update/63350>\
**Category:** Dashboard\
**Created:** [1 June 2022 10:01 UTC](https://discourse.nodered.org/t/gauge-wont-update/63350 "2022-06-01T10:01:16Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nice\_to\_have](https://avatars.discourse-cdn.com/v4/letter/n/edb3f5/32.png) [@Nice\_to\_have](https://discourse.nodered.org/u/Nice_to_have)\
**Post date:** [1 June 2022 10:01 UTC](https://discourse.nodered.org/t/gauge-wont-update/63350/1 "2022-06-01T10:01:16Z")

</div>

Hi everyone,

I have a compass gauge on my dashboard which wont update when a new value arrives.  
The gauge only changes after FULL deploy. It doesn't respond to any value after that.  
The gauge label does update.  
A text node on the same dashboard gets the same value and that does update.

I have replaced the gauge with another one, thinking the gauge might be corrupt, but that only worked a couple of times and then the same.  
Changing the gauge from compass to gauge, donut or level doesn't matter either.  
Rebooting the RPI didn't help either.

I'm kinda lost on what to do next.  
Anyone got any ideas?

---

<div class="post-metadata">

**Author:** ![hotNipi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hotnipi/32/383_2.png) [@hotNipi](https://discourse.nodered.org/u/hotNipi)\
**Post date:** [1 June 2022 10:12 UTC](https://discourse.nodered.org/t/gauge-wont-update/63350/2 "2022-06-01T10:12:11Z")

</div>

The investigation starts with knowledge about the versions of the related parts. (Nodejs, Node-Red, Dashboard.)  
It also takes to see what is the payload you are sending to the gauge.

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [1 June 2022 10:15 UTC](https://discourse.nodered.org/t/gauge-wont-update/63350/3 "2022-06-01T10:15:07Z")

</div>

A snapshot of your flow would be useful too.

---

<div class="post-metadata">

**Author:** ![Nice\_to\_have](https://avatars.discourse-cdn.com/v4/letter/n/edb3f5/32.png) [@Nice\_to\_have](https://discourse.nodered.org/u/Nice_to_have)\
**Post date:** [1 June 2022 10:18 UTC](https://discourse.nodered.org/t/gauge-wont-update/63350/4 "2022-06-01T10:18:01Z")

</div>

Node red V2.2.2  
Nodejs V16.15.0

The gauge gets a number  
in the gauge I use the toFixed(1). But without that it also does not update

---

<div class="post-metadata">

**Author:** ![Nice\_to\_have](https://avatars.discourse-cdn.com/v4/letter/n/edb3f5/32.png) [@Nice\_to\_have](https://discourse.nodered.org/u/Nice_to_have)\
**Post date:** [1 June 2022 10:24 UTC](https://discourse.nodered.org/t/gauge-wont-update/63350/5 "2022-06-01T10:24:16Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/c/fc0ef7d4fcade5a504db25049fec040435239ceb.png)  
Inject node send an object, function node calculates distances and creats new msg for gauge bearingToWaypoint

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/7/d7c12bc59fae0c0d06dda366e3de963b98c77822.png)

I delete everything from the object in the function node and only output results

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [1 June 2022 10:37 UTC](https://discourse.nodered.org/t/gauge-wont-update/63350/6 "2022-06-01T10:37:24Z")

</div>

From the ui-qauge `Help` tab:

> gauge

Adds a gauge type widget to the user interface.

The `msg.payload` is searched for a numeric _value_ and is formatted in accordance with the defined **Value Format** , which can then be formatted using [Angular filters](https://scotch.io/tutorials/all-about-the-built-in-angularjs-filters).

For example : `{{value | number:1}}%` will round the value to one decimal place and append a % sign.

---

<div class="post-metadata">

**Author:** ![Nice\_to\_have](https://avatars.discourse-cdn.com/v4/letter/n/edb3f5/32.png) [@Nice\_to\_have](https://discourse.nodered.org/u/Nice_to_have)\
**Post date:** [1 June 2022 10:40 UTC](https://discourse.nodered.org/t/gauge-wont-update/63350/7 "2022-06-01T10:40:59Z")

</div>

> [@zenofmud](#):
>
> | number:1}}%

That solved it.  
Thank 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:** [15 June 2022 10:41 UTC](https://discourse.nodered.org/t/gauge-wont-update/63350/8 "2022-06-15T10:41:09Z")

</div>

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