Respiratory activity card

Local flu, COVID-19 and RSV activity levels, each with its trend and recent weeks.

Separate local levels are shown for flu, COVID-19 and RSV. Each level is paired with its trend and recent weeks.

Live card

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

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

NameTypeDefaultValues and limitsDescription
titlestring"Respiratory activity"maxLength: 40
countrystring"""", "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.
staleMinutesinteger2880minimum: 1; maximum: 20160A feed older than this shows how long ago it updated.
timeZonestring, nullnullIANA zone; null uses the screen's zone.

Dynamic properties

NameTypeDefaultValues and limitsDescription
regionstring""maxLength: 48Place 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.
weekEndingstring""maxLength: 32Date the levels run to; the feed's wins.
virusesarray[]minItems: 0; maxItems: 6Viruses, the same document as the screenrig.respiratory/v1 feed's viruses. The feed wins when present.
viruses[].kindstringminLength: 1; maxLength: 24; Requiredflu, covid or rsv; any other value shows as its own name.
viruses[].namestring""maxLength: 24Shown instead of the standard name.
viruses[].levelstring, integer""very low, low, moderate, high or very high (or 1 to 5).
viruses[].trendstring"""rising", "steady", "falling", ""
viruses[].seriesarray[]maxItems: 26Weekly values, oldest first.
footnotestring""maxLength: 140Advice under the board; the feed's advice shows when this is empty.
updatedAtstring""maxLength: 64Optional 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.