Dynamic gauge dashboard 2 property

hello,
I'm stuck on a small code problem that I can't transform into dachboard 2.
below code which works for "gauge" dashboard 1 and which does not work in dachboard 2.

Is there a manual for dynamic properties per dashboard 2 node?

could you help me?
Thank you in advance and have a nice day.

Dashboard v1

var data = 20;
var max = 20 + (20/4);
msg.ui_control = { "min": 0, "max": max };

Dashboard v2

var data = 20;
var max = 20 + (20/4);

msg = {
    "ui_control": {
        "min": 0,
        "max": max
    },
    "ui_update": {
        "label": "New Label"
    }
};

At the moment no. You can see here: Gauge ui-gauge | Node-RED Dashboard 2.0 - The table will have ticks against in the dynamic column when supported.

NOTE: this is something we will support. Work is ongoing and you can see the status here: Modify/Update UI-widget parameters from external · Issue #833 · FlowFuse/node-red-dashboard · GitHub

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