Timer (polling)

This is a very simple component showing how to create a polling component, by running main on a set timer.

Import the Timer component and enter your poll time in the Timer custom field (in milliseconds). The default value is set to 5 seconds.

Screen Shot 2024-01-10 at 5.53.11 PM.png

In the Translator, you’ll see this is a very simple script leveraging one of the Component APIs, component.setTimer{} to set the component poll time.

Screen Shot 2024-01-10 at 5.56.37 PM.png

You can use this component as a starting point for building your interface or you can use this as inspiration for an existing project.

Reach out to us if you want to chat about how this component can be applied to your interfaces.