Scores card

A scoreboard of live, final and upcoming games. The host supplies the games.

Live, final and upcoming games from the host fill the screen as broadcast scorebugs, live games first, then finals, then later games, with a favourite team's games leading and marked. Scores are the hero; upcoming games show their start time in the score column and finals point to the winner. The board sizes itself to the slate: one game becomes a feature scorebug, a few games grow large, and a full slate shares balanced pages that turn every eight seconds. Portrait screens get a stacked layout of their own. When the feed falls behind, the board says when it last updated. Under Primetime, scorebugs rise in on a stagger, scores count up, live tags zip in and postponed games wear amber brackets over a slow scoreboard-ribbon background. Reduced motion rests on a composed still.

Live card

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

Category: Sports. Tags: Scoreboards, Schools and campuses, Bars and pubs.

Data and privacy

Feed: screenrig.scores/v1.

Feed documents carry source attribution. The Player supplies the feed to the card.

Properties

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

Static properties

NameTypeDefaultValues and limitsDescription
titlestring""maxLength: 40Empty uses the league name.
countinteger6minimum: 1; maximum: 12
favouritestring""maxLength: 8A team's short code; its games come first and are highlighted.
sportstring"other""hockey", "soccer", "basketball", "football", "baseball", "other"
hour12booleanfalse
timeZonestring, nullnull

Dynamic properties

NameTypeDefaultValues and limitsDescription
leagueobject, nullnulladditionalProperties: falseThe competition the games are from; its name is the title when title is empty. The feed's wins.
league.namestringmaxLength: 60; Required
gamesarray[]minItems: 0; maxItems: 50Games, the same rows as the screenrig.scores/v1 feed's games, with a few more ways to say the status. A feed wins when present; the data store supplies the same rows otherwise.
games[].homeobjectadditionalProperties: false; RequiredThe home team.
games[].home.namestringmaxLength: 60; Required
games[].home.shortstringmaxLength: 8The team's short code. Without one the card takes three letters from the name.
games[].home.scoreintegerminimum: 0; maximum: 999Left out until the game starts.
games[].awayobjectadditionalProperties: false; RequiredThe away team.
games[].away.namestringmaxLength: 60; Required
games[].away.shortstringmaxLength: 8The team's short code. Without one the card takes three letters from the name.
games[].away.scoreintegerminimum: 0; maximum: 999Left out until the game starts.
games[].statusstring"scheduled", "live", "final", "postponed"Empty works it out from statusCode, and is scheduled when there is neither.
games[].statusCodestringmaxLength: 8A sports data provider's status code such as NS, 1H, HT, Q3, P2, IN7, FT, AET or PST (API-Sports' short codes), read as the status when status is empty. A quarter, period or inning is the live clock when there is no minute.
games[].minuteintegerminimum: 0; maximum: 200The minute a live game has reached, drawn as 67'.
games[].addedintegerminimum: 0; maximum: 60The minutes of added time beside minute, drawn as 90+4'.
games[].startstringmaxLength: 40When the game starts, an ISO 8601 instant.
games[].clockstringmaxLength: 24A live game's clock beside its LIVE tag, for example 2nd · 12:41.
games[].periodstringmaxLength: 12How a final went on, for example OT: Final/OT.
updatedAtstring""maxLength: 40When the scores were fetched, ISO 8601 (data store only; a feed carries fetchedAt).

Example params

{
  "theme": "neomustard"
}
screenrig card create --type scores --major 1 --file params.json --context-file context.md

Example data

{
  "league": null,
  "games": [],
  "updatedAt": ""
}

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.