The 'MMM-Clap' module is for detecting claps using a LM939 Sound Detector and sending socket notification to be consumed by other modules.
Fornoth/spotify-connect-web.
You will need to connect a LM939 Sound Sensor
#Installation of the module
In your terminal, go to your MagicMirror's Module folder:
cd ~/MagicMirror/modules
Clone this repository:
git clone https://github.com/CatoAntonsen/MMM-Clap.git
Configure the module in your config.js file.
To use this module, add it to the modules array in the config/config.js
file:
modules: [
{
module: 'MMM-Clap',
config: {
GpioPin: 24,
MinTimeBetweenClaps: 50,
MaxTimeBetweenClaps: 1000,
WaitAfterLastClap: 1500
}
}
]
The following properties can be configured:
</tbody>
Option | Description |
---|---|
GpioPin |
What pin you've connected the signal (white) connector on your Raspberry board. Default value: 24
|
MinTimeBetweenClaps |
TODO Default value: 50
|
MaxTimeBetweenClaps |
TODO Default value: 1000
|
WaitAfterLastClap |
TODO Default value: 1500
|