Live card
Category: Schools. Tags: Schools and campuses, Charts and gauges, Numbers and metrics.
Data and privacy
This card uses its configured properties and live card data.
Counts only, never names.
Properties
For theme, background, accent, colour overrides and position, see Common properties.
Static properties
| Name | Type | Default | Values and limits | Description |
|---|---|---|---|---|
goal | integer | 95 | minimum: 1; maximum: 100 | The attendance percentage a class or the school reaches to count as on track. |
showDate | boolean | true | ||
hour12 | boolean | false | ||
timeZone | string, null | null |
Dynamic properties
| Name | Type | Default | Values and limits | Description |
|---|---|---|---|---|
title | string | "Attendance today" | maxLength: 40 | |
classes | array | [] | minItems: 0; maxItems: 16 | Today's attendance by class: how many are here of how many are enrolled. A class that has not reported yet leaves present out. Counts only, never names. |
classes[].name | string | minLength: 1; maxLength: 28; Required | ||
classes[].enrolled | integer | minimum: 1; maximum: 9999; Required | ||
classes[].present | integer | minimum: 0; maximum: 9999 | Here today. Absent: the class has not reported yet. | |
classes[].streak | integer | 0 | minimum: 0; maximum: 999 | Days in a row at or above the goal. |
classes[].reportedAt | string | "" | maxLength: 40 | The instant this class's count last changed, ISO 8601. Primetime plays a class's 100 percent moment from it. |
classes[].prevPresent | integer | minimum: 0; maximum: 9999 | Here before the change; the moment's ring fills from it. | |
schoolStreak | integer | 0 | minimum: 0; maximum: 999 | Days in a row the whole school was at or above the goal. |
takenAt | string | "" | maxLength: 40 | ISO 8601 instant attendance was taken. Empty shows no time. |
schoolMetAt | string | "" | maxLength: 40 | The instant the whole school reached its goal, ISO 8601. Primetime plays its GOAL MET moment from it, on every screen at once. |
Example params
{
"theme": "neomustard"
}
screenrig card create --type attendance --major 1 --file params.json --context-file context.md
Example data
{
"title": "Attendance today",
"classes": [],
"schoolStreak": 0,
"takenAt": "",
"schoolMetAt": ""
}
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.