# SoundReactivePlugin

The plugin shows octave frequency bands, depended on the environment sound.

Required: A digital microphone (INMP441) is required, connected to the I2S port.

## REST API

### Get configuration about how many frequency bands are shown.

    GET {{ORIGIN}}/rest/api/v1/display/uid/<PLUGIN-UID>/config

    GET {{ORIGIN}}/rest/api/v1/display/alias/<PLUGIN-ALIAS>/config

### Set configuration about how many frequency bands shall be shown.

    POST {{ORIGIN}}/rest/api/v1/display/uid/<PLUGIN-UID>/config?freqBandLen=<FREQ-BAND-LEN>

    POST {{ORIGIN}}/rest/api/v1/display/alias/<PLUGIN-ALIAS>/config?freqBandLen=<FREQ-BAND-LEN>

- PLUGIN-UID: The plugin unique id.
- PLUGIN-ALIAS: The plugin alias name.
- FREQ-BAND-LEN: Number of frequency bands to show.
  - 8: Show 8 frequency bands.
  - 16: Show 16 frequency bands.

## Configuration

### Number of frequency bands

Plugin UID:
Configuration: