Live card
Category: Public information. Tags: Scoreboards, Leaderboards and standings, News and announcements, Events and venues.
Data and privacy
Feed: screenrig.election/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
| Name | Type | Default | Values and limits | Description |
|---|---|---|---|---|
title | string | "Results" | maxLength: 40 | |
perPage | integer | 2 | minimum: 1; maximum: 8 | Races on a page (grid layout); further races take the next page. |
pageSeconds | integer | 12 | minimum: 5; maximum: 60 | How long each page, or each race in the spotlight, stays on screen. |
maxCandidates | integer | 4 | minimum: 2; maximum: 8 | Candidates listed in a race; the rest share one Others line. |
showVotes | boolean | true | Show vote counts beside the shares. | |
showParty | boolean | true | Show each candidate's party as text. | |
staleMinutes | integer | 30 | minimum: 1; maximum: 1440 | |
hour12 | boolean | false |
Dynamic properties
| Name | Type | Default | Values and limits | Description |
|---|---|---|---|---|
electionName | string | "" | maxLength: 80 | The election, for example General Election 2026, when the feed carries none. |
races | array | [] | minItems: 0; maxItems: 40 | The races. A feed (screenrig.election/v1) wins when present; the data store supplies the same rows otherwise. |
races[].id | string | maxLength: 40 | ||
races[].title | string | minLength: 1; maxLength: 80; Required | The contest, for example Mayor. | |
races[].jurisdiction | string | maxLength: 60 | Where, for example City of Fairview. | |
races[].reportingPct | number | minimum: 0; maximum: 100 | Percent of precincts reporting. | |
races[].precincts | object | additionalProperties: false | ||
races[].precincts.reporting | number | minimum: 0 | ||
races[].precincts.total | number | minimum: 0 | ||
races[].status | string | "open", "called", "recount", "runoff", "unopposed" | Called when the race has been called; a candidate with winner true calls it as well. | |
races[].calledAt | string | maxLength: 32 | When the race was called, ISO 8601. | |
races[].featured | boolean | Lead the corner and chip with this race. | ||
races[].candidates | array | minItems: 0; maxItems: 40; Required | ||
races[].candidates[].name | string | maxLength: 60; Required | ||
races[].candidates[].party | string | maxLength: 24 | Shown as text; no colour comes from it. | |
races[].candidates[].votes | number | minimum: 0 | ||
races[].candidates[].pct | number | minimum: 0; maximum: 100 | Share of the vote; worked out from votes when absent. | |
races[].candidates[].winner | boolean | |||
races[].candidates[].incumbent | boolean | |||
updated | string | "" | maxLength: 32 | When the results were last updated, ISO 8601 (data store only; a feed carries fetchedAt). |
Example params
{
"theme": "neomustard"
}
screenrig card create --type election-results --major 1 --file params.json --context-file context.md
Example data
{
"electionName": "",
"races": [],
"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.