# Wait times card

> Canonical HTML: https://screenrig.ai/docs/cards/wait-times/

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](/cards/wait-times/v1/screenshots/canvas-bloom.webp?sha=db1a68b91a19d1a6e85a8d59b6bea9ad63164f2f5a80c0c9fce143e5258da658)

Canvas

![Wait times](/cards/wait-times/v1/screenshots/corner-bloom.webp?sha=c5121bae341fb14993fb74690a3a7c7c0953d3d0eaae82cbd836834f2ea84346)

Corner

![Wait times](/cards/wait-times/v1/screenshots/chip-bloom.webp?sha=8fcb177ff85162fd707f9def087aebfc1f34d3865ee45c1184dc9061f382145c)

Chip

## Views and forms

Views: canvas, corner, chip. Canvas forms: landscape, portrait, square, strip.

[Card views, themes and publishing](/docs/cards/). [Browse the gallery](/apps/#cards).

## Data and privacy

This card uses its configured properties and live card data.

## Properties

For theme, background, accent and position, see [Common properties](/docs/cards/#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 | `"Wait times"` | maxLength: `40` |  |
| `order` | string | `"listed"` | `"listed"`, `"shortest"`, `"longest"`, `"name"` | listed: as given. shortest or longest wait first, closed and unknown lines last. name: A to Z. |
| `moderateFrom` | integer | `15` | minimum: `1`; maximum: `500` | Minutes at which a wait stops being short. |
| `longFrom` | integer | `30` | minimum: `2`; maximum: `500` | Minutes at which a wait is long (always above moderateFrom). |
| `scaleMinutes` | integer | `60` | minimum: `10`; maximum: `480` | The wait that fills a bar. |

### Dynamic properties

| Name | Type | Default | Values and limits | Description |
| --- | --- | --- | --- | --- |
| `lines` | array | `[]` | minItems: `0`; maxItems: `12` |  |
| `lines[].name` | string |  | minLength: `1`; maxLength: `40`; Required |  |
| `lines[].minutes` | integer |  | minimum: `0`; maximum: `999` | The estimated wait. 0 reads as no wait; left out, the line shows a dash. |
| `lines[].closed` | boolean | `false` |  |  |
| `lines[].note` | string | `""` | maxLength: `40` | A line under the name: a location, a lane, a reason. |
| `footnote` | string | `""` | maxLength: `120` |  |

## Canvas example

Add this item to a playlist page’s `primitives`. [Publish the playlist and assign a screen](/docs/cards/#publish-a-card-canvas).

```json
{
  "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](/docs/authentication/).

```console
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":""}}'
```
