Coder Social home page Coder Social logo

perdu / milight-controller Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 190 KB

A gateway script to control milight bulbs from multiple applications without conflicts

License: GNU General Public License v3.0

Python 100.00%
milight-lamps milight-controller milight milight-bridge python limitlessled easybulb led led-controller

milight-controller's Introduction

Milight controller

A gateway script to control milight bulbs from multiple applications without conflicts.

Why this script

Milight lamps, also called LimitlessLED, Easybulb, Applight, Applamp, LEDme, dekolight or iLight, are smart bulbs.

When controlling multiple Milight lamps from multiple sources (e.g., an arduino and a smartphone), you will experience conflicts between these sources controllers, causing them to target the wrong lamps, or not work at all (if those lamps are off). This is due to the fact that Milight commands are UDP packets which do not always indicate the targeted lamp. Then, the target may be changed to another lamp by an application when using another one, even if they don't send packets at the same time.

To solve this problem, I wrote this script to insert correct lamp selection packets when needed. To do so, the script keeps tracks of which controller targets which lamp. When the target is unknown (the script was just started or the controller has not indicated a target yet), commands will be sent to all lamps.

The script has to be run on a server between your Milight controller applications and your Milight bridge.

Where to run the script

How to install

Copy config.py.example to config.py and add the address of your Milight bridge as well as the IP address to which your server is joinable.

Put this script on a server in your local network. Change the target IP from the bridge IP to your server IP in all your Milight controller applications. On smartphone applications, the script should appear as a new bridge with MAC address "00:00:B0:0B:00:00".

milight-controller's People

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.