Live card
Category: Operations. Tags: Numbers and metrics, Charts and gauges, Stores.
Data and privacy
Feed: screenrig.sales/v1.
Feed documents carry source attribution. The Player supplies the feed to the card.
Shows revenue, order counts and the city of each order only; never a customer name, address or payment detail.
Properties
For theme, background, accent, colour overrides and position, see Common properties.
Static properties
| Name | Type | Default | Values and limits | Description |
|---|---|---|---|---|
title | string | "Sales pulse" | maxLength: 40 | |
currency | string | "USD" | maxLength: 3 | ISO 4217 code; the feed's wins. |
rows | integer | 5 | minimum: 1; maximum: 8 | Rows in each list. |
staleMinutes | integer | 15 | minimum: 1; maximum: 1440 | A feed older than this shows how long ago it updated. |
Dynamic properties
| Name | Type | Default | Values and limits | Description |
|---|---|---|---|---|
store | string | "" | maxLength: 60 | The shop the numbers describe; the feed's wins. |
revenue | number, null | null | minimum: 0; maximum: 1000000000000 | Revenue so far today. |
orders | integer, null | null | minimum: 0; maximum: 100000000 | Orders so far today. |
goal | number, null | null | minimum: 0; maximum: 1000000000000 | Revenue goal for today; empty shows no goal. |
yesterdayRevenue | number, null | null | minimum: 0; maximum: 1000000000000 | Revenue by this time yesterday; empty shows no comparison. |
hourly | array | [] | maxItems: 24 | Revenue for each hour of today in the screen's zone, midnight first. |
cities | array | [] | maxItems: 20 | Revenue by city, the same document as the screenrig.sales/v1 feed's cities. |
cities[].name | string | minLength: 1; maxLength: 60; Required | A city or region. | |
cities[].revenue | number | minimum: 0; maximum: 1000000000; Required | Revenue today from the city. | |
recent | array | [] | maxItems: 20 | The latest orders, the same document as the feed's recent. |
recent[].at | string | minLength: 1; maxLength: 40; Required | When the order was placed, an ISO 8601 instant. | |
recent[].amount | number | minimum: 0; maximum: 1000000000; Required | The order total. | |
recent[].city | string | "" | maxLength: 60 | Where it shipped to or was placed; never a customer. |
Example params
{
"theme": "neomustard"
}
screenrig card create --type sales-pulse --major 1 --file params.json --context-file context.md
Example data
{
"store": "",
"revenue": null,
"orders": null,
"goal": null,
"yesterdayRevenue": null,
"hourly": [],
"cities": [],
"recent": []
}
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.