Air quality card

The index as a big numeral with its category, a plain sentence, a marked scale, and the UV index.

The screen shows one big air quality number with its category word, one plain sentence, a scale with a marker at the reading, and the UV index beside it, sized to read from across a room. It fills the screen, sits in the middle, tucks into a corner, runs as one line, or stretches as a band along an edge. You choose the place for the readings, a title or the place name, whether to show the UV index beside it, how the reading time is written, and whether it stays always or shows only above a level you set.

Live card

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

Category: Weather. Tags: Weather and environment, Numbers and metrics.

Data and privacy

Feed: screenrig.airquality/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""maxLength: 40Empty uses the location name.
showUvbooleantrueShow the UV index beside the air quality index. With no air quality reading, the UV index is the hero.
hourCyclestring"24""12", "24", "military"How the time of the reading is written: 12 hour with AM or PM, 24 hour (13:00), or military (1300).
timeZonestring, nullnull
presencestring"always""always", "unhealthy"always: the card is always shown. unhealthy: only while the air quality index is above presenceFrom (a stale or missing reading keeps it shown).
presenceFrominteger100minimum: 0; maximum: 500With presence unhealthy, the index above which the card is shown (100: from unhealthy for sensitive groups).
locationobjectadditionalProperties: falsePlace the readings 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.

Example params

{
  "theme": "neomustard",
  "location": {
    "name": "Vancouver",
    "latitude": 49.25,
    "longitude": -123.0
  }
}
screenrig card create --type air-quality --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.