jensrossbach / node-red-contrib-chronos

Time-based Node-RED scheduling, repeating, queueing, routing, filtering and manipulating nodes
https://jensrossbach.github.io/node-red-contrib-chronos
MIT License
28 stars 1 forks source link

Repeat node: Dynamic repetition data and until times from context variables #103

Closed jensrossbach closed 1 year ago

jensrossbach commented 1 year ago

Currently repeat node can retrieve dynamic data (repetition specifications and until times) only from incoming messages. With this extension, repeat node shall be able to load this data also from context variables (message ingress triggers the load from context variables).

jensrossbach commented 1 year ago

To a certain extend, this is already possible. With custom mode and/or JSONata based until time, one can use the JSONata functions $flowContext, $globalContext and $env for retrieving values from context or environment variables. This might be more complex than data similar to the message overrides and requires some knowledge of JSONata on one side, but it is quite flexible on the other side.

Therefore it has to be decided, if this feature is worth implementing.

jensrossbach commented 1 year ago

Will be implemented.

jensrossbach commented 1 year ago

Implemented with release 1.19.