cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

How to set up and configure Timers

Highlighted
Level 11

How to set up and configure Timers

  • Create a new Thing using the Timer Thing Template.
  • The Timer Thing will fire a Timer Event when the Timer's Update Rate has expired. The event is automatically present and does not need to be added manually.

Configuration

 

  • The Timer Configuration is quite straightforward. It can be accessed via the Thing's Entity Configuration.
  • Configuration allows for
    • Enabling the Timer on Thing-Startup - whenever the Thing is started, e.g. when restarting ThingWorx or via the RestartThing Generic Service, also the Timer is enabled and will fire Events.
    • Changing the Update Rate - in which intervall the Events will be fired (by default every minute [60000 milliseconds]).
    • Changing the User Context - in which the Events will be handled. The user will need visibility and permission on e.g. executing Services or depending Things, which are required to run the Service triggered by the Event.

 

ConfigurationForTimerThing.png

 

 

 

 

Services

 

  • Timer Things inherit two Services by default from the Thing Template
    • DisableTimer
    • EnableTimer
  • These will activate / de-activate the Timer and allow / disallow firing Events once the Update Rate has expired
  • If a Timer is currently enabled or disabled can be seen in its properties

 

TimerTemplateProperties.png