Heart-rate wall card

Live effort for a fitness class: a tile for each member in their heart-rate zone colour with the percent of max and calories, a class leaderboard and the zone mix.

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

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

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

NameTypeDefaultValues and limitsDescription
titlestring"Class effort"maxLength: 40
defaultMaxHrinteger190minimum: 100; maximum: 230Maximum heart rate for a member with no maxHr or age.
rankBystring"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.
leadersinteger5minimum: 3; maximum: 10Rows on the leaderboard (fewer when the space is short).
perPageinteger24minimum: 4; maximum: 48Tiles on a page; a larger class takes further pages.
pageSecondsinteger10minimum: 5; maximum: 60How long each page of tiles stays on screen.
showBpmbooleantrueShow beats per minute on each tile.
staleSecondsinteger45minimum: 5; maximum: 3600Readings older than this dim the tiles and show Updated 3 min ago.
hour12booleanfalse

Dynamic properties

NameTypeDefaultValues and limitsDescription
classNamestring""maxLength: 60The class, for example 6:00 AM Burn, when the feed carries none.
startedAtstring""maxLength: 32When the class started, ISO 8601: the header counts up from it.
endsAtstring""maxLength: 32When the class ends, ISO 8601: the header counts down to it.
membersarray[]minItems: 0; maxItems: 120The members in the class. A feed (screenrig.heartrate/v1) wins when present; the data store supplies the same rows otherwise.
members[].idstringmaxLength: 40An opaque member or strap id; never shown.
members[].namestringmaxLength: 60; RequiredOnly the first word is shown.
members[].nicknamestringmaxLength: 20Shown instead of the name when present.
members[].hrnumberminimum: 0; maximum: 260Heart rate in beats per minute; 0 or missing is no signal.
members[].maxHrnumberminimum: 80; maximum: 240The member's maximum heart rate.
members[].agenumberminimum: 5; maximum: 110Used for 220 minus age when there is no maxHr; never shown.
members[].caloriesnumberminimum: 0; maximum: 5000
members[].pointsnumberminimum: 0; maximum: 5000Effort points (Myzone MEPs and similar).
updatedstring""maxLength: 32When 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.