Wait times card

Estimated waits per service line, as bars and numbers coloured by length: short, moderate or long.

Category: Retail. Tags: Queues and waits, Healthcare, Restaurants and cafes, Stores, Charts and gauges.

Previews

Wait times
Canvas
Wait times
Corner
Wait times
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"Wait times"maxLength: 40
orderstring"listed""listed", "shortest", "longest", "name"listed: as given. shortest or longest wait first, closed and unknown lines last. name: A to Z.
moderateFrominteger15minimum: 1; maximum: 500Minutes at which a wait stops being short.
longFrominteger30minimum: 2; maximum: 500Minutes at which a wait is long (always above moderateFrom).
scaleMinutesinteger60minimum: 10; maximum: 480The wait that fills a bar.

Dynamic properties

NameTypeDefaultValues and limitsDescription
linesarray[]minItems: 0; maxItems: 12
lines[].namestringminLength: 1; maxLength: 40; Required
lines[].minutesintegerminimum: 0; maximum: 999The estimated wait. 0 reads as no wait; left out, the line shows a dash.
lines[].closedbooleanfalse
lines[].notestring""maxLength: 40A line under the name: a location, a lane, a reason.
footnotestring""maxLength: 120

Canvas example

Add this item to a playlist page’s primitives. Publish the playlist and assign a screen.

{
  "id": "wait-times",
  "primitive": "card",
  "card": "wait-times",
  "major": 1,
  "params": {
    "theme": "neomustard"
  },
  "rect": {
    "x": 0,
    "y": 0,
    "width": 1920,
    "height": 1080
  },
  "layer": 0,
  "content_fit": "fill",
  "data": "wait-times-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/wait-times-main" \
  --header "Authorization: Bearer $SCREENRIG_TOKEN" \
  --header "ScreenRig-Project: $SCREENRIG_PROJECT" \
  --header "Content-Type: application/json" \
  --data '{"document":{"lines":[],"footnote":""}}'