# How to tweak the sensitivity/delay of gauges

**URL:** <https://discourse.nodered.org/t/how-to-tweak-the-sensitivity-delay-of-gauges/55346>\
**Category:** Dashboard\
**Created:** [17 December 2021 15:23 UTC](https://discourse.nodered.org/t/how-to-tweak-the-sensitivity-delay-of-gauges/55346 "2021-12-17T15:23:59Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![attoampere](https://avatars.discourse-cdn.com/v4/letter/a/59ef9b/32.png) [@attoampere](https://discourse.nodered.org/u/attoampere)\
**Post date:** [17 December 2021 15:23 UTC](https://discourse.nodered.org/t/how-to-tweak-the-sensitivity-delay-of-gauges/55346/1 "2021-12-17T15:23:59Z")

</div>

Hi there,

being a total newbie to node-red I wanted to test-drive hotNipis awesome gauges.  
Thereby I discovered that even the standard dashboard gauges are super unresponsive to large input changes via the slider.  
How can one make them fast acting like real VU meters e.g.?

[![](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/9/c9455f751a403ef1a7957b4b8f683bf4e6d1ac21.jpeg "VU9 analog VU level meter DB meter with ACG/DB mode + audio switcher") ](https://www.youtube.com/watch?v=HhVOAhE6hvw)

no fancy analog needle simulation needed (at first) just some useful real time response like here:

[![](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/b/2ba781e9dbc262bfe5601a02d0d2b7b86cb81386.jpeg "Digital VU Meter: Part 1, Simulating Analog Mechanical Physics") ](https://www.youtube.com/watch?v=lC02OZV6hfQ)

Thanks in advance

P.S. my goal would be to simulate a double scale, single needle caisson gauge like this here:

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

---

<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:** [17 December 2021 15:39 UTC](https://discourse.nodered.org/t/how-to-tweak-the-sensitivity-delay-of-gauges/55346/2 "2021-12-17T15:39:34Z")

</div>

Are you sure it is not the slider output that is unresponsive? Add a debug node to find out.

---

<div class="post-metadata">

**Author:** ![attoampere](https://avatars.discourse-cdn.com/v4/letter/a/59ef9b/32.png) [@attoampere](https://discourse.nodered.org/u/attoampere)\
**Post date:** [17 December 2021 15:53 UTC](https://discourse.nodered.org/t/how-to-tweak-the-sensitivity-delay-of-gauges/55346/3 "2021-12-17T15:53:52Z")

</div>

it has nothing to do with the slider. you can hand it a value of 100 and watch yourself how slowly it's adjusting to the value. so one clearly has to tweak something in the source of the dashboard gauge.  
and i have zero clue about node-red, let alone it's package management yet.  
so every hint is highly welcome and appreciated!

---

<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:** [17 December 2021 16:13 UTC](https://discourse.nodered.org/t/how-to-tweak-the-sensitivity-delay-of-gauges/55346/4 "2021-12-17T16:13:06Z")

</div>

It takes about 1 second to get from end to end on my system. Is that what you class as slow?

---

<div class="post-metadata">

**Author:** ![attoampere](https://avatars.discourse-cdn.com/v4/letter/a/59ef9b/32.png) [@attoampere](https://discourse.nodered.org/u/attoampere)\
**Post date:** [17 December 2021 16:23 UTC](https://discourse.nodered.org/t/how-to-tweak-the-sensitivity-delay-of-gauges/55346/5 "2021-12-17T16:23:59Z")

</div>

yeah 1 sec is useless, thanks for having quantified it Colin. any idea where to tweak the code to make it work in an instant?

---

<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:** [17 December 2021 16:50 UTC](https://discourse.nodered.org/t/how-to-tweak-the-sensitivity-delay-of-gauges/55346/6 "2021-12-17T16:50:15Z")

</div>

> [@attoampere](#):
>
> any idea where to tweak the code

It will be under `.node-red/node_modules/node-red-dashboard` somewhere. Someone who knows the code may chip in.

---

<div class="post-metadata">

**Author:** ![attoampere](https://avatars.discourse-cdn.com/v4/letter/a/59ef9b/32.png) [@attoampere](https://discourse.nodered.org/u/attoampere)\
**Post date:** [17 December 2021 20:43 UTC](https://discourse.nodered.org/t/how-to-tweak-the-sensitivity-delay-of-gauges/55346/7 "2021-12-17T20:43:30Z")

</div>

> <https://github.com/node-red/node-red-dashboard/blob/master/nodes/ui_gauge.html>

> <https://github.com/node-red/node-red-dashboard/blob/master/nodes/ui_gauge.js>

couldn't find a thing pointing to that in the code ☹

---

<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:** [17 December 2021 21:03 UTC](https://discourse.nodered.org/t/how-to-tweak-the-sensitivity-delay-of-gauges/55346/8 "2021-12-17T21:03:18Z")

</div>

> <https://github.com/node-red/node-red-dashboard/blob/master/src/components/ui-gauge/liquidFillGauge.js>

> **[node-red-dashboard/src/components/ui-gauge at master ·...](https://github.com/node-red/node-red-dashboard/tree/master/src/components/ui-gauge)**
>
> master/src/components/ui-gauge

---

<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:** [17 December 2021 21:38 UTC](https://discourse.nodered.org/t/how-to-tweak-the-sensitivity-delay-of-gauges/55346/9 "2021-12-17T21:38:11Z")

</div>

> [@attoampere](#):
>
> test-drive hotNipis awesome gauges

Are you talking about those? [First september give-away (let's create one gauge)](https://discourse.nodered.org/t/first-september-give-away-lets-create-one-gauge/50507)

---

<div class="post-metadata">

**Author:** ![attoampere](https://avatars.discourse-cdn.com/v4/letter/a/59ef9b/32.png) [@attoampere](https://discourse.nodered.org/u/attoampere)\
**Post date:** [17 December 2021 21:40 UTC](https://discourse.nodered.org/t/how-to-tweak-the-sensitivity-delay-of-gauges/55346/10 "2021-12-17T21:40:59Z")

</div>

first of all let me thank you E1cid for having pointed me to the correct file.  
but now i see that node-red becomes messy, that i had to dig all of a sudden into all these layers(angularjs' Dependency Injection Containers) and node-reds package management just for having one single attribute changed. (waveRiseTime) ☹

---

<div class="post-metadata">

**Author:** ![attoampere](https://avatars.discourse-cdn.com/v4/letter/a/59ef9b/32.png) [@attoampere](https://discourse.nodered.org/u/attoampere)\
**Post date:** [17 December 2021 21:58 UTC](https://discourse.nodered.org/t/how-to-tweak-the-sensitivity-delay-of-gauges/55346/11 "2021-12-17T21:58:17Z")

</div>

oh the master himself. let me thank you for this splendid contribution first of all!!! yes i was talking about your awesome gauges hotNipi. they are the main reason for me to look into node-red. i hope that i'll be able to recreate the gauge with time. although i would prefer hiring you for some hours if that was possible as the gauge would require 3 differently sized ticks and so on. and i am quite certain that one would want to look at the result if you did it compared to some total noob.

---

<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:** [17 December 2021 22:10 UTC](https://discourse.nodered.org/t/how-to-tweak-the-sensitivity-delay-of-gauges/55346/12 "2021-12-17T22:10:23Z")

</div>

Well, it is about midnight for today, near to Christmas for next week and near to big celebration of year to change in near future, I just moved to new house (not all stuff brought over jet), my dear Mrs called her sister with kids and cats to be our guests for next two weeks and new sauna stove promised to be delivered tomorrow morning.  
So I have plenty of time 😃

But for responsiveness of the gauge ..  
find form the styles `.g-needle`  
the speed of the animation is declared by `transition: transform .1s;` means 1 second. Feel free to change it as you need.  
If you are targeting it to behave as VU meter, it will be complicated cos in real life those react differently on rising and falling incoming values. Can't be done with CSS (at least I don't know how)

---

<div class="post-metadata">

**Author:** ![attoampere](https://avatars.discourse-cdn.com/v4/letter/a/59ef9b/32.png) [@attoampere](https://discourse.nodered.org/u/attoampere)\
**Post date:** [17 December 2021 22:23 UTC](https://discourse.nodered.org/t/how-to-tweak-the-sensitivity-delay-of-gauges/55346/13 "2021-12-17T22:23:58Z")

</div>

😄  
thanks a lot for having pointed me to transition: transform line. i've changed it to a 20th of a second. it works beautifully!  
and no i am not trying to make it behave as a VU meter. i am just targeting this caisson gauge.

---

<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:** [17 December 2021 22:28 UTC](https://discourse.nodered.org/t/how-to-tweak-the-sensitivity-delay-of-gauges/55346/14 "2021-12-17T22:28:01Z")

</div>

Just do experiments and ask specific questions if something does not go in the way you need it to go. I have limited computer time but there is for sure smarter guys than me so you'll get help anyway.

---

<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:** [16 January 2022 22:28 UTC](https://discourse.nodered.org/t/how-to-tweak-the-sensitivity-delay-of-gauges/55346/15 "2022-01-16T22:28:30Z")

</div>

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