Live card
Category: Operations. Tags: Numbers and metrics, Charts and gauges, Offices and workplaces, Schools and campuses.
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 | "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. |
dangerAbove | number | 0 | minimum: 0; maximum: 200 | Levels from this up are dangerous: red alert mode in Primetime. 0 takes 15 dB above loudAbove. |
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. |
previous | number | 0 | minimum: 0; maximum: 200 | The level before this one, in dB. 0 means none. With updated, Primetime swings the needle from it to the new level on a spring. |
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. Primetime plays the reading's moment from it, on every screen at once. |
Example params
{
"theme": "neomustard"
}
screenrig card create --type noise-meter --major 1 --file params.json --context-file context.md
Example data
{
"level": 0,
"previous": 0,
"peak": 0,
"average": 0,
"history": [],
"historyLabel": "",
"message": "",
"updated": ""
}
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.