# Laundry room card

> Canonical HTML: https://screenrig.ai/docs/cards/laundry-room/

Washers and dryers free in each residence hall's laundry room, with minutes left in every running machine and a note when none are free.

Category: Schools. Tags: Schools and campuses, Queues and waits.

## Previews

![Laundry room](/cards/laundry-room/v1/screenshots/canvas-bloom.webp?sha=2e5102e099715432ac7062fa2f34afc106627df748e9d3d8b31b8cda3c611530)

Canvas

![Laundry room](/cards/laundry-room/v1/screenshots/corner-bloom.webp?sha=d2cab81bbfbcc33a9516dff55db0a1660b6a0f0eee26d7a1e2c8d7468e126ac9)

Corner

![Laundry room](/cards/laundry-room/v1/screenshots/chip-bloom.webp?sha=6b9c4243b6200b6c7ddf7e4f94d190b7d854e14e825c1c336e23f49ec99777e8)

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

Feed: `screenrig.laundry/v1`.

Feed documents carry source attribution. The Player supplies the feed to the card.

## 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 | `"Laundry"` | maxLength: `40` |  |
| `showMinutes` | boolean | `true` |  | Minutes left inside a running machine when the machine is big enough. |
| `staleMinutes` | integer | `15` | minimum: `1`; maximum: `1440` |  |
| `hour12` | boolean | `false` |  |  |
| `timeZone` | string, null | `null` |  |  |

### Dynamic properties

| Name | Type | Default | Values and limits | Description |
| --- | --- | --- | --- | --- |
| `rooms` | array | `[]` | minItems: `0`; maxItems: `6` | Laundry rooms with their machines. A feed (screenrig.laundry/v1) wins when present; the data store supplies the same rows otherwise. |
| `rooms[].name` | string |  | minLength: `1`; maxLength: `40`; Required |  |
| `rooms[].building` | string |  | maxLength: `40` |  |
| `rooms[].machines` | array |  | maxItems: `60`; Required |  |
| `rooms[].machines[].kind` | string |  | `"washer"`, `"dryer"`; Required |  |
| `rooms[].machines[].status` | string |  | `"free"`, `"running"`, `"done"`, `"out"`, `"offline"`; Required | free: ready to use. running: in a cycle. done: the cycle finished, clothes still inside. out: out of order. offline: no reading. |
| `rooms[].machines[].minutesLeft` | number |  | minimum: `0`; maximum: `600` |  |
| `updated` | string | `""` | maxLength: `32` | When the readings were taken, ISO 8601 (data store only; a feed carries fetchedAt). |

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