# Dashboard numeric controll delay node

**URL:** <https://discourse.nodered.org/t/dashboard-numeric-controll-delay-node/60019>\
**Category:** General\
**Created:** [18 March 2022 07:20 UTC](https://discourse.nodered.org/t/dashboard-numeric-controll-delay-node/60019 "2022-03-18T07:20:27Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![BWTH](https://avatars.discourse-cdn.com/v4/letter/b/ce7236/32.png) [@BWTH](https://discourse.nodered.org/u/BWTH)\
**Post date:** [18 March 2022 07:20 UTC](https://discourse.nodered.org/t/dashboard-numeric-controll-delay-node/60019/1 "2022-03-18T07:20:27Z")

</div>

hi  
i want to make an timeline of many lights, they should light like "knight rider" to make it easy i want to set the delay in dashboard. but this doesn´t work. where is my error?

here is my flow:

---

<div class="post-metadata">

**Author:** ![BWTH](https://avatars.discourse-cdn.com/v4/letter/b/ce7236/32.png) [@BWTH](https://discourse.nodered.org/u/BWTH)\
**Post date:** [18 March 2022 07:22 UTC](https://discourse.nodered.org/t/dashboard-numeric-controll-delay-node/60019/2 "2022-03-18T07:22:32Z")

</div>

![Unbenannt](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/a/eaf6519c3ed4c08739778a493368970ac72b35d3.jpeg)

---

<div class="post-metadata">

**Author:** ![BWTH](https://avatars.discourse-cdn.com/v4/letter/b/ce7236/32.png) [@BWTH](https://discourse.nodered.org/u/BWTH)\
**Post date:** [18 March 2022 07:25 UTC](https://discourse.nodered.org/t/dashboard-numeric-controll-delay-node/60019/3 "2022-03-18T07:25:22Z")

</div>

sorry i can´t updload my post (new user)

---

<div class="post-metadata">

**Author:** ![BWTH](https://avatars.discourse-cdn.com/v4/letter/b/ce7236/32.png) [@BWTH](https://discourse.nodered.org/u/BWTH)\
**Post date:** [18 March 2022 07:26 UTC](https://discourse.nodered.org/t/dashboard-numeric-controll-delay-node/60019/4 "2022-03-18T07:26:24Z")

</div>

```auto
[
    {
        "id": "32c33c64c7456f3e",
        "type": "tab",
        "label": "Flow 1",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "0793cb7dcff10587",
        "type": "ui_numeric",
        "z": "32c33c64c7456f3e",
        "name": "",
        "label": "Einschaltdauer",
        "tooltip": "",
        "group": "31659bee51821f98",
        "order": 0,
        "width": 0,
        "height": 0,
        "wrap": false,
        "passthru": true,
        "topic": "delay",
        "topicType": "msg",
        "format": "{{value}}",
        "min": 0,
        "max": 10,
        "step": 1,
        "className": "",
        "x": 720,
        "y": 300,
        "wires": [
            [
                "53ced76e468ef8dd"
            ]
        ]
    },
    {
        "id": "53ced76e468ef8dd",
        "type": "delay",
        "z": "32c33c64c7456f3e",
        "name": "",
        "pauseType": "delay",
        "timeout": "2",
        "timeoutUnits": "seconds",
        "rate": "1",
        "nbRateUnits": "1",
        "rateUnits": "second",
        "randomFirst": "1",
        "randomLast": "5",
        "randomUnits": "seconds",
        "drop": false,
        "allowrate": false,
        "outputs": 1,
        "x": 720,
        "y": 380,
        "wires": [
            []
        ]
    },
    {
        "id": "31659bee51821f98",
        "type": "ui_group",
        "name": "Standard",
        "tab": "30195bd063ac281a",
        "order": 1,
        "disp": true,
        "width": "6",
        "collapse": false,
        "className": ""
    },
    {
        "id": "30195bd063ac281a",
        "type": "ui_tab",
        "name": "Timeline",
        "icon": "dashboard",
        "disabled": false,
        "hidden": false
    }
]

```

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [18 March 2022 09:58 UTC](https://discourse.nodered.org/t/dashboard-numeric-controll-delay-node/60019/5 "2022-03-18T09:58:39Z")

</div>

A good route for debugging a flow is to add debug nodes to it at appropriate points, give the nodes names so that it is easier to follow the output, and work out exactly which node is not doing as you expect. Once you have done that, if you still can't work it out, then show us the input to the node, the output, and tell us what is going wrong.

---

<div class="post-metadata">

**Author:** ![BWTH](https://avatars.discourse-cdn.com/v4/letter/b/ce7236/32.png) [@BWTH](https://discourse.nodered.org/u/BWTH)\
**Post date:** [18 March 2022 10:38 UTC](https://discourse.nodered.org/t/dashboard-numeric-controll-delay-node/60019/6 "2022-03-18T10:38:06Z")

</div>

in the screenshot there is (1) for input the time in seconds over the dashboard and this should be taken to the delay (2), example: i set 6 in dashboard the delay should be set to 6....  
sorry for my beginner question, maybe you could give me the right way

 ![Unbenann1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/7/f731d64df50e834b6862b6d55b1a7875a4c3fdc7.jpeg)

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [18 March 2022 11:53 UTC](https://discourse.nodered.org/t/dashboard-numeric-controll-delay-node/60019/7 "2022-03-18T11:53:35Z")

</div>

As I said, use debug nodes to show what is going on. Connect a debug node to the output of the dashboard node. Set the Output field to complete message. Copy/paste what you see in the debug pane. Now look at the help text for the delay node and see what it says about setting the delay. Do the two match?

---

<div class="post-metadata">

**Author:** ![BWTH](https://avatars.discourse-cdn.com/v4/letter/b/ce7236/32.png) [@BWTH](https://discourse.nodered.org/u/BWTH)\
**Post date:** [19 March 2022 08:05 UTC](https://discourse.nodered.org/t/dashboard-numeric-controll-delay-node/60019/8 "2022-03-19T08:05:30Z")

</div>

now i am allready at the finsih line, only one thing i can´t make: if i but an value over the dashboard it works, but if i restart node red the value get lost, so who can i store the actuel value. it should only if there comes an differnt value  
[flows (12).json](https://discourse.nodered.org/uploads/short-url/qDuHVWZQiK1CRfXltqad28OxutD.json) (4.3 KB)

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [19 March 2022 08:53 UTC](https://discourse.nodered.org/t/dashboard-numeric-controll-delay-node/60019/9 "2022-03-19T08:53:27Z")

</div>

For the future, please see this post for details of how to post flows or code - [How to share code or flow json](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506)

> [@BWTH](#):
>
> so who can i store the actuel value

Are you using MQTT? If so then use a Retained Topic in MQTT for the current value.

Alternatively you can use persistent context for storing values. See [Working with context : Node-RED](https://nodered.org/docs/user-guide/context)

Have you watched this playlist: [Node-RED Essentials](https://www.youtube.com/playlist?list=PLyNBB9VCLmo1hyO-4fIZ08gqFcXBkHy-6). The videos are done by the developers of node-red. They're nice & short and to the point. You will understand a whole lot in about 1 hour. A small investment for a lot of gain.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [18 May 2022 08:53 UTC](https://discourse.nodered.org/t/dashboard-numeric-controll-delay-node/60019/10 "2022-05-18T08:53:45Z")

</div>

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