Live card
Category: Schools. Tags: Schools and campuses, Leaderboards and standings, Charts and gauges, Recognition.
Data and privacy
This card uses its configured properties and live card data.
An award names a house, never a student.
Properties
For theme, background, accent, colour overrides and position, see Common properties.
Static properties
| Name | Type | Default | Values and limits | Description |
|---|---|---|---|---|
title | string | "House points" | maxLength: 40 | |
awardCount | integer | 5 | minimum: 1; maximum: 8 | How many recent awards the full layout lists. |
hour12 | boolean | true |
Dynamic properties
| Name | Type | Default | Values and limits | Description |
|---|---|---|---|---|
houses | array | [] | minItems: 0; maxItems: 8 | The houses and their point totals. Rank, bar heights and the leader come from the totals. |
houses[].name | string | minLength: 1; maxLength: 24; Required | ||
houses[].points | integer | minimum: 0; maximum: 999999; Required | ||
houses[].color | string | pattern: "^#[0-9A-Fa-f]{6}$" | The house colour as #RRGGBB. Absent, the house takes a colour from the theme. | |
awards | array | [] | minItems: 0; maxItems: 40 | Recent awards, newest first by time. An award names a house, never a student. |
awards[].house | string | minLength: 1; maxLength: 24; Required | A house name from houses. | |
awards[].points | integer | minimum: 1; maximum: 999; Required | ||
awards[].reason | string | "" | maxLength: 80 | Why the points were given, for example Helping a new friend. |
awards[].at | string | "" | maxLength: 40 | ISO 8601 instant of the award. |
Example params
{
"theme": "neomustard"
}
screenrig card create --type house-points --major 1 --file params.json --context-file context.md
Example data
{
"houses": [],
"awards": []
}
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.