Conditions report card

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
Canvas
Conditions report
Corner
Conditions report
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"Conditions"maxLength: 40
openLabelstring"open"maxLength: 16The word after the count: open, playable, swimmable.
pageSecondsinteger10minimum: 4; maximum: 60When the groups do not fit, the seconds each page stays up.
hour12booleanfalse

Dynamic properties

NameTypeDefaultValues and limitsDescription
summarystring""maxLength: 120The headline: Powder day, 24 cm new.
updatedstring""maxLength: 32When the report was made, ISO 8601.
factsarray[]minItems: 0; maxItems: 6The day's readings: Base 142 cm, Water 28°.
facts[].labelstringminLength: 1; maxLength: 24; Required
facts[].valuestringminLength: 1; maxLength: 16; Required
facts[].detailstring""maxLength: 24
groupsarray[]minItems: 0; maxItems: 8
groups[].namestringminLength: 1; maxLength: 120; Required
groups[].itemsarrayminItems: 0; maxItems: 40; Required
groups[].items[].namestringminLength: 1; maxLength: 120; Required
groups[].items[].statusstring"open""open", "limited", "hold", "scheduled", "closed"
groups[].items[].notestring""maxLength: 80A line beside the name: Groomed, Expected 10:30, Wait 5 min.
alertstring""maxLength: 160A notice for everyone, shown in a band: Lightning in the area.
footnotestring""maxLength: 160

Canvas example

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

{
  "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.

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