Public alerts card

Active alerts for a place from official feeds, most severe first, in the theme's safety colours.

The screen shows active public alerts for a place from the official alert feeds, with the most severe first in the theme's safety colours to read clearly from across a room. It fills the whole screen, fits any rectangle, sits in the middle, tucks into a corner as a small square or one line, or runs as a band along an edge. You set the place, the lowest severity to show, which events to include or leave out, and your preferred language. You choose whether the card shows only while an alert applies or stays with a calm status, and how the time reads.

Live card

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

Category: Public information. Tags: Alerts and status, Weather and environment.

Data and privacy

Feed: screenrig.cap/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""maxLength: 60Empty reads "Public alerts".
presencestring"active""active", "always"active shows the card only while an alert at or above minSeverity applies. always keeps a calm status when none does: no active alerts, not updated since, no alert source for this location.
minSeveritystring"moderate""minor", "moderate", "severe", "extreme"Hide alerts below this severity. An alert with no stated severity reads as minor.
eventsarray[]maxItems: 30Only these events (case-insensitive; * matches any run of characters).
excludeEventsarray[]maxItems: 30Never these events.
languagesarray[]maxItems: 30Language preference, first wins (fr, fr-CA, en). An alert in none of them shows its first language.
hourCyclestring"24""12", "24", "military"12: 2:05 PM. 24: 14:05. military: 1405.
timeZonestring, nullnullIANA zone; null uses the screen's zone.
staleMinutesinteger30minimum: 10; maximum: 1440A document not refreshed for this long reads as not updated, whatever its state says.
locationobjectadditionalProperties: falsePlace the alerts are for. Its coordinates select the official alert feeds that cover it; alerts whose area holds this point show.
location.namestringmaxLength: 40
location.latitudenumberminimum: -90; maximum: 90; Required
location.longitudenumberminimum: -180; maximum: 180; Required
location.geocodesarray[]maxItems: 40Area codes of the place, matched against alerts that name their area by code: [{"name": "UGC", "value": "WAC033"}].
location.geocodes[].namestringminLength: 1; maxLength: 40; RequiredThe code system: SAME, UGC, NUTS3, EMMA_ID.
location.geocodes[].valuestringminLength: 1; maxLength: 120; Required

Dynamic properties

This card has no dynamic properties.

Example params

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

Layouts

This core card fits every layout: full screen, center, wide, corner, chip, strip, or any free rectangle.

Layouts: full, free, center, wide, corner, chip, strip. Forms: landscape, portrait, square, strip.

Use this card

Add this card to a playlist as in Publish a card canvas and place it with the layouts and anchors.