In fact, although the cron syntax is correct, I would prefer a more simple one:
"0 0/5 * * * ?" //every 5 Minutes
"0 1 0 * * ?" //daily at 12:01 am
"0 1 0 1 * ?" //monthly at 01 12:01 am
"0 2 0 1 1 ?" //yearly at 01-01 12:02 am
year is optional, * is “don’t care”, ? is mandatory either on day OR weekday, ? must be set exactly once.
But your definition is fine, I have no idea why it shouldn’t work.
2 Likes
MDAR
(Stuart Hanlon, UK importer of Velbus hardware)
3
Thanks Udo
I’ll tweak the Cron values as you suggest.
As I was drifting off to sleep last night it stuck me that the Cron trigger might be working perfectly and the rule is being stopped by the next part.
I forgot that I added a single command into each rule, so maybe…
Update
Yes, it turns out the the midnight rule was triggering, but it was failing on the first event.
I’ve commented it out and I’ll work out what’s wrong with that part later.