Occupancy card

People inside against capacity: a welcome while there is room, nearly full as it fills, and a please-wait banner at the limit.

Live card

This card is drawn in your browser by the same code the Players run, with sample data.

Category: Operations. Tags: Numbers and metrics, Stores, Offices and workplaces, Healthcare.

Data and privacy

This card uses its configured properties and live card data.

Properties

For theme, background, accent, colour overrides and position, see Common properties.

Static properties

NameTypeDefaultValues and limitsDescription
titlestring"Occupancy"maxLength: 40
nounstring"people"minLength: 1; maxLength: 16Who is counted: people, guests, visitors, shoppers. Reads "people inside".
warnPercentinteger80minimum: 50; maximum: 99From this share of capacity the board reads nearly full.
openMessagestring"Welcome, come in"maxLength: 40
busyMessagestring"Nearly full"maxLength: 40
fullMessagestring"Please wait"maxLength: 40

Dynamic properties

NameTypeDefaultValues and limitsDescription
insideinteger0minimum: 0; maximum: 99999How many are inside now.
capacityinteger0minimum: 0; maximum: 99999The most that may be inside. 0 shows the waiting state until it is set.
footnotestring""maxLength: 120A line for the foot of the board: when the next entry is, where to queue.
previousinteger, nullnullminimum: 0; maximum: 99999The count before the latest update. With updatedAt, the board shows it until that instant, then plays the change.
updatedAtstring""maxLength: 40When the count last changed (ISO 8601). Anchors the board's moment; empty plays none.

Example params

{
  "theme": "neomustard"
}
screenrig card create --type occupancy --major 1 --file params.json --context-file context.md

Example data

{
  "inside": 0,
  "capacity": 0,
  "footnote": "",
  "previous": null,
  "updatedAt": ""
}

Layouts

This fullscreen card fills the whole screen in landscape or portrait and is not placed as a corner, chip, or strip.

Layouts: full. Forms: landscape, portrait.

Use this card

Add this card to a playlist as in Publish a card canvas, place it with the layouts and anchors and update its data as in Write live values.