Hello, can we use numeric Dashboard node in order to change settings into a node, for example change the delay of a delay node. Or is there any other way to do it without opening the node? Thanks
Did you read the node's Info tab?
Here's the basics how it can be done
[{"id":"b5de0f6b.8e304","type":"delay","z":"6d08d5ab.a8aa3c","name":"","pauseType":"delayv","timeout":"1","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":460,"y":330,"wires":[["bf6c9dd9.528b3"]]},{"id":"9f0535bf.8fcbf8","type":"inject","z":"6d08d5ab.a8aa3c","name":"","topic":"","payload":"message","payloadType":"str","repeat":"5","crontab":"","once":false,"onceDelay":0.1,"x":270,"y":330,"wires":[["b5de0f6b.8e304"]]},{"id":"bf6c9dd9.528b3","type":"debug","z":"6d08d5ab.a8aa3c","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":540,"y":390,"wires":[]},{"id":"a7f10ff4.3a675","type":"ui_numeric","z":"6d08d5ab.a8aa3c","name":"","label":"numeric","tooltip":"","group":"d6060f19.2b834","order":0,"width":0,"height":0,"wrap":false,"passthru":true,"topic":"","format":"{{value}}","min":"1000","max":"10000","step":"1000","x":160,"y":270,"wires":[["8938fbca.942ca8"]]},{"id":"8938fbca.942ca8","type":"change","z":"6d08d5ab.a8aa3c","name":"","rules":[{"t":"move","p":"payload","pt":"msg","to":"delay","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":340,"y":270,"wires":[["b5de0f6b.8e304"]]},{"id":"d6060f19.2b834","type":"ui_group","z":"","name":"STAATUS","tab":"93443fe0.36117","disp":true,"width":"20","collapse":false},{"id":"93443fe0.36117","type":"ui_tab","z":"","name":"Home","icon":"dashboard","disabled":false,"hidden":false}]
Hello HotNipi, thanks for your reply.
I've been trying your flow but the "variable delay node" gets overide to it's default value each time i'm pushing the inject mode, see screen shot
As I said, example was to indicate basics.
What you'll need to do is to store the value from numeric into flow context (or global context if needed) and use it every time as last known good value for delay.
Is there some way to get the Inject node to use a number from the dashboard for its repeat interval? I'd like to make that user-configurable.
node-red-contrib-ui-time-scheduler ??
It looks like that's limited to one on/off event a day. It's great for controlling something that operates once a day.
I have a pet feeder I want to turn on and off about every 1-2 hours, and it need not do so with any relation to the wall clock. The Inject node is great for this, but I have to edit and restart the flow to adjust the repeat interval. (The feeder dispenses a measured amount when it turns on. It comes with a mechanical lamp timer with plastic tabs for every 15 minutes so I could turn the thing on and off every 1/2 hour if I wanted.I replaced the timer with an Ikea remote switch and Node-RED.)
You could try the trigger node set to resend every x ... and set to allow msg.delay to set the delay (in mS I think)
That looks promising. Perhaps two Triggers in a loop to create the repeat, a UI node to inject the delay value into one of them, and something to remember the delay in a context across reboots.
(The funny thing is that I can see the code in C++ but I'll have to think about it to create a flow like that. I'll bet it would make a nice sub-flow for reuse by others.)