Guys,
I want to fire a job every 5 seconds on the minute - i.e. 1:01 am + 5 Sec etc - not just 5 seconds after it first starts (get data from my Inverter) - i figured this would be easy with crontab but alas can not seem to find it.
Any ideas or alternate trigger nodes
I only want this to fire after sunrise and finish at sunset - but i figure i will use the within-time node to direct that
Craig
You could use the cron-plus node + a time-range-switch node.
Cron expression: */5 * * * * *
(does not work in 'normal' linux cron, but should work with the cron-plus node)
This will fire every 5 seconds on the minute and you could pass it on a time-range-switch that can check if it is between sunrise/set.
Or fire on every minute then a 5 second delay node
1 Like
Do you mean every 5 secs past a minute (e.g. 00:00:05
, 00:01:05
, 00:02:05
, ...)
Or do you mean every 5s every minute (on the 5s mark) (e.g. 00:00:00
, 00:00:05
, 00:00:10
, ...)
Or do you mean 5s past the minute and every 5 of that minute (e.g. 00:00:05
, 00:00:10
--> 00:00:55
, 00:01:05
, 00:01:10
, ...)
1 Like
Steve-Mcl:
Or do you mean 5s past the minute and every 5 of that minute (e.g. 00:00:05
, 00:00:10
--> 00:00:55
, 00:01:05
, 00:01:10
, ...)
Yep so we hit 5 seconds past midnight and i want it to start and then keep firing every 5 seconds (forever)
I can then use other nodes to filter that as to between what hours (Sunrise and Sunset) i want it to actually make the modbus call
Thanks for the examples looks like it will do exactly what i want.
regards
Craig
system
Closed
9 October 2025 21:36
6
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.