How to set the trigger frequency based on context value

I have to respond based on a regular interval which is part of request. can you suggest

Welcome to the forum @vijayaprabu

You are going to have to give us a lot more information than that before we can give you any sensible suggestions.

Hi @jbudd

i have a client which request a data on request. in the request its mentioned that in what interval the data has to be sent till the request is revoked. i have seen the Trigger a flow at regular intervals : Node-RED and Route or block a message based on a context value : Node-RED. what i am looking is like set the interval based on the context from the request

Try the cron-plus contrib node.

You can use the request to specify or cancel a schedule of times to inject data to the flow.

1 Like

A possibly simpler way is to use a Change node to move the required interval (in milliseconds) into msg.delay then feed that into a Trigger node configured like this

That will pass the message on and then send it again at the interval specified in msg.delay. The 10 seconds specified is ignored because override delay is ticked.
When you get the revoke instruction then then send the Trigger node a message containing just msg.reset set to true and it will stop sending.