1.0.1 • Published 5 years ago

homebridge-clapper v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

Homebridge Clapper

This uses multicast messaging as a publisher/subscriber system over the local network, so no Internet required, just WiFi. I'm using a Tessel 2 with an ambient sound module to detect the claps and send the messages to this plugin. To be honest, this could eventually be generalized into a "multicast switch" module that listens for "on" or "off" events over the local network, but the first purpose was to be a clap detector so here we are.

Install

Install homebridge on your device if you haven't already.

Then install the plugin:

npm install -g homebridge-clapper

Example config.json

{
  "accessories": [
    {
      "accessory": "Clapper",
      "name": "Tessel Clapper"
    }
  ]
}

TODO: instructions about setting up a Tessel 2, or other device that can run Node.js, to emit multicast messages

Testing

No unit tests because this is a personal project, so 🤷.

Running the plugin locally, check out the homebridge docs.