Skip to content

Cameras card

Live cameras: a big view, a pill per camera, and what they’ve noticed lately. Detections draw a box, and a tap goes full screen.

3 samples, each at every size that draws differently, then in chat, in the light theme, and as a ring where it has a headline.

cameras, small size
Small
cameras, wide size
Wide
cameras, medium size
Medium
cameras, large size
Large
cameras, in chat
In chat
cameras, light theme
Light theme
cameras, ring
Ring

Tall draws the same as medium, so it isn't shown. Only the empty space changes.

cameras · one, medium size
Medium
cameras · one, large size
Large
cameras · one, in chat
In chat
cameras · one, light theme
Light theme

Small draws the same as medium. Wide draws the same as medium. Tall draws the same as medium, so they aren't shown. Only the empty space changes.

cameras · none, medium size
Medium
cameras · none, large size
Large
cameras · none, in chat
In chat
cameras · none, light theme
Light theme

Small draws the same as medium. Wide draws the same as medium. Tall draws the same as medium, so they aren't shown. Only the empty space changes.

Every card also takes the fields all cards share.

FieldTypeWhat it does
type'cameras'
camerasCamera[]
events?CameraEvent[]
refresh?number
empty?string
sample?boolean

refresh: seconds between pictures, 1 by default; sample: recorded footage, never called live

FieldTypeWhat it does
idstring
namestring
image?stringthe current picture, fetched again about once a second while it’s on screen
video?stringa stream or file to play instead, muted; if it can’t play, image takes over
poster?stringa still for the pill, and to show until the video starts
loop?numbervideo is a loop of this many seconds, kept in step with the clock
offline?boolean
detections?Detection[]what it sees right now

Something a camera sees: box is [x, y, w, h] in fractions of the picture. A path moves it instead, as [t, x, y, w, h] keyframes in seconds of the clock (or of the camera’s loop), so the box glides between updates.

FieldTypeWhat it does
labelstring
score?number
box?[number, number, number, number]
path?[number, number, number, number, number][]
FieldTypeWhat it does
id?string
camerastring
labelstring
atnumber
image?string
score?number

camera: a Camera’s id; at: ms

Camera · Frigate