Hi.
I am running your canvass gauges in Node-Red dashboard in a template node. The gauges display 100% but I am unable to get the animation/needle to work.
Can you kindly help me with an example code on how to get the msg.payload to animate the gauge needle and/or set a variable that can do that.
The following is the HTML code in the example. I need to modify this to work with msg.payload.
var timers = ;
function animateGauges() {
document.gauges.forEach(function(gauge) {
timers.push(setInterval(function() {
gauge.value = Math.random() *
(gauge.options.maxValue - gauge.options.minValue) +
gauge.options.minValue;
}, gauge.animation.duration + 50));
});
}