Wave not disply correctly

Hi, my {{unit}} variable doesnt work for wave,

I was trying to set the gauge value by pass the msg.unit to my node

and it works for gauge, donut and compass

only doesnt work for wave type of gauge

setting
ui

It look like a cache problem.
Doees clearing your browser cache resolve it?

nope, after clear my browser cache, the problem still persists

What version of node-red-dashboard are you using?

Add a debug node set to output the complete message and show us what is there.

Ok. After I changed the field from {{something else}} to {{units}} the Level gauge didn't change as readily as the standard one, but reloading with ctrl F5 fixed it for me.

Something odd seems to be going on.

On intial startup, if a message containing msg.units has not been sent then {{units}} is displayed. Then when a message containing msg.units is sent it needs a page refresh to update it. Similarly if the units text is dynamically changed then it takes a refresh for it to appear.
Also it does seem possible to get into a mode, after sending a message with no msg.units to get it stuck in a mode where the units keeps just displaying as {{units}}.

the dashboard version is 3.1.7

and below is the complete output message:

{"payload":null,
"socketid":"Z8jyIBRc9qb5ag2OAAIm",
"socketip":"192.168.8.24",
"_msgid":"b398f8a38a01d793",
"unit":"unit4",
"ui_control":{
"min":0,
"max":100,
"gtype":"wave"
},
"topic":"gauge4"}

the weird thing is, I changed the variable from {{unit}} to {{units}}

and it works, below is the flow:

[
    {
        "id": "9cf6c90f9c70163d",
        "type": "inject",
        "z": "e418283ccb0b6a1e",
        "name": "",
        "props": [
            {
                "p": "unit",
                "v": "test",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": true,
        "onceDelay": 0.1,
        "topic": "",
        "x": 539.9999771118164,
        "y": 1807.7777004241943,
        "wires": [
            [
                "c68e5033c631254f"
            ]
        ]
    },
    {
        "id": "c68e5033c631254f",
        "type": "ui_gauge",
        "z": "e418283ccb0b6a1e",
        "name": "",
        "group": "e3299fb737f29dc9",
        "order": 5,
        "width": 0,
        "height": 0,
        "gtype": "wave",
        "title": "gauge",
        "label": "{{unit}}",
        "format": "{{value}}",
        "min": 0,
        "max": 10,
        "colors": [
            "#00b500",
            "#e6e600",
            "#ca3838"
        ],
        "seg1": "",
        "seg2": "",
        "className": "",
        "x": 679.9999771118164,
        "y": 1807.7777004241943,
        "wires": []
    },
    {
        "id": "0379de7260d74035",
        "type": "inject",
        "z": "e418283ccb0b6a1e",
        "name": "",
        "props": [
            {
                "p": "units",
                "v": "test",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": true,
        "onceDelay": 0.1,
        "topic": "",
        "x": 530,
        "y": 1860,
        "wires": [
            [
                "83a84169f4f94a5f"
            ]
        ]
    },
    {
        "id": "83a84169f4f94a5f",
        "type": "ui_gauge",
        "z": "e418283ccb0b6a1e",
        "name": "",
        "group": "e3299fb737f29dc9",
        "order": 5,
        "width": 0,
        "height": 0,
        "gtype": "wave",
        "title": "gauge",
        "label": "{{units}}",
        "format": "{{value}}",
        "min": 0,
        "max": 10,
        "colors": [
            "#00b500",
            "#e6e600",
            "#ca3838"
        ],
        "seg1": "",
        "seg2": "",
        "className": "",
        "x": 670,
        "y": 1860,
        "wires": []
    },
    {
        "id": "e3299fb737f29dc9",
        "type": "ui_group",
        "name": "Gauge",
        "tab": "8f03e639.85956",
        "order": 2,
        "disp": true,
        "width": "6",
        "collapse": false,
        "className": ""
    },
    {
        "id": "8f03e639.85956",
        "type": "ui_tab",
        "name": "Home",
        "icon": "dashboard",
        "disabled": false,
        "hidden": false
    }
]

I suspect that if you change it back and refresh the page it will work again. Restart node red and refresh the page after sending it the first message with a valid units. As I said, it does seem possible to get it stuck in a mode where it doesn't work.

Also make sure you never send it a message without a valid units (or unit or whatever) property.

nope, after I change it back to "unit", the problem still persists :disappointed_relieved:

even I had cleaned the browser cache and restarted the device

but it's ok as now I just using other word besides of the word "unit" to make it works :))

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