Skip to content

jbchouinard/milights-rest

 
 

Repository files navigation

milights-rest

milights-rest provides a RESTful API to control milight LED bulbs and strips.

Screenshot

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

CC BY-NC-SA 3.0

milights-rest © Jerome Boisvert-Chouinard 2018.

Derived from milights-bridge © Kevin Van Ryckegem 2017. All Rights Reserved.

About

A RESTful API to control Milight RGB LED lights

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 88.8%
  • CSS 9.5%
  • HTML 1.7%