Setting time into flow

I have a flow which is inserting data into mongo db database. I am using trigger node so that my flow will keep on running for 4 hrs.
let us consider i have started flow at 8 AM it will insert data into database after 4 hrs i.e. at 12 PM. Now if in case node red server stops or restarts trigger node is going to consider 4 hrs from the time it was restarted. i.e if flow restarted at 10 AM after restarting next time it will insert data at 2 PM which is not as expected. it should insert data at 12 pm.so how can I set time in the flow so that it will work as per time set?

Take a look at node-red-contrib-cron-plus so you could schedule the times

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.