This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
trigger:Cron [2017/09/04 04:12] peternlewis |
trigger:Cron [2017/09/04 21:26] peternlewis |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | The *Cron trigger* lets you execute a macro periodically while you are logged in. | + | The *Cron trigger* (v8+) lets you execute a macro periodically while you are logged in. |
The Cron format lets you specify when a trigger will fire based on the time of day and and day of month and week. | The Cron format lets you specify when a trigger will fire based on the time of day and and day of month and week. | ||
Line 31: | Line 31: | ||
* `@noon ` — same at `0 12 * * *` (noon in the middle of the each day). | * `@noon ` — same at `0 12 * * *` (noon in the middle of the each day). | ||
* `@hourly ` — same at `0 * * * *` (at the start of each hour). | * `@hourly ` — same at `0 * * * *` (at the start of each hour). | ||
+ | |||
+ | The [[token:TriggerValue|%TriggerValue%]] token will hold the current time and date (`yyyy-mm-dd hh:mm`). | ||
===== Examples ===== | ===== Examples ===== | ||
Line 58: | Line 60: | ||
* [[Periodic|Periodic]] trigger | * [[Periodic|Periodic]] trigger | ||
* [[Time]] trigger | * [[Time]] trigger | ||
+ | * [[Idle]] trigger | ||
* [[/Triggers|All Triggers]] | * [[/Triggers|All Triggers]] |