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.

Category: Health. Tags: Leaderboards and standings, Numbers and metrics, Recognition, Events and venues.

Previews

Heart-rate wall
Canvas
Heart-rate wall
Corner
Heart-rate wall
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

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 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
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).

Canvas example

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

{
  "id": "heart-rate-wall",
  "primitive": "card",
  "card": "heart-rate-wall",
  "major": 1,
  "params": {
    "theme": "neomustard"
  },
  "rect": {
    "x": 0,
    "y": 0,
    "width": 1920,
    "height": 1080
  },
  "layer": 0,
  "content_fit": "fill",
  "data": "heart-rate-wall-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/heart-rate-wall-main" \
  --header "Authorization: Bearer $SCREENRIG_TOKEN" \
  --header "ScreenRig-Project: $SCREENRIG_PROJECT" \
  --header "Content-Type: application/json" \
  --data '{"document":{"className":"","startedAt":"","endsAt":"","members":[],"updated":""}}'