Category: People. Tags: Offices and workplaces, Schedules, Healthcare, Factories and warehouses.
Previews



Views and forms
Views: canvas, corner, chip. Canvas forms: landscape, portrait, square, strip.
Card views, themes and publishing. Browse the gallery.
Data and privacy
This card uses its configured properties and live card data.
Properties
For theme, background, accent and position, see Common properties.
Set static properties in params. Bind data to a project card data key for live values; that document holds only dynamic properties. Without a data key, put the complete configuration in params. Nested rows describe the contents of their parent property.
Static properties
| Name | Type | Default | Values and limits | Description |
|---|---|---|---|---|
title | string | "Who's on" | maxLength: 40 | |
lookaheadHours | integer | 12 | minimum: 1; maximum: 48 | How far ahead a shift counts as next. |
hour12 | boolean | false |
Dynamic properties
| Name | Type | Default | Values and limits | Description |
|---|---|---|---|---|
people | array | [] | minItems: 0; maxItems: 24 | |
people[].name | string | minLength: 1; maxLength: 60; Required | ||
people[].role | string | "" | maxLength: 50 | |
people[].note | string | "" | maxLength: 40 | A place or a number after the role: a station, a ward, an extension. |
people[].start | string | maxLength: 8; Required | Shift start in the screen's time zone: 07:00 or 7:00 AM. | |
people[].end | string | maxLength: 8; Required | Shift end. Earlier than the start means the shift runs past midnight; equal to the start means 24 hours. | |
people[].days | array | [] | maxItems: 7 | The days the shift starts on. Left out or empty, every day. |
footnote | string | "" | maxLength: 120 |
Canvas example
Add this item to a playlist page’s primitives. Publish the playlist and assign a screen.
{
"id": "whos-on",
"primitive": "card",
"card": "whos-on",
"major": 1,
"params": {
"theme": "neomustard"
},
"rect": {
"x": 0,
"y": 0,
"width": 1920,
"height": 1080
},
"layer": 0,
"content_fit": "fill",
"data": "whos-on-main"
}
Write live data
Create this document before showing the card, then replace it to update the screen without republishing. Use the same project as the playlist. Supply your API authorization through the environment; see API authentication.
curl --request PUT "https://api.screenrig.ai/api/card-data/whos-on-main" \
--header "Authorization: Bearer $SCREENRIG_TOKEN" \
--header "ScreenRig-Project: $SCREENRIG_PROJECT" \
--header "Content-Type: application/json" \
--data '{"document":{"people":[],"footnote":""}}'