Displays live effort during a fitness class. Each member appears as a tile coloured by heart-rate zone, showing percent of max and calories. A class leaderboard and zone mix are also shown.
Live card
Category: Health. Tags: Leaderboards and standings, Numbers and metrics, Recognition, Events and venues.
Data and privacy
Feed: screenrig.heartrate/v1.
Feed documents carry source attribution. The Player supplies the feed to the card.
Shows first names or nicknames only: never a surname, age, maximum heart rate beyond the percent or any health history, and the card stores nothing about a member.
Properties
For theme, background, accent, colour overrides and position, see Common properties.
Static properties
| Name | Type | Default | Values and limits | Description |
|---|---|---|---|---|
title | string | "Class effort" | maxLength: 40 | |
defaultMaxHr | integer | 190 | minimum: 100; maximum: 230 | Maximum heart rate for a member with no maxHr or age. |
rankBy | string | "points" | "points", "calories", "effort" | What the leaderboard ranks: effort points, calories or percent of max. A member list with none of the first falls back to the next. |
leaders | integer | 5 | minimum: 3; maximum: 10 | Rows on the leaderboard (fewer when the space is short). |
perPage | integer | 24 | minimum: 4; maximum: 48 | Tiles on a page; a larger class takes further pages. |
pageSeconds | integer | 10 | minimum: 5; maximum: 60 | How long each page of tiles stays on screen. |
showBpm | boolean | true | Show beats per minute on each tile. | |
staleSeconds | integer | 45 | minimum: 5; maximum: 3600 | Readings older than this dim the tiles and show Updated 3 min ago. |
hour12 | boolean | false |
Dynamic properties
| Name | Type | Default | Values and limits | Description |
|---|---|---|---|---|
className | string | "" | maxLength: 60 | The class, for example 6:00 AM Burn, when the feed carries none. |
startedAt | string | "" | maxLength: 32 | When the class started, ISO 8601: the header counts up from it. |
endsAt | string | "" | maxLength: 32 | When the class ends, ISO 8601: the header counts down to it. |
members | array | [] | minItems: 0; maxItems: 120 | The members in the class. A feed (screenrig.heartrate/v1) wins when present; the data store supplies the same rows otherwise. |
members[].id | string | maxLength: 40 | An opaque member or strap id; never shown. | |
members[].name | string | maxLength: 60; Required | Only the first word is shown. | |
members[].nickname | string | maxLength: 20 | Shown instead of the name when present. | |
members[].hr | number | minimum: 0; maximum: 260 | Heart rate in beats per minute; 0 or missing is no signal. | |
members[].maxHr | number | minimum: 80; maximum: 240 | The member's maximum heart rate. | |
members[].age | number | minimum: 5; maximum: 110 | Used for 220 minus age when there is no maxHr; never shown. | |
members[].calories | number | minimum: 0; maximum: 5000 | ||
members[].points | number | minimum: 0; maximum: 5000 | Effort points (Myzone MEPs and similar). | |
updated | string | "" | maxLength: 32 | When the heart rates were read, ISO 8601 (data store only; a feed carries fetchedAt). |
Example params
{
"theme": "neomustard"
}
screenrig card create --type heart-rate-wall --major 1 --file params.json --context-file context.md
Example data
{
"className": "",
"startedAt": "",
"endsAt": "",
"members": [],
"updated": ""
}
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.