Wait times card

Each service line with its estimated wait as a bar and a number coloured by length: short, moderate or long.

Each service line shows its estimated wait as a number and a bar, both coloured for short, moderate or long so the length reads at a glance. It fills the screen, stretches to any rectangle, sits in the middle, tucks into a corner, runs as one line or as a band along an edge. You set the service lines, the order by shortest or longest first or by name, the minutes where a wait turns moderate and long, the wait that fills a bar, and the line shown in the corner and as one line.

Live card

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

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

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"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.
focusstring"rotate""rotate", "shortest", "longest", "first"Which line the corner and the chip show: rotate through them on the wall clock, the shortest wait, the longest, or the first listed. Any other than rotate also makes the center a single line.
presencestring"always""always", "long"long: the card shows only while a line is at or above longFrom.
hourCyclestring"12""12", "24", "military"How the update time is written: 2:05 PM, 14:05 or 1405.

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.
lines[].shortstring""maxLength: 14A shorter name for the chip, the corner and the strip.
lines[].previousintegerminimum: 0; maximum: 999The wait before it changed. With updatedAt, the numeral counts from it to the new wait on every screen together.
footnotestring""maxLength: 120
updatedAtstring""maxLength: 40ISO instant the estimates changed. With a line's previous, the numerals count and the bars ease from it.

Example params

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

Example data

{
  "lines": [],
  "footnote": "",
  "updatedAt": ""
}

Layouts

This core card fits every layout: full screen, center, wide, corner, chip, strip, or any free rectangle.

Layouts: full, free, center, wide, corner, chip, strip. Forms: landscape, portrait, square, strip.

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.