Timeline scripts and Event scripts

Scripts

Build Timeline scripts for ordered camera, light, and GPIO actions, or Event scripts that respond to Camera Server events.

Timing and repeat control

Timing settings belong to an action node. They control how matching events are combined, delayed, or suppressed before the action runs.

OR and AND

  • OR: the action starts when any connected event node matches. This is the default.
  • AND: the action waits until every connected event node has matched. Once all sources have matched, the action runs and the collected state resets for the next cycle.

AND state has no automatic expiry. A source can remain satisfied until the action fires or a matching Stop connection clears the state. Use AND only when the event order and reset behavior are clear.

Debounce

Debounce ignores repeat fires for the configured time window after an action starts. It is useful for countdown beats, repeated input events, or noisy sources.

When no positive debounce value is configured, the event script engine still applies a 250 ms default protection window. Set a longer value when the source can repeat faster than the physical action should run.

Delay

Delay postpones an accepted action. Use it when an output should follow an event by a known interval. Debounce decides whether a repeat is ignored; delay decides when an accepted event runs.

Busy timeline scripts

Camera Server runs one timeline script at a time. If an Event script tries to start a Timeline script while another timeline script is running, that action is skipped.

Whole saved Light presets run independently of the timeline script. A new Play replaces the previous preset, even while it is preparing. Preparation is serialized, and a superseded preparation cannot commit output. Back-to-back Warmup start and Countdown start events can therefore replace one preset with another without a delay.

A Stop connection cancels only the execution started by its own action node, including a pending Play. A late Stop from an older execution cannot stop a newer preset or a manual replay.

Stop sends a blackout command; it is not a frame-synchronized flash control. A Raspberry Pi client may still be downloading the previous animation before it handles Stop. A successful script action means the command was dispatched, not that the physical strip was measured dark. Node command rejections are logged, and the latest acknowledgement is available as lastCommandAck in /api/light-nodes.

Updated

Page links