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:
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:
sorry i can´t updload my post (new user)
[
{
"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
}
]
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.
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
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?
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 (4.3 KB)
For the future, please see this post for details of how to post flows or code - How to share code or flow json
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
Have you watched this playlist: Node-RED Essentials. 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.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.