Count calendar days from the last lost-time incident, alongside the record streak and the goal.
Live card
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
| Name | Type | Default | Values and limits | Description |
|---|---|---|---|---|
title | string | "Safety" | maxLength: 40 | |
label | string | "without a lost-time incident" | maxLength: 80 | The words under the number of days, which sits beside it: "without a lost-time incident". |
Dynamic properties
| Name | Type | Default | Values and limits | Description |
|---|---|---|---|---|
lastIncident | string | "" | 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. |
record | integer | 0 | minimum: 0; maximum: 99999 | The longest streak on record, in days. 0 hides it. A streak that reaches it is the record. |
target | integer | 0 | minimum: 0; maximum: 99999 | The goal, in days. 0 hides it. |
footnote | string | "" | maxLength: 120 | A 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.