Hello Internet,
I am looking to do some stuff with some values that I've stuffed into the global context... and I'd like this all to happen on a very fixed and strict schedule (like every 5 minutes, or once a day as the clock strikes midnight, as the bell tolls, etc.)
I am using the Inject node to do this, and it references that this will be done using cron. Super.. I like cron. However for my needs, 1) there seem to be some missing cron configuration options, and 2) I'm not sure that I can properly select "all the time".
1) In cron speak, you have the "at" part, and the "on" part. So for example you'd say '0/5' for minutes, would mean that the thing would happen at 0 minutes, and then every 5 minutes after that. In the Inject node, I only see the "Interval between times", but no "when to initially trigger".
2) Using the 0/5, at :00, :05, :10, :15, ... example... I want this to happen all day, every day. Normally in cron, you just put a star for the hours, but here I need to select a start and end time. So I choose 00:00 to 00:00, however it doesn't like this, so it changes it to 00:00 to 01:00... obviously only being for one hour. If I put 00:00 to 23:00, I'm afraid that it will not trigger between 23:00 and 24:00.
Here is a screenshot with a fabulously drawn yellow rectangle around the section in question.
https://dl.dropboxusercontent.com/u/79298132/NodeRED_Inject_IntervalBetweenTimes1.pngI tried using the "at a specific time" mode for the node, however then I don't have the option for the repetition.
Any thoughts on how I might accomplish what I'm trying to do here, or just write the cron expression out entirely myself?
Happy cocktail hour ( I say that out of envy as I rush off to look after a couple of 2 year olds)
Greg