Noise meter card

How loud a room is: the level in decibels on a gauge that turns from quiet to lively to loud, with the recent trace, the peak and the average.

Live card

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

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

NameTypeDefaultValues and limitsDescription
titlestring"Noise"maxLength: 40
staleMinutesinteger5minimum: 1; maximum: 1440
quietBelownumber55minimum: 0; maximum: 200Levels below this are quiet.
loudAbovenumber70minimum: 0; maximum: 200Levels from this up are loud.
dangerAbovenumber0minimum: 0; maximum: 200Levels from this up are dangerous: red alert mode in Primetime. 0 takes 15 dB above loudAbove.
minnumber30minimum: 0; maximum: 100The bottom of the scale, in dB.
maxnumber110minimum: 60; maximum: 200The top of the scale, in dB.
quietLabelstring"Quiet"maxLength: 16
midLabelstring"Lively"maxLength: 16
loudLabelstring"Loud"maxLength: 16
unitstring"dB"maxLength: 6
hour12booleanfalse

Dynamic properties

NameTypeDefaultValues and limitsDescription
levelnumber0minimum: 0; maximum: 200The current sound level in dB. 0 means no reading.
previousnumber0minimum: 0; maximum: 200The level before this one, in dB. 0 means none. With updated, Primetime swings the needle from it to the new level on a spring.
peaknumber0minimum: 0; maximum: 200The loudest level in the window, in dB. 0 takes the highest of history.
averagenumber0minimum: 0; maximum: 200The average level in the window, in dB. 0 takes the mean of history.
historyarray[]minItems: 0; maxItems: 120Recent levels in dB, oldest first, evenly spaced: the trace.
historyLabelstring""maxLength: 24What the trace covers: Last 10 min.
messagestring""maxLength: 100A line for the room: Inside voices, please.
updatedstring""maxLength: 32When 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.