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
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
| Name | Type | Default | Values and limits | Description |
|---|---|---|---|---|
title | string | "Outdoor safety" | maxLength: 40 | |
site | string | "" | maxLength: 60 | The venue's name, when the feed carries none. |
location | object | additionalProperties: false | Where 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.name | string | maxLength: 40; Required | ||
location.latitude | number | minimum: -90; maximum: 90; Required | ||
location.longitude | number | minimum: -180; maximum: 180; Required | ||
show | string | "both" | "both", "lightning", "heat" | Which hazards the card covers. |
units | string | "metric" | "metric", "imperial" | Kilometres and degrees Celsius, or miles and degrees Fahrenheit. |
radiusKm | number | 16 | minimum: 1; maximum: 100 | Lightning range in kilometres: a strike inside it suspends outdoor activity (16 km is 10 miles). |
watchKm | number | 32 | minimum: 1; maximum: 200 | Strikes outside the range but inside this distance read Lightning nearby. |
clearMinutes | integer | 30 | minimum: 5; maximum: 120 | Minutes without a strike in range before the all-clear. |
takeover | boolean | true | Fill the whole screen while lightning is in range. | |
wbgtLevels | array | [25.6,27.8,30,32.2] | minItems: 4; maxItems: 4 | The WBGT values in degrees Celsius where the level rises from low to moderate, high, very high and extreme. |
staleMinutes | integer | 10 | minimum: 1; maximum: 1440 | Readings older than this show as out of date; lightning data this old never reads All clear. |
hour12 | boolean | false |
Dynamic properties
| Name | Type | Default | Values and limits | Description |
|---|---|---|---|---|
strikes | array | [] | minItems: 0; maxItems: 200 | Recent 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[].at | string | maxLength: 32; Required | When the strike hit, ISO 8601. | |
strikes[].distanceKm | number | minimum: 0; maximum: 1000 | Distance from the site; a strike without one counts as in range. | |
lastStrikeAt | string | "" | maxLength: 32 | The last strike in range, ISO 8601: the quick way to start the countdown by hand. |
strikeDistanceKm | number | 0 | minimum: 0; maximum: 1000 | How far that strike was, in kilometres. 0 means in range. |
wbgtC | number | 0 | minimum: 0; maximum: 50 | The WBGT reading in degrees Celsius. 0 means no reading. |
temperatureC | number | 0 | minimum: 0; maximum: 60 | Air temperature in degrees Celsius; with humidity it estimates WBGT when there is no reading. 0 means none. |
humidityPct | number | 0 | minimum: 0; maximum: 100 | Relative humidity in percent. 0 means none. |
updated | string | "" | maxLength: 32 | When 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.