Live card
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
| Name | Type | Default | Values and limits | Description |
|---|---|---|---|---|
title | string | "UV index" | maxLength: 30 | The header when the location has no name. |
location | object, null | null | additionalProperties: false | Where the UV is for. With no feed the card computes a clear-sky estimate for this place. |
location.name | string | maxLength: 40; Required | ||
location.latitude | number | minimum: -90; maximum: 90; Required | ||
location.longitude | number | minimum: -180; maximum: 180; Required | ||
hour12 | boolean | false | ||
timeZone | string, null | null |
Dynamic properties
| Name | Type | Default | Values and limits | Description |
|---|---|---|---|---|
uvIndex | number, null | null | minimum: 0; maximum: 20 | A 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.