Recess call card

Outdoor or indoor recess at a glance, from the feels-like temperature, wind, rain and air quality, with the office's own call on top.

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

Previews

Recess call
Canvas
Recess call
Corner
Recess call
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

Feed: screenrig.recess/v1.

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

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

Canvas example

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

{
  "id": "recess-call",
  "primitive": "card",
  "card": "recess-call",
  "major": 1,
  "params": {
    "theme": "neomustard"
  },
  "rect": {
    "x": 0,
    "y": 0,
    "width": 1920,
    "height": 1080
  },
  "layer": 0,
  "content_fit": "fill",
  "data": "recess-call-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/recess-call-main" \
  --header "Authorization: Bearer $SCREENRIG_TOKEN" \
  --header "ScreenRig-Project: $SCREENRIG_PROJECT" \
  --header "Content-Type: application/json" \
  --data '{"document":{"current":null,"aqi":null,"observedAt":"","outlook":[],"override":"auto","note":""}}'