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.

Targets and groups

Targets decide which cameras or nodes receive an action. Camera groups declared in a Timeline script are resolved when the run starts.

Camera target forms

Form Meaning
{"all": true} All cameras in the normal active fleet target.
{"zoneId": "name"} Cameras in a persistent Camera Server zone.
{"groupId": "name"} One timeline script or persistent camera group.
{"groupIds": ["left", "right"]} The union of several groups.
{"serials": ["CAM_001"]} Explicit camera serials.

Declare a camera group

{
  "groups": [
    { "id": "first-five", "numbers": [1, 2, 3, 4, 5] },
    { "id": "rear-side", "serials": ["CAM_101", "CAM_102"] }
  ]
}

numbers are the assigned 1-based camera numbers and are resolved against the Camera-list when the run starts. serials are stable identifiers for a known physical camera arrangement. A group may contain both; duplicates are removed.

A timeline script group with the same ID overrides a persistent fleet group for that run. Unresolved numbers and disconnected cameras are skipped, and a target that resolves to zero cameras causes its trigger to fail.

Light and GPIO groups are separate from camera groups. They use nodeIds and/or ips and cannot be used as camera targets.

Updated

Page links