Scripts
The heart of automation
Last updated
The heart of automation
Last updated
Scripts form the heart of your layout automation. Your script essentially exists of a sequential set of actions divided into several sections.
A script can be repeatable, toggling the repeat option lets your skip repeat indefinitely until you manually stop it.
The execution trigger of your script can either be manual or by event event or by camera vehicle detection.
Manual scripts can be started via the automate tab of the throttle or inside a time table.
Events can be triggered by events originating from (layout) accessories, time, feedback sensors, cameras or vehicles.
A script can define multiple events, any of these events will trigger a script execution.
Event based scripts can also define conditions for execution. Multiple conditions can be defined, you can select AND if all conditions should match or OR if any of the conditions should match before execution.
Conditions can be defined for (layout) accessories, feedback sensors, vehicle state or flag state.
Your script is divided into sections. The purpose of a section is to order your scripts functionally to keep an overview of the potentially many sequential steps. Below is a nice logical division of a script into multiple sections.
You can create, order the sections via the edit and add button in the top bar. Read here for more details around sections.
As a source of inspiration or better understanding of the features please have a look at the examples.