milights-rest
milights-rest provides a RESTful API to control milight LED bulbs and strips.
Features
Only v6 protocol full color bulbs (RGB CCT) - 4 zones and 8 zones - are implemented for now.
If you have other hardware and you are willing to help test it feel free to open an issue:
https://github.com/jbchouinard/milights-rest/issues
Requirements
NodeJS and NPM.
Installation
Install App
git clone https://github.com/jbchouinard/milights-rest.git
cd milights-rest
npm install
cp config.example.js config.js
nano config.js
Generate API docs
nano swagger.json # Change "host" to external IP or hostname of server if you want Swagger docs examples to work
npm install -g pretty-swag
pretty-swag -c pretty-swag.json
Running
As normal process
node server.js
As a service
npm install -g forever
forever start server.js
forever stop server.js
See help for the forever command for logging and other options.
See Also
node-milight-promise: The library this project uses to interface with Milight lights.
milightsdriver A CLI interface, and a scheduler for milights-rest.
License
milights-rest © Jerome Boisvert-Chouinard 2018.
Derived from milights-bridge © Kevin Van Ryckegem 2017. All Rights Reserved.