Outdoor Safety: Lightning & Heat card

For people outdoors, supplied lightning and heat at a glance: a 30-minute all-clear countdown, a nearby-lightning watch and the WBGT heat level, filling the screen while lightning is in range.

Built around the existing range, all-clear timer and WBGT rules, it presents supplied lightning and heat conditions. During Primetime, warnings stay immediately readable, with slow danger/watch outlines and quiet cues for an update or a fresh all-clear. A stale lightning reading never becomes an all-clear announcement.

Live card

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

Category: Weather. Tags: Alerts and status, Weather and environment, Countdowns and timers.

Data and privacy

Feed: screenrig.outdoorsafety/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"Outdoor safety"maxLength: 40
sitestring""maxLength: 60The venue's name, when the feed carries none.
locationobjectadditionalProperties: falseWhere the heat is for: the weather at this place gives an estimated WBGT, which replaces the readings in the data store. Empty uses the data store's readings. {screen.location} takes the screen's own place.
location.namestringmaxLength: 40; Required
location.latitudenumberminimum: -90; maximum: 90; Required
location.longitudenumberminimum: -180; maximum: 180; Required
showstring"both""both", "lightning", "heat"Which hazards the card covers.
unitsstring"metric""metric", "imperial"Kilometres and degrees Celsius, or miles and degrees Fahrenheit.
radiusKmnumber16minimum: 1; maximum: 100Lightning range in kilometres: a strike inside it suspends outdoor activity (16 km is 10 miles).
watchKmnumber32minimum: 1; maximum: 200Strikes outside the range but inside this distance read Lightning nearby.
clearMinutesinteger30minimum: 5; maximum: 120Minutes without a strike in range before the all-clear.
takeoverbooleantrueFill the whole screen while lightning is in range.
wbgtLevelsarray[25.6,27.8,30,32.2]minItems: 4; maxItems: 4The WBGT values in degrees Celsius where the level rises from low to moderate, high, very high and extreme.
staleMinutesinteger10minimum: 1; maximum: 1440Readings older than this show as out of date; lightning data this old never reads All clear.
hour12booleanfalse

Dynamic properties

NameTypeDefaultValues and limitsDescription
strikesarray[]minItems: 0; maxItems: 200Recent strikes, an empty list meaning none. A feed (screenrig.outdoorsafety/v1) with a strikes list wins when present; the data store supplies the same rows otherwise, and when the feed says lightning is not reported.
strikes[].atstringmaxLength: 32; RequiredWhen the strike hit, ISO 8601.
strikes[].distanceKmnumberminimum: 0; maximum: 1000Distance from the site; a strike without one counts as in range.
lastStrikeAtstring""maxLength: 32The last strike in range, ISO 8601: the quick way to start the countdown by hand.
strikeDistanceKmnumber0minimum: 0; maximum: 1000How far that strike was, in kilometres. 0 means in range.
wbgtCnumber0minimum: 0; maximum: 50The WBGT reading in degrees Celsius. 0 means no reading.
temperatureCnumber0minimum: 0; maximum: 60Air temperature in degrees Celsius; with humidity it estimates WBGT when there is no reading. 0 means none.
humidityPctnumber0minimum: 0; maximum: 100Relative humidity in percent. 0 means none.
updatedstring""maxLength: 32When the readings were made, ISO 8601 (data store only; a feed carries observedAt or fetchedAt). A set value marks lightning as reported.

Example params

{
  "theme": "neomustard",
  "location": {
    "name": "Vancouver",
    "latitude": 49.25,
    "longitude": -123.0
  }
}
screenrig card create --type outdoor-safety --major 1 --file params.json --context-file context.md

Example data

{
  "strikes": [],
  "lastStrikeAt": "",
  "strikeDistanceKm": 0,
  "wbgtC": 0,
  "temperatureC": 0,
  "humidityPct": 0,
  "updated": ""
}

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.