UV index card

The UV index now on a WHO-colour dial, today's curve with its peak and the window to seek shade, minutes to burn by skin type and SPF advice. A clear-sky estimate from the sun's height when there is no feed.

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, Healthcare, Schools and campuses.

Data and privacy

Feed: screenrig.weather/v1.

Feed documents carry source attribution. The Player supplies the feed to the card.

Weather attribution: Weather data by Weatherbit, as named in the feed document.

Properties

For theme, background, accent, colour overrides and position, see Common properties.

Static properties

NameTypeDefaultValues and limitsDescription
titlestring"UV index"maxLength: 30The header when the location has no name.
locationobject, nullnulladditionalProperties: falseWhere the UV is for. With no feed the card computes a clear-sky estimate for this place.
location.namestringmaxLength: 40; Required
location.latitudenumberminimum: -90; maximum: 90; Required
location.longitudenumberminimum: -180; maximum: 180; Required
hour12booleanfalse
timeZonestring, nullnull

Dynamic properties

NameTypeDefaultValues and limitsDescription
uvIndexnumber, nullnullminimum: 0; maximum: 20A UV reading set by staff. It scales the day's curve and wins over the estimate; the weather feed wins over it.

Example params

{
  "theme": "neomustard",
  "location": {
    "name": "Vancouver",
    "latitude": 49.25,
    "longitude": -123.0
  }
}
screenrig card create --type uv-index --major 1 --file params.json --context-file context.md

Example data

{
  "uvIndex": null
}

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.