# Noise meter card

> Canonical HTML: https://screenrig.ai/docs/cards/noise-meter/

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](/cards/noise-meter/v1/screenshots/canvas-bloom.webp?sha=eb46d6a3c9bcbb65e3fc7fd0a982974c101e9b9b19b17f11667102446dd7ea92)

Canvas

![Noise meter](/cards/noise-meter/v1/screenshots/corner-bloom.webp?sha=b49f0e8a5044a68866605c83ccffc501ff068fd8885549d35a2326d442053bda)

Corner

![Noise meter](/cards/noise-meter/v1/screenshots/chip-bloom.webp?sha=462c4b82e06a67a94f7afa9305bf227fe7d710b1566313f9bb7bbeb0e674b799)

Chip

## Views and forms

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

[Card views, themes and publishing](/docs/cards/). [Browse the gallery](/apps/#cards).

## Data and privacy

This card uses its configured properties and live card data.

## Properties

For theme, background, accent and position, see [Common properties](/docs/cards/#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](/docs/cards/#publish-a-card-canvas).

```json
{
  "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](/docs/authentication/).

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