Activity timer card

A big friendly timer for a classroom: a wedge of colour that shrinks to nothing, the minutes left and what the time is for.

Category: Schools. Tags: Countdowns and timers, Schools and campuses.

Previews

Activity timer
Canvas
Activity timer
Corner
Activity timer
Chip

Views and forms

Views: canvas, corner, chip. Canvas forms: landscape, portrait, square, strip.

Card views, themes and publishing. Browse the gallery.

Data and privacy

This card uses its configured properties and live card data.

Properties

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

Set static properties in params. Bind data to a project card data key for live values; that document holds only dynamic properties. Without a data key, put the complete configuration in params. Nested rows describe the contents of their parent property.

Static properties

NameTypeDefaultValues and limitsDescription
iconstring"timer-01""timer-01", "hourglass", "walking", "restaurant-01", "music-note-01", "sparkles", "star", "bell-ring", "user-group", "target-02"The picture beside the label.
warnSecondsinteger60minimum: 0; maximum: 600In the last seconds the wedge and the digits turn to the warning colour. 0 never warns.
showDigitsbooleantrueFalse shows only the wedge, for the youngest children.

Dynamic properties

NameTypeDefaultValues and limitsDescription
labelstring"Activity time"maxLength: 40What the time is for, for example Clean up or Silent reading.
minutesinteger10minimum: 1; maximum: 180How long the activity lasts.
startAtstring""maxLength: 40ISO 8601 instant the timer starts (a time without an offset is wall time in the screen's zone). Empty shows the timer ready, full.
doneTextstring"Time's up"maxLength: 30

Canvas example

Add this item to a playlist page’s primitives. Publish the playlist and assign a screen.

{
  "id": "activity-timer",
  "primitive": "card",
  "card": "activity-timer",
  "major": 1,
  "params": {
    "theme": "neomustard"
  },
  "rect": {
    "x": 0,
    "y": 0,
    "width": 1920,
    "height": 1080
  },
  "layer": 0,
  "content_fit": "fill",
  "data": "activity-timer-main"
}

Write live data

Create this document before showing the card, then replace it to update the screen without republishing. Use the same project as the playlist. Supply your API authorization through the environment; see API authentication.

curl --request PUT "https://api.screenrig.ai/api/card-data/activity-timer-main" \
  --header "Authorization: Bearer $SCREENRIG_TOKEN" \
  --header "ScreenRig-Project: $SCREENRIG_PROJECT" \
  --header "Content-Type: application/json" \
  --data '{"document":{"label":"Activity time","minutes":10,"startAt":"","doneText":"Time'\''s up"}}'