Category: Operations. Tags: Numbers and metrics, Charts and gauges, Offices and workplaces, Schools and campuses.
Previews



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
| Name | Type | Default | Values and limits | Description |
|---|---|---|---|---|
title | string | "Noise" | maxLength: 40 | |
staleMinutes | integer | 5 | minimum: 1; maximum: 1440 | |
quietBelow | number | 55 | minimum: 0; maximum: 200 | Levels below this are quiet. |
loudAbove | number | 70 | minimum: 0; maximum: 200 | Levels from this up are loud. |
min | number | 30 | minimum: 0; maximum: 100 | The bottom of the scale, in dB. |
max | number | 110 | minimum: 60; maximum: 200 | The top of the scale, in dB. |
quietLabel | string | "Quiet" | maxLength: 16 | |
midLabel | string | "Lively" | maxLength: 16 | |
loudLabel | string | "Loud" | maxLength: 16 | |
unit | string | "dB" | maxLength: 6 | |
hour12 | boolean | false |
Dynamic properties
| Name | Type | Default | Values and limits | Description |
|---|---|---|---|---|
level | number | 0 | minimum: 0; maximum: 200 | The current sound level in dB. 0 means no reading. |
peak | number | 0 | minimum: 0; maximum: 200 | The loudest level in the window, in dB. 0 takes the highest of history. |
average | number | 0 | minimum: 0; maximum: 200 | The average level in the window, in dB. 0 takes the mean of history. |
history | array | [] | minItems: 0; maxItems: 120 | Recent levels in dB, oldest first, evenly spaced: the trace. |
historyLabel | string | "" | maxLength: 24 | What the trace covers: Last 10 min. |
message | string | "" | maxLength: 100 | A line for the room: Inside voices, please. |
updated | string | "" | maxLength: 32 | When the level was measured, ISO 8601. A reading older than staleMinutes shows the sensor as offline. |
Canvas example
Add this item to a playlist page’s primitives. Publish the playlist and assign a screen.
{
"id": "noise-meter",
"primitive": "card",
"card": "noise-meter",
"major": 1,
"params": {
"theme": "neomustard"
},
"rect": {
"x": 0,
"y": 0,
"width": 1920,
"height": 1080
},
"layer": 0,
"content_fit": "fill",
"data": "noise-meter-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/noise-meter-main" \
--header "Authorization: Bearer $SCREENRIG_TOKEN" \
--header "ScreenRig-Project: $SCREENRIG_PROJECT" \
--header "Content-Type: application/json" \
--data '{"document":{"level":0,"peak":0,"average":0,"history":[],"historyLabel":"","message":"","updated":""}}'