Scheduler allows us to perform certain service/task at defined interval repetatively.

For example, you want to run a service for every 1 hour then follow the following steps:

  1. Create a Thing with Scheduler Template and Save.
  2. Go to Configuration and click more in schedule, then enter as follow.

 

     3. Now Go to Subscription then Add My Subscription. Set the Following:

    • Event: ScheduleEvent
    • Enabled:true (tick)
    • Script Window: put what you want to do.

Save and you are set.

Here in the above picture Things["your_thing"].yourService() will execute every 1 hour.

 

Timer is another alternative of Scheduler Template.