Attendance card

Today's attendance by class as rings, with the whole school together, classes at or above the goal marked, and positive streaks. Counts only, never names.

Live card

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

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

NameTypeDefaultValues and limitsDescription
goalinteger95minimum: 1; maximum: 100The attendance percentage a class or the school reaches to count as on track.
showDatebooleantrue
hour12booleanfalse
timeZonestring, nullnull

Dynamic properties

NameTypeDefaultValues and limitsDescription
titlestring"Attendance today"maxLength: 40
classesarray[]minItems: 0; maxItems: 16Today'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[].namestringminLength: 1; maxLength: 28; Required
classes[].enrolledintegerminimum: 1; maximum: 9999; Required
classes[].presentintegerminimum: 0; maximum: 9999Here today. Absent: the class has not reported yet.
classes[].streakinteger0minimum: 0; maximum: 999Days in a row at or above the goal.
classes[].reportedAtstring""maxLength: 40The instant this class's count last changed, ISO 8601. Primetime plays a class's 100 percent moment from it.
classes[].prevPresentintegerminimum: 0; maximum: 9999Here before the change; the moment's ring fills from it.
schoolStreakinteger0minimum: 0; maximum: 999Days in a row the whole school was at or above the goal.
takenAtstring""maxLength: 40ISO 8601 instant attendance was taken. Empty shows no time.
schoolMetAtstring""maxLength: 40The 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.