nesurion / milight-daemon Goto Github PK
View Code? Open in Web Editor NEWgo daemon that controlls your milight lamps via http requests
License: MIT License
go daemon that controlls your milight lamps via http requests
License: MIT License
add a function to connect boblight to the milight-daemon to extend the light from the tv to the whole room.
boblight will be a mode like night or disco in the daemon.
Possible implementation could be: use a pipe the transfer data from boblight to milight fast.
After sending a lot commands to the daemon, it will be very slow, or sometimes the daemon dont work anymore.. I thought the bridge is crashing but i can use the app to control the lights, so the issue is here
Explain how to:
add a version system. version number stored in file.
milight-daemon --version
=> 0.0.1
milight-daemon
=== Milight Daemon ===
Version 0.0.1
Running on 0.0.0.0:8080
this needs to be done before #4
Attempting to run the milight-daemon in terminal on osx. I've configured the config file with the IP and a port, and when I run the file in terminal I get the following when I send an HTTP request:
GIN] 2015/12/08 - 05:56:43 | 404 | 6.895µs | 127.0.0.1:60024 | GET /off
However, the bulb doesn't turn off or change in any way. Any suggestions?
add an ping endpoint, so tools can check if milight daemon is running or not.
on http get /ping the daemon will respond with 200 : milight-daemon [Version number]
We cant set the brightness for group 0.
http://jane:8080/brightness?group=0&level=100
will be accepted but dont change the brightness. Also i recognized huger delays for group=0 brightness ~230ms. Changing brightness for group=[1-4] works fine with ~1-15ms delay
To be able to start the daemon with ease including the systemd unit file. It might look like this:
[Unit]
Description=MilightDaemon
[Service]
TimeoutStartSec=0
ExecStart=[path to milight-daemon bin]
http convention is that the order of url params don't matter.
The api endpoint rgb
only works correctly when the order matches:
i.e: r=255&b=0&g=0
will not result in changing the color to red, nothing happens.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.