Sales pulse card

Today's revenue and orders with the day by hour, the latest orders and the top cities.

Live card

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

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

NameTypeDefaultValues and limitsDescription
titlestring"Sales pulse"maxLength: 40
currencystring"USD"maxLength: 3ISO 4217 code; the feed's wins.
rowsinteger5minimum: 1; maximum: 8Rows in each list.
staleMinutesinteger15minimum: 1; maximum: 1440A feed older than this shows how long ago it updated.

Dynamic properties

NameTypeDefaultValues and limitsDescription
storestring""maxLength: 60The shop the numbers describe; the feed's wins.
revenuenumber, nullnullminimum: 0; maximum: 1000000000000Revenue so far today.
ordersinteger, nullnullminimum: 0; maximum: 100000000Orders so far today.
goalnumber, nullnullminimum: 0; maximum: 1000000000000Revenue goal for today; empty shows no goal.
yesterdayRevenuenumber, nullnullminimum: 0; maximum: 1000000000000Revenue by this time yesterday; empty shows no comparison.
hourlyarray[]maxItems: 24Revenue for each hour of today in the screen's zone, midnight first.
citiesarray[]maxItems: 20Revenue by city, the same document as the screenrig.sales/v1 feed's cities.
cities[].namestringminLength: 1; maxLength: 60; RequiredA city or region.
cities[].revenuenumberminimum: 0; maximum: 1000000000; RequiredRevenue today from the city.
recentarray[]maxItems: 20The latest orders, the same document as the feed's recent.
recent[].atstringminLength: 1; maxLength: 40; RequiredWhen the order was placed, an ISO 8601 instant.
recent[].amountnumberminimum: 0; maximum: 1000000000; RequiredThe order total.
recent[].citystring""maxLength: 60Where 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.