Live card
Category: Operations. Tags: Wayfinding and directories, Numbers and metrics, Offices and workplaces, Transit and travel.
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
| Name | Type | Default | Values and limits | Description |
|---|---|---|---|---|
title | string | "Availability" | maxLength: 40 | |
order | string | "listed" | "listed", "most-free", "least-free", "name" | listed: as given. most-free or least-free by the free count, closed and unknown last. name: A to Z. |
lowPercent | integer | 20 | minimum: 1; maximum: 99 | Below this share free, a tile reads filling up. |
freeWord | string | "free" | minLength: 1; maxLength: 12 | The word after the count: free, open, available, vacant. |
Dynamic properties
| Name | Type | Default | Values and limits | Description |
|---|---|---|---|---|
items | array | [] | minItems: 0; maxItems: 12 | |
items[].name | string | minLength: 1; maxLength: 40; Required | ||
items[].free | integer | minimum: 0; maximum: 99999 | How many are free now. Left out, the tile shows a dash. Never more than total when total is set. | |
items[].total | integer | 0 | minimum: 0; maximum: 99999 | The capacity. 0 or left out shows the free count alone, with no bar. |
items[].closed | boolean | false | ||
items[].note | string | "" | maxLength: 40 | A line under the name: a zone, a floor, a reason. |
items[].since | string | "" | maxLength: 32 | When this count last changed (ISO 8601 with an offset). Primetime anchors the change's moment to it, so every screen shows it together. |
items[].was | integer | minimum: 0; maximum: 99999 | The free count before that change. With since, a tile that has just gone full flips to FULL, and other counts roll up or down. | |
footnote | string | "" | maxLength: 120 |
Example params
{
"theme": "neomustard"
}
screenrig card create --type availability --major 1 --file params.json --context-file context.md
Example data
{
"items": [],
"footnote": ""
}
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.