Separate local levels are shown for flu, COVID-19 and RSV. Each level is paired with its trend and recent weeks.
Live card
Category: Health. Tags: Healthcare, Charts and gauges, Numbers and metrics.
Data and privacy
Feed: screenrig.respiratory/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 | "Respiratory activity" | maxLength: 40 | |
country | string | "" | "", "us", "gb" | The health agency whose weekly levels fill the board: us (CDC) or gb (UKHSA, England). Empty shows the viruses supplied in the data store. |
staleMinutes | integer | 2880 | minimum: 1; maximum: 20160 | A feed older than this shows how long ago it updated. |
timeZone | string, null | null | IANA zone; null uses the screen's zone. |
Dynamic properties
| Name | Type | Default | Values and limits | Description |
|---|---|---|---|---|
region | string | "" | maxLength: 48 | Place the levels describe; the feed's region wins. With a country it also picks the region the feed reads: a US state, territory or DC by name or postal code, or England or a UKHSA region. Empty is the nation. |
weekEnding | string | "" | maxLength: 32 | Date the levels run to; the feed's wins. |
viruses | array | [] | minItems: 0; maxItems: 6 | Viruses, the same document as the screenrig.respiratory/v1 feed's viruses. The feed wins when present. |
viruses[].kind | string | minLength: 1; maxLength: 24; Required | flu, covid or rsv; any other value shows as its own name. | |
viruses[].name | string | "" | maxLength: 24 | Shown instead of the standard name. |
viruses[].level | string, integer | "" | very low, low, moderate, high or very high (or 1 to 5). | |
viruses[].trend | string | "" | "rising", "steady", "falling", "" | |
viruses[].series | array | [] | maxItems: 26 | Weekly values, oldest first. |
footnote | string | "" | maxLength: 140 | Advice under the board; the feed's advice shows when this is empty. |
updatedAt | string | "" | maxLength: 64 | Optional supplied-data update instant; feed-backed cards use fetchedAt. |
Example params
{
"theme": "neomustard"
}
screenrig card create --type respiratory-activity --major 1 --file params.json --context-file context.md
Example data
{
"region": "",
"weekEnding": "",
"viruses": [],
"footnote": "",
"updatedAt": ""
}
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.