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.

Keywords and limits

Use this page to look up timeline script fields. The step reference describes their behavior and gives examples.

Common fields

Keyword Type Meaning
type string Step type.
params object Parameters for that step.
target object Camera, light, or GPIO destination.
duration number Trailing pause in milliseconds; default 500, or 0 for none.
atMs number Non-negative offset on a shot shared clock.
action object/string Embedded shot action or operation enum, depending on context.
phase enum Camera phase: warmup, capture, aborted.
count integer Repeat count.
steps array Nested repeat steps.
requestId string Optional request correlation ID.
waitForTransfer boolean Wait for transfer after a trigger.

Camera configuration fields

setting, value, modeId, enabled, intervalMs, intervalIterations, reversed, freezeStartsAtCamera, freezeMs, and jumpMs configure camera settings and trigger modes. groupId, groupIds, serials, numbers, zoneId, and all select cameras.

Light fields

Light targets use all, nodeIds, ips, groupId, or groupIds. Light commands may contain enabled, color (RGB or RGBW), brightness (0 to 1), gamma, hue_offset, saturation_offset, lightness_offset, image, image_transform, image_bounce, image_render_duration, playback_mode, frame_index, and related playback fields.

GPIO fields

GPIO commands use op (set, pulse, read, or mode), pin or pins, value (0 or 1), mode, and optional duration_ms. GPIO pins are 0 through 27; pulse duration is limited to one hour.

Current validation limits

Limit Value
JSON document 256 KB
Camera groups 32
Members per camera group 256
Expanded steps 500
Repeat count 100
Repeat nesting depth 2
Step wait duration 10 minutes
Shot offset 1 hour
Actions per shot 256
Timeline script name 128 characters
Description 512 characters
Light effect frames 600
Light effect framerate 120

Validation is authoritative. If a field is accepted by the runtime but absent from this page, update the contract and documentation together rather than relying on trial and error.

Updated

Page links