Safety counter card

Days without a lost-time incident, counted from the date of the last one, with the record streak and the goal.

Count calendar days from the last lost-time incident, alongside the record streak and the goal.

Live card

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

Category: Operations. Tags: Factories and warehouses, Numbers and metrics, Offices and workplaces.

Data and privacy

This card uses its configured properties and live card data.

Properties

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

Static properties

NameTypeDefaultValues and limitsDescription
titlestring"Safety"maxLength: 40
labelstring"without a lost-time incident"maxLength: 80The words under the number of days, which sits beside it: "without a lost-time incident".

Dynamic properties

NameTypeDefaultValues and limitsDescription
lastIncidentstring""maxLength: 10; pattern: "^(\\d{4}-\\d{2}-\\d{2})?$"The date of the last incident, YYYY-MM-DD in the screen's time zone. The count is the calendar days since, and rolls over at local midnight.
recordinteger0minimum: 0; maximum: 99999The longest streak on record, in days. 0 hides it. A streak that reaches it is the record.
targetinteger0minimum: 0; maximum: 99999The goal, in days. 0 hides it.
footnotestring""maxLength: 120A line for the foot of the board: a reminder or a reporting line.

Example params

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

Example data

{
  "lastIncident": "",
  "record": 0,
  "target": 0,
  "footnote": ""
}

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.