# Public alerts card

> Canonical HTML: https://screenrig.ai/docs/cards/alerts/

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](/cards/alerts/v1/screenshots/canvas-bloom.webp?sha=79bc63c493243b071c349bf813e3b927fac999357a893527eca7e9bcbcd03dbb)

Canvas

![Public alerts](/cards/alerts/v1/screenshots/corner-bloom.webp?sha=d4166bdeaeb9ae21ce61a68929dd78a6144071a6eca91a0656680024c3b6b730)

Corner

![Public alerts](/cards/alerts/v1/screenshots/chip-bloom.webp?sha=a37f98938fa0778ff297b61905dbf11a188e647bba1da12992ee0287345bc1a1)

Chip

## Views and forms

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

[Card views, themes and publishing](/docs/cards/). [Browse the gallery](/apps/#cards).

## 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](/docs/cards/#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

| Name | Type | Default | Values and limits | Description |
| --- | --- | --- | --- | --- |
| `title` | string | `""` | maxLength: `60` | Empty reads "Public alerts". |
| `minSeverity` | string | `"moderate"` | `"extreme"`, `"severe"`, `"moderate"`, `"minor"` |  |
| `hour12` | boolean | `false` |  |  |
| `timeZone` | string, null | `null` |  | IANA zone; null uses the screen's zone. |
| `location` | object |  | additionalProperties: `false` | Place the alerts are for. Selects the feed. |
| `location.name` | string |  | maxLength: `40`; Required |  |
| `location.latitude` | number |  | minimum: `-90`; maximum: `90`; Required |  |
| `location.longitude` | number |  | minimum: `-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](/docs/cards/#publish-a-card-canvas).

```json
{
  "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"
}
```
