Library for homebridge plugins
npm install homebridge-lib
While developing a number of Homebridge plugins, I find myself duplicating a lot of code.
The idea behind this library is to ease developing and maintaining Homebridge plugins by separating this generic code, dealing with HomeKit and Homebridge, from the specific code, dealing with the actual devices being exposed to HomeKit.
doc directory.jsdoc and run jsdoc -c jsdoc.json.index.html in the out directory. See Homebridge WS for an example plugin based on Homebridge Lib.
Tool | Description
--------- | -----------hap | Logger for HomeKit accessory announcements.json | JSON formatter.sysinfo | Print hardware and operating system information.upnp | UPnP tool.
Each command-line tool takes a -h or --help argument to provide a brief overview of its functionality and command-line arguments.
package.json.npm installs Homebridge Lib automatically when installing the actual plugin.To install the command-line tools, use:
```
$ sudo npm -g i hb-lib-tools/usr/bin
This creates symlinks to these tools in or /usr/local/bin (depending on how you installed NodeJS).