Metadata-Version: 2.0
Name: ledcontroller
Version: 1.0.2
Summary: Controller library for limitlessled/easybulb/milight Wi-Fi LEDs
Home-page: https://github.com/ojarva/python-ledcontroller
Author: Olli Jarva
Author-email: olli@jarva.fi
License: BSD
Keywords: limitlessled easybulb milight led wifi
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Topic :: Home Automation
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Provides-Extra: dev
Requires-Dist: twine; extra == 'dev'
Requires-Dist: wheel; extra == 'dev'

Wi-Fi LED controller
====================

.. image:: https://travis-ci.org/ojarva/python-ledcontroller.svg?branch=master
    :target: https://travis-ci.org/ojarva/python-ledcontroller



Controller for LimitlessLED RGBW lights (should be compatible with easybulb/milight as well).

Installation
------------

::

  pip install ledcontroller

Usage
-----

::

  import ledcontroller
  led = ledcontroller.LedController("192.168.1.6")
  led.on()
  led.set_color("red", 1)
  led.white(2)
  led.set_brightness(50, 2)
  led.disco(3)
  led.disco_faster(3)
  led.off(4)

Notes
-----

- There is automatic 100ms pause between each command. Almost every action requires sending more than one command, thus requiring several hundred milliseconds. You can change this with keyword argument "pause_between_commands". However, decreasing the delay will cause some commands to fail.
- As the gateway seems to be rather unreliable, all commands are sent multiple times (three by default). If you want to change this, use "LedController(ip, repeat_commands=n)" to create new lightcontroller object.
- If for some reason you need to change gateway port, use keyword port= to change it.
- Run testsuite with "python setup.py test". Tests only run the code without checking whether proper commands were sent.


