Is it possible for the configurable-interval node to use the interval value when I enter the interval value in a DASHBOARD text input node on the UI?
Are you referring to the node-red-contrib-configurable-interval
node? If so, it would depend on what that node permits as inputs. Unfortunately, from what I read about that node, it doesn't say you can pass input parameters to it. In addition
- the node hasn't been updated in over four years
- there is no ability to open an issue on the GitHub page and
- the author hasn't been active on GitHub for two years
So I would suggest finding a different node to use.
node-red-contrib-cron-plus
this node has built in examples also particularly how to set dynamic schedules from dashboard.
thank you
you are welcome.
[{"id":"5b4ade2be28990ee","type":"change","z":"4c840192a7863d4d","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"cron1","tot":"str"},{"t":"set","p":"topic","pt":"msg","to":"status","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":520,"y":1140,"wires":[["2d76553a17424471"]]},{"id":"3ae5e7de7ccd754b","type":"change","z":"4c840192a7863d4d","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"{}","tot":"json"},{"t":"set","p":"payload.command","pt":"msg","to":"add","tot":"str"},{"t":"set","p":"payload.payload","pt":"msg","to":"output","tot":"str"},{"t":"set","p":"payload.name","pt":"msg","to":"cron1","tot":"str"},{"t":"set","p":"payload.expression","pt":"msg","to":"expr","tot":"msg"},{"t":"set","p":"payload.payloadType","pt":"msg","to":"str","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":380,"y":1040,"wires":[["5b4ade2be28990ee","2d76553a17424471"]]},{"id":"2d76553a17424471","type":"cronplus","z":"4c840192a7863d4d","name":"","outputField":"payload","timeZone":"","persistDynamic":true,"commandResponseMsgOutput":"output2","outputs":2,"options":[],"x":640,"y":1040,"wires":[[],["392ce10fba8546ca"]]},{"id":"75da7c1b43c1ce4e","type":"template","z":"4c840192a7863d4d","name":"","field":"expr","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"0 0/{{payload}} * * * *","output":"str","x":200,"y":1040,"wires":[["3ae5e7de7ccd754b"]]},{"id":"392ce10fba8546ca","type":"change","z":"4c840192a7863d4d","name":"","rules":[{"t":"set","p":"payload1","pt":"msg","to":"payload.result.status.nextDateTZ","tot":"msg"},{"t":"set","p":"payload2","pt":"msg","to":"payload.result.status.description","tot":"msg"},{"t":"set","p":"payload","pt":"msg","to":"payload1&'-'&payload2","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":820,"y":1040,"wires":[["1161aba0c9c92f2e"]]},{"id":"6c33f1ac9b7e39f7","type":"ui_numeric","z":"4c840192a7863d4d","name":"","label":"Enter after how many minutes you want the trigger","tooltip":"","group":"d6a1695f.c376f8","order":1,"width":0,"height":0,"wrap":false,"passthru":true,"topic":"topic","topicType":"msg","format":"{{value}}","min":"1","max":"60","step":1,"className":"","x":290,"y":960,"wires":[["75da7c1b43c1ce4e"]]},{"id":"1161aba0c9c92f2e","type":"ui_text","z":"4c840192a7863d4d","group":"d6a1695f.c376f8","order":2,"width":"16","height":"4","name":"","label":"Next trigger at","format":"{{msg.payload}}","layout":"row-spread","className":"","x":1000,"y":1040,"wires":[]},{"id":"d6a1695f.c376f8","type":"ui_group","name":"Default","tab":"c08b5841.22f118","order":1,"disp":false,"width":"16","collapse":false},{"id":"c08b5841.22f118","type":"ui_tab","name":"CRON","icon":"dashboard","order":2,"disabled":false,"hidden":false}]
this may not be perfect, but using this you can set after how many minutes you want a repeating trigger.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.