Cannot get ui_guage to display each message after specified delay time

My experiment is to display numbers from a csv file onto ui_guage after a 5 sec delay.(code at end)

Input to csv file is a multi-line msg.payload with three values per line.i.e,

```name1, numerical1,numerical11
```name2 numerical2,numerical22,  etc

problem: i get no delay of 5sec per message on the guage...it directly shows the final value present in the last colomn (i have used a delay node also but still...)

example: display column 3 numericals with 5 sec delay on guage.
guage output: numerical22
So, the required per message delay (5 sec) is absent.
I require the delay.
I'am working on IBM cloud lite plan, node red v1.0.6

please review the following code
any help is welcome
if similar is answered before please re-direct me the solution
. :dark_sunglasses:

The code:

[
    {
        "id": "c9b43c3a.da2e4",
        "type": "ui_gauge",
        "z": "ac0d0d22.69ebb",
        "name": "",
        "group": "c604d450.9712c8",
        "order": 13,
        "width": "5",
        "height": "5",
        "gtype": "gage",
        "title": "<img height=\"50\" width=\"50\" src=\"https://upload.wikimedia.org/wikipedia/commons/b/bf/Pressure_gauge.svg\"/>",
        "label": "units",
        "format": " {{msg.payload.col3}}",
        "min": 0,
        "max": 10,
        "colors": [
            "#00b500",
            "#e6e600",
            "#ca3838"
        ],
        "seg1": "",
        "seg2": "",
        "x": 840,
        "y": 320,
        "wires": []
    },
    {
        "id": "c604d450.9712c8",
        "type": "ui_group",
        "z": "",
        "name": "tab1",
        "tab": "c733c61c.6e4828",
        "order": 1,
        "disp": true,
        "width": "12",
        "collapse": false
    },
    {
        "id": "c733c61c.6e4828",
        "type": "ui_tab",
        "z": "",
        "name": "Home1",
        "icon": "dashboard",
        "disabled": false,
        "hidden": false
    }
]

You have only posted the export from one node, you haven't posted the flow showing how you have attempted the delay.
However, in case you didn't realise, if you want it to show multiple values 5 seconds apart you need to set the delay node to rate limit mode so they come out at the defined rate.

Thanks @Colin for pointing the error out!
I have set the delay node to rate limit mode and now I get the desired output. Once again thanks @Colin for the timely response.
The complete working code is given below :dark_sunglasses:

[
    {
        "id": "5a46e414.3d711c",
        "type": "csv",
        "z": "11fd5d54.80c8c3",
        "name": "",
        "sep": ",",
        "hdrin": "",
        "hdrout": "",
        "multi": "one",
        "ret": "\\n",
        "temp": "",
        "skip": "0",
        "strings": true,
        "x": 150,
        "y": 180,
        "wires": [
            [
                "f42b8576.b16da8"
            ]
        ]
    },
    {
        "id": "ad74ddcd.f10da",
        "type": "debug",
        "z": "11fd5d54.80c8c3",
        "name": "",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "x": 550,
        "y": 160,
        "wires": []
    },
    {
        "id": "3339df88.e401e",
        "type": "ui_gauge",
        "z": "11fd5d54.80c8c3",
        "name": "",
        "group": "c604d450.9712c8",
        "order": 13,
        "width": "5",
        "height": "5",
        "gtype": "gage",
        "title": "<img height=\"50\" width=\"50\" src=\"https://upload.wikimedia.org/wikipedia/commons/b/bf/Pressure_gauge.svg\"/>",
        "label": "units",
        "format": " {{msg.payload.col3}}",
        "min": 0,
        "max": 10,
        "colors": [
            "#00b500",
            "#e6e600",
            "#ca3838"
        ],
        "seg1": "",
        "seg2": "",
        "x": 440,
        "y": 260,
        "wires": []
    },
    {
        "id": "7c40b1c4.9fb8a",
        "type": "inject",
        "z": "11fd5d54.80c8c3",
        "name": "",
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "x": 160,
        "y": 80,
        "wires": [
            [
                "daef5ea5.2d6cd"
            ]
        ]
    },
    {
        "id": "f42b8576.b16da8",
        "type": "delay",
        "z": "11fd5d54.80c8c3",
        "name": "delay time",
        "pauseType": "rate",
        "timeout": "5",
        "timeoutUnits": "seconds",
        "rate": "1",
        "nbRateUnits": "1",
        "rateUnits": "second",
        "randomFirst": "1",
        "randomLast": "5",
        "randomUnits": "seconds",
        "drop": false,
        "x": 310,
        "y": 180,
        "wires": [
            [
                "ad74ddcd.f10da",
                "3339df88.e401e"
            ]
        ]
    },
    {
        "id": "daef5ea5.2d6cd",
        "type": "template",
        "z": "11fd5d54.80c8c3",
        "name": "input data w/o \" \"",
        "field": "payload",
        "fieldType": "msg",
        "format": "handlebars",
        "syntax": "mustache",
        "template": "apple,40.959090,74.074522\nball,39.875786,4.663006\ncat,39.802352,7.961251\ndog,39.086143,73.84776\negg,39.328387,72.121644\nflag,40.787217,44.246136\nggrape,39.721019,785.143708\nhorse,40.731384,44.078627",
        "output": "str",
        "x": 350,
        "y": 80,
        "wires": [
            [
                "5a46e414.3d711c"
            ]
        ]
    },
    {
        "id": "c604d450.9712c8",
        "type": "ui_group",
        "z": "",
        "name": "tab2",
        "tab": "c733c61c.6e4828",
        "order": 1,
        "disp": true,
        "width": "12",
        "collapse": false
    },
    {
        "id": "c733c61c.6e4828",
        "type": "ui_tab",
        "z": "",
        "name": "Home1",
        "icon": "dashboard",
        "disabled": false,
        "hidden": false
    }
]

For the future, when posting flows if you select Compact mode (at the bottom of the Export dialog) then it appears as one line here so it is much easier to copy it all, just by triple clicking it.

Ok. Got it! :dark_sunglasses:

Yes it is much smaller and neater in compact mode - but there is a button top right of the window that will do the copy all to clipboard for you in any format

Sorry Dave, top right of which window?

Any correctly back-ticked code segment

Oh, you mean from the forum, I thought you meant when Exporting.
At last I know what that blob that keeps getting in the way does, thanks. I don't see a tooltip when I hover over it, but perhaps there is not supposed to be one.

@Colin

Thanks, I think our posts crossed.

:slight_smile:

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