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.

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

Previews

Noise meter
Canvas
Noise meter
Corner
Noise meter
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"Noise"maxLength: 40
staleMinutesinteger5minimum: 1; maximum: 1440
quietBelownumber55minimum: 0; maximum: 200Levels below this are quiet.
loudAbovenumber70minimum: 0; maximum: 200Levels from this up are loud.
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.
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.

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":""}}'