Live card
Category: Operations. Tags: Numbers and metrics, Charts and gauges, Offices and workplaces, Stores.
Data and privacy
Feed: screenrig.visitors/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 | "Live visitors" | maxLength: 40 | |
rows | integer | 5 | minimum: 1; maximum: 8 | Rows in each list. |
staleMinutes | integer | 10 | minimum: 1; maximum: 1440 | A feed older than this shows how long ago it updated. |
Dynamic properties
| Name | Type | Default | Values and limits | Description |
|---|---|---|---|---|
site | string | "" | maxLength: 60 | The site or app the numbers describe; the feed's wins. |
active | integer, null | null | minimum: 0; maximum: 100000000 | Visitors online now. Empty falls back to the larger total of the lists. |
series | array | [] | maxItems: 60 | Visitors online each minute, oldest first; the last 30 are drawn. |
record | integer, null | null | minimum: 0; maximum: 100000000 | The previous best count; a count above it is a record. The feed's record wins when present. |
updatedAt | string | "" | maxLength: 40 | When the numbers last changed (ISO 8601); anchors the update's moment when the feed has no fetchedAt. |
pages | array | [] | maxItems: 20 | Top pages, the same document as the screenrig.visitors/v1 feed's pages. The feed wins when present. |
pages[].path | string | "" | maxLength: 80 | The page's path (/pricing). |
pages[].title | string | "" | maxLength: 80 | Shown instead of the path when present. |
pages[].visitors | integer | minimum: 0; maximum: 10000000; Required | Visitors on the page now. | |
sources | array | [] | maxItems: 20 | Top sources, the same document as the feed's sources. |
sources[].name | string | minLength: 1; maxLength: 80; Required | Where visitors came from (Google, Direct, Newsletter). | |
sources[].visitors | integer | minimum: 0; maximum: 10000000; Required | Visitors from this source now. |
Example params
{
"theme": "neomustard"
}
screenrig card create --type live-visitors --major 1 --file params.json --context-file context.md
Example data
{
"site": "",
"active": null,
"series": [],
"record": null,
"updatedAt": "",
"pages": [],
"sources": []
}
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.