When configuring a timer event there are various options you can use to time events.
- absolute – this executes the event at an exact time and date
- countdown – counts down to 0
- watchdog – counts down to 0 and then resets
- cron – uses the cron timer (more explained below)
Cron Timer
There are 5 values you can specify for the cron timer
- minute – this controls what minute of the hour the command will fire values between 0 and 59
- hour – this controls what hour the command will run – specified in the 24 hour clock format 0-23 0=midnight
- dom – day of month that you want the command to run e.g 20th = 20
- dow – day of week it can be numeric 0-7 or name of day e.g sat
Examples:
01 * * * * This command is run at one min past every hour
17 8 * * * This command is run daily at 8:17 am
*/1 **** this command runs every minute
Great , thanks