Milights-bridge is a remote control application for your Milight lights. The layout works well on both computers and mobile devices. It provides a GUI as well as an API for third-party applications.
It is recommended to run the milights-bridge application on a device similar to the Raspberry Pi. We are not affiliated, however, the Raspberry Pi is advantageous for its low consumption power while still having a CPU powerful enough to run this.
While milights-bridge isn't particularly unsecure, allowing internet traffic to it is not a good idea, since anybody would have control over your lights. Securing it with a password is not an option either, as that would make the API less accessible for 3rd party applications.
Use the application at your own risk. I am not responsible for anything that happens from using this application.
sudo apt-get update
sudo apt-get install nodejs
sudo apt-get update
sudo apt-get install npm
sudo git clone https://github.com/KevinVR/milights-bridge.git
cd milights-bridge
sudo npm install
sudo cp config.example.js config.js
sudo vi config.js
or
sudo nano config.js
sudo node server.js
http://localhost:<port>
(the port is configurable in config.js, default is 3000).sudo npm install -g forever
sudo forever start server.js
sudo forever stop server.js
sudo git pull
sudo forever start server.js
If any of the commands fail, try running them with sudo <cmd_here>
, as it might be a permissions problem. If this does not solve it, open a new issue.
The milights-bridge server returns some quite interesting debug data to the console, when run using sudo node server.js
. However, this output is not shown when using forever
or sudo node server.js &
.
Contributing is possible, contact me if you are interested, or have made some code yourself that might be interesting to include. Your name (and link) will then be added to the contributor's list on the about page of the application.
Do you like this project? If so please star this project on GitHub! Let other people find out about this application.
The milights-bridge application makes use of a few libraries and tools, listed below.
Javascript libraries
Templates
Please create an issue would it appear that a library was forgotten to be updated into this list.
Also note that this is a project that I've quickly set up in my free time. Due to time limitations, I have purposely chosen for a simple (less scalable) architecture.
© Kevin Van Ryckegem 2017. All Rights Reserved.
Software License: Creative Commons Non-Commercial ShareAlike 3.0 unported
For more information, visit: CC BY-NC-SA 3.0