Who's on card

Who is on shift or on call right now, with time left in the shift, and who starts next.

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

Previews

Who's on
Canvas
Who's on
Corner
Who's on
Chip

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

NameTypeDefaultValues and limitsDescription
titlestring"Who's on"maxLength: 40
lookaheadHoursinteger12minimum: 1; maximum: 48How far ahead a shift counts as next.
hour12booleanfalse

Dynamic properties

NameTypeDefaultValues and limitsDescription
peoplearray[]minItems: 0; maxItems: 24
people[].namestringminLength: 1; maxLength: 60; Required
people[].rolestring""maxLength: 50
people[].notestring""maxLength: 40A place or a number after the role: a station, a ward, an extension.
people[].startstringmaxLength: 8; RequiredShift start in the screen's time zone: 07:00 or 7:00 AM.
people[].endstringmaxLength: 8; RequiredShift end. Earlier than the start means the shift runs past midnight; equal to the start means 24 hours.
people[].daysarray[]maxItems: 7The days the shift starts on. Left out or empty, every day.
footnotestring""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":""}}'