Public alerts card

Active public alerts for an area, most severe first, in the theme's safety colours; calm when there are none.

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

Previews

Public alerts
Canvas
Public alerts
Corner
Public alerts
Chip

Views and forms

Views: canvas, corner, chip. Canvas forms: landscape, portrait.

Card views, themes and publishing. Browse the gallery.

Data and privacy

Feed: screenrig.alerts/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""maxLength: 60Empty reads "Public alerts".
minSeveritystring"moderate""extreme", "severe", "moderate", "minor"
hour12booleanfalse
timeZonestring, nullnullIANA zone; null uses the screen's zone.
locationobjectadditionalProperties: falsePlace the alerts are for. Selects the feed.
location.namestringmaxLength: 40; Required
location.latitudenumberminimum: -90; maximum: 90; Required
location.longitudenumberminimum: -180; maximum: 180; Required

Dynamic properties

This card has no dynamic properties.

Canvas example

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

{
  "id": "alerts",
  "primitive": "card",
  "card": "alerts",
  "major": 1,
  "params": {
    "theme": "neomustard",
    "location": {
      "name": "Vancouver",
      "latitude": 49.25,
      "longitude": -123.0
    }
  },
  "rect": {
    "x": 0,
    "y": 0,
    "width": 1920,
    "height": 1080
  },
  "layer": 0,
  "content_fit": "fill"
}