Safety counter card

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

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

Previews

Safety counter
Canvas
Safety counter
Corner
Safety counter
Chip

Views and forms

Views: canvas, corner, chip. Canvas forms: landscape, portrait, square, strip.

Card views, themes and publishing. Browse the gallery.

Data and privacy

This card uses its configured properties and live card data.

Properties

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

Set static properties in params. Bind data to a project card data key for live values; that document holds only dynamic properties. Without a data key, put the complete configuration in params. Nested rows describe the contents of their parent property.

Static properties

NameTypeDefaultValues and limitsDescription
titlestring"Safety"maxLength: 40
labelstring"without a lost-time incident"maxLength: 80The words after the number of days: "days 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.

Canvas example

Add this item to a playlist page’s primitives. Publish the playlist and assign a screen.

{
  "id": "safety-counter",
  "primitive": "card",
  "card": "safety-counter",
  "major": 1,
  "params": {
    "theme": "neomustard"
  },
  "rect": {
    "x": 0,
    "y": 0,
    "width": 1920,
    "height": 1080
  },
  "layer": 0,
  "content_fit": "fill",
  "data": "safety-counter-main"
}

Write live data

Create this document before showing the card, then replace it to update the screen without republishing. Use the same project as the playlist. Supply your API authorization through the environment; see API authentication.

curl --request PUT "https://api.screenrig.ai/api/card-data/safety-counter-main" \
  --header "Authorization: Bearer $SCREENRIG_TOKEN" \
  --header "ScreenRig-Project: $SCREENRIG_PROJECT" \
  --header "Content-Type: application/json" \
  --data '{"document":{"lastIncident":"","record":0,"target":0,"footnote":""}}'