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
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
| Name | Type | Default | Values and limits | Description |
|---|---|---|---|---|
title | string | "" | maxLength: 60 | Empty reads "Public alerts". |
presence | string | "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. |
minSeverity | string | "moderate" | "minor", "moderate", "severe", "extreme" | Hide alerts below this severity. An alert with no stated severity reads as minor. |
events | array | [] | maxItems: 30 | Only these events (case-insensitive; * matches any run of characters). |
excludeEvents | array | [] | maxItems: 30 | Never these events. |
languages | array | [] | maxItems: 30 | Language preference, first wins (fr, fr-CA, en). An alert in none of them shows its first language. |
hourCycle | string | "24" | "12", "24", "military" | 12: 2:05 PM. 24: 14:05. military: 1405. |
timeZone | string, null | null | IANA zone; null uses the screen's zone. | |
staleMinutes | integer | 30 | minimum: 10; maximum: 1440 | A document not refreshed for this long reads as not updated, whatever its state says. |
location | object | additionalProperties: false | Place the alerts are for. Its coordinates select the official alert feeds that cover it; alerts whose area holds this point show. | |
location.name | string | maxLength: 40 | ||
location.latitude | number | minimum: -90; maximum: 90; Required | ||
location.longitude | number | minimum: -180; maximum: 180; Required | ||
location.geocodes | array | [] | maxItems: 40 | Area codes of the place, matched against alerts that name their area by code: [{"name": "UGC", "value": "WAC033"}]. |
location.geocodes[].name | string | minLength: 1; maxLength: 40; Required | The code system: SAME, UGC, NUTS3, EMMA_ID. | |
location.geocodes[].value | string | minLength: 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.