Recess Call card

Outdoor or indoor status reads at a glance from feels-like temperature, wind, rain, and air quality.

The call follows the supplied conditions and configured limits. An office override can set indoor or outdoor recess with a note; the four checks remain visible beneath it.

Live card

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

Category: Schools. Tags: Schools and campuses, Weather and environment.

Data and privacy

Feed: screenrig.recess/v1.

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

Properties

For theme, background, accent, colour overrides and position, see Common properties.

Static properties

NameTypeDefaultValues and limitsDescription
titlestring"Recess call"maxLength: 40
schoolstring""maxLength: 60Shown beside the title. A feed's place name fills it when empty.
unitsstring"metric""metric", "imperial"Temperatures, wind and rain on screen. The limits below stay in metric.
minFeelsLikeCnumber-15minimum: -50; maximum: 10Recess moves indoors when it feels this cold or colder (wind chill included), in degrees Celsius.
maxFeelsLikeCnumber32minimum: 20; maximum: 55Recess moves indoors when it feels this hot or hotter, in degrees Celsius.
maxWindKphnumber50minimum: 15; maximum: 120Recess moves indoors at this wind speed, or at gusts of 1.4 times it, in km/h.
maxAqiinteger100minimum: 50; maximum: 300Recess moves indoors when the US air quality index is above this.
staleMinutesinteger90minimum: 10; maximum: 1440
hour12booleanfalse
timeZonestring, nullnull

Dynamic properties

NameTypeDefaultValues and limitsDescription
currentobject, nullnulladditionalProperties: falseThe conditions now, from the data store. A feed (screenrig.recess/v1) wins when present.
current.temperatureCnumberminimum: -80; maximum: 60
current.apparentCnumberminimum: -90; maximum: 70Feels like. Without it the card works out the wind chill from the temperature and wind.
current.windKphnumberminimum: 0; maximum: 400
current.gustKphnumberminimum: 0; maximum: 500
current.conditionstring"clear", "partly-cloudy", "cloudy", "fog", "drizzle", "rain", "heavy-rain", "snow", "sleet", "thunderstorm", "wind"
current.precipitationMmnumberminimum: 0; maximum: 500Rain or melted snow in the last hour.
aqinumber, nullnullminimum: 0; maximum: 1000US air quality index from the data store.
observedAtstring""maxLength: 32When the conditions were read, ISO 8601 (data store only; a feed carries observedAt).
outlookarray[]minItems: 0; maxItems: 12The next hours, from the data store. A feed's outlook wins when present.
outlook[].atstringmaxLength: 32; Required
outlook[].apparentCnumberminimum: -90; maximum: 70
outlook[].temperatureCnumberminimum: -80; maximum: 60
outlook[].windKphnumberminimum: 0; maximum: 400
outlook[].conditionstring"clear", "partly-cloudy", "cloudy", "fog", "drizzle", "rain", "heavy-rain", "snow", "sleet", "thunderstorm", "wind"
outlook[].precipitationPctnumberminimum: 0; maximum: 100
overridestring"auto""auto", "outdoor", "indoor"The office's call. auto follows the conditions.
notestring""maxLength: 80Why the office made the call. Shown under the verdict when override is not auto.

Example params

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

Example data

{
  "current": null,
  "aqi": null,
  "observedAt": "",
  "outlook": [],
  "override": "auto",
  "note": ""
}

Layouts

This fullscreen card fills the whole screen in landscape or portrait and is not placed as a corner, chip, or strip.

Layouts: full. Forms: landscape, portrait.

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.