I'm just taking my first steps with Dashboard 2.0.
I have a question about the gauge.
How can I transfer the label from msg.topic? {{mag.topic}} does not work for me.
How else can I proceed?
I'm just taking my first steps with Dashboard 2.0.
I have a question about the gauge.
How can I transfer the label from msg.topic? {{mag.topic}} does not work for me.
How else can I proceed?
You have to pass in the value as ui_update.label (eg:ui_update.label=msg.topic and then send that into the gauge node)
The gauge widget was modified in dashboard v1.25.0 so that you can format the gauge value using Jsonata, eg $round(payload, 1)
Unfortunately the same change was not applied to the label field. If it had been, you could have set the label using
And the gauge might display something like this, without a preceding change node.
Yes, it would be good to extend the JSONata option to other properties.
But I can also live with the dynamic properties.