# Activity timer card

> Canonical HTML: https://screenrig.ai/docs/cards/activity-timer/

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](/cards/activity-timer/v1/screenshots/canvas-bloom.webp?sha=5c851a3898a592e2096e30d8bfc61dfe0df1c66066c5566d5f49d6638035b618)

Canvas

![Activity timer](/cards/activity-timer/v1/screenshots/corner-bloom.webp?sha=096df2ce94037f5203fbce646c210f4278add3db29e6ae55c37a01d1fb894976)

Corner

![Activity timer](/cards/activity-timer/v1/screenshots/chip-bloom.webp?sha=175b2ff25e9fd97c983564c1bdb8b04fd45d4f81168d426bc0adc8c72c89b0c1)

Chip

## Views and forms

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

[Card views, themes and publishing](/docs/cards/). [Browse the gallery](/apps/#cards).

## Data and privacy

This card uses its configured properties and live card data.

## Properties

For theme, background, accent and position, see [Common properties](/docs/cards/#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

| Name | Type | Default | Values and limits | Description |
| --- | --- | --- | --- | --- |
| `icon` | string | `"timer-01"` | `"timer-01"`, `"hourglass"`, `"walking"`, `"restaurant-01"`, `"music-note-01"`, `"sparkles"`, `"star"`, `"bell-ring"`, `"user-group"`, `"target-02"` | The picture beside the label. |
| `warnSeconds` | integer | `60` | minimum: `0`; maximum: `600` | In the last seconds the wedge and the digits turn to the warning colour. 0 never warns. |
| `showDigits` | boolean | `true` |  | False shows only the wedge, for the youngest children. |

### Dynamic properties

| Name | Type | Default | Values and limits | Description |
| --- | --- | --- | --- | --- |
| `label` | string | `"Activity time"` | maxLength: `40` | What the time is for, for example Clean up or Silent reading. |
| `minutes` | integer | `10` | minimum: `1`; maximum: `180` | How long the activity lasts. |
| `startAt` | string | `""` | maxLength: `40` | ISO 8601 instant the timer starts (a time without an offset is wall time in the screen's zone). Empty shows the timer ready, full. |
| `doneText` | string | `"Time's up"` | maxLength: `30` |  |

## Canvas example

Add this item to a playlist page’s `primitives`. [Publish the playlist and assign a screen](/docs/cards/#publish-a-card-canvas).

```json
{
  "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](/docs/authentication/).

```console
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"}}'
```
