# Conditions report card

> Canonical HTML: https://screenrig.ai/docs/cards/conditions/

The state of a place at a glance: lifts, trails, pools, beaches or holes open, limited, on hold or closed, with a headline count and the day's key readings.

Category: Weather. Tags: Weather and environment, Transit and travel.

## Previews

![Conditions report](/cards/conditions/v1/screenshots/canvas-bloom.webp?sha=22a7ccb25124a2afc2bfb6f21180c773eb4f208b67b51b52dfd1d89d1171b128)

Canvas

![Conditions report](/cards/conditions/v1/screenshots/corner-bloom.webp?sha=5d6bb1eb8d0d920c80d41414b633e05c4042ad4d52aeb6cce7de4fbdec8f2771)

Corner

![Conditions report](/cards/conditions/v1/screenshots/chip-bloom.webp?sha=9f2a273a31c1bce4d1967c80430ebbe23b27cef7e9ef278c5ab9ca1d79bf3087)

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 | `"Conditions"` | maxLength: `40` |  |
| `openLabel` | string | `"open"` | maxLength: `16` | The word after the count: open, playable, swimmable. |
| `pageSeconds` | integer | `10` | minimum: `4`; maximum: `60` | When the groups do not fit, the seconds each page stays up. |
| `hour12` | boolean | `false` |  |  |

### Dynamic properties

| Name | Type | Default | Values and limits | Description |
| --- | --- | --- | --- | --- |
| `summary` | string | `""` | maxLength: `120` | The headline: Powder day, 24 cm new. |
| `updated` | string | `""` | maxLength: `32` | When the report was made, ISO 8601. |
| `facts` | array | `[]` | minItems: `0`; maxItems: `6` | The day's readings: Base 142 cm, Water 28°. |
| `facts[].label` | string |  | minLength: `1`; maxLength: `24`; Required |  |
| `facts[].value` | string |  | minLength: `1`; maxLength: `16`; Required |  |
| `facts[].detail` | string | `""` | maxLength: `24` |  |
| `groups` | array | `[]` | minItems: `0`; maxItems: `8` |  |
| `groups[].name` | string |  | minLength: `1`; maxLength: `120`; Required |  |
| `groups[].items` | array |  | minItems: `0`; maxItems: `40`; Required |  |
| `groups[].items[].name` | string |  | minLength: `1`; maxLength: `120`; Required |  |
| `groups[].items[].status` | string | `"open"` | `"open"`, `"limited"`, `"hold"`, `"scheduled"`, `"closed"` |  |
| `groups[].items[].note` | string | `""` | maxLength: `80` | A line beside the name: Groomed, Expected 10:30, Wait 5 min. |
| `alert` | string | `""` | maxLength: `160` | A notice for everyone, shown in a band: Lightning in the area. |
| `footnote` | string | `""` | maxLength: `160` |  |

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