Interface Asset - Scheduler

    Description

    The Scheduler Interface Asset enables you to schedule actions using dates and/or times specified via Cron expressions. Any IntuiFace action can be scheduled to run periodically at fixed times, dates, or intervals.

    This feature is particularly useful for Digital Signage-like applications where content has to be changed depending on the time of the day. With the Scheduler you can specify times and intervals for navigating to a different space, hiding/showing content, changing on-screen text, etc.

    Samples

    • Every day between Monday and Friday, at 8am local time, do...
    • Every day, every minute between 8am and 12am, do...

    You can use the Scheduled Digital Signs template found on the New tab of the Composer and Player Experiences panel to try out this feature.

    Cron-Template.jpg

    Definition of a Cron expression

    IntuiFace handles Cron expressions composed of five or six fields separated by white space. Special characters are used to create more precise time sets.

    [seconds] [minutes] [hours] [day of month] [month] [day of week]
    OR
    [minutes] [hours] [day of month] [month] [day of week]

    • Seconds: 0-59
      • This field is optional. If no value is entered - i.e. if you only supply values for five fields - a value of 0 is assumed.
    • Minutes: 0-59
    • Hours: 0-23
    • Day of Month: 1-31
    • Months: 0-11 (or alias JAN-DEC)
    • Day of Week: 0-6 (or alias SUN-SAT) 0 -> Sunday, 1 -> Monday, 2 -> Tuesday, 3 -> Wednesday, 4 -> Thursday, 5 -> Friday, 6 -> Saturday

    Special characters

    • Asterisk ( * ): The asterisk indicates that the cron expression matches for all values of the field. E.g., using an asterisk in the 5th field (month) indicates every month.
    • Hyphen ( - ): Hyphens define ranges. For example, 6-11 in the third field (hours) indicates every hour between 6AM and 11AM, inclusive.
    • Slash ( / ): Slashes describe range increments. For example 3-59/15 in the 2nd field (minutes) indicates the third minute of the hour and every 15 minutes thereafter. The form "x-y/z" is equivalent to the form "first-last/increment".
    • Comma ( , ):Commas are used to separate items of a list. For example, using "1,3,5" in the 6th field (day of week) means Mondays, Wednesdays and Fridays.

    Creating your own Cron expressions

    We have found this online service to be effective at building cron expressions properly formatted for the Scheduler Interface Asset.

    If you have any questions or issues building your own expression, please contact IntuiFace support

    Sample expressions

    • Every 2s: */2 * * * * *
    • Every 4s: */4 * * * * *
    • Every day at 1pm: 0 0 13 * * *
      • Since the seconds field is optional, you could also enter 0 13 * * *
    • Every minute, Monday thru Friday, between 8am and 11:59am: 0 * 8-11 * * 1-5
      • Since the seconds field is optional, you could also enter * 8-11 * * 1-5
      • To also run at 12:00pm - and no later - add a second trigger using the Cron expression 0 0 12 * * 1-5

    Properties, Triggers & Actions

    Properties

    • Cron expression: the expression to be used by the scheduler
    • Timezone: can be Local or UTC (use UTC for global event scheduling)

    Scheduler-Props.jpg

    Triggers

    • Time reached: raised each time the Cron expression is realized

    Actions

    • Start: turns on the scheduler
    • Stop: turns off the scheduler