Skip to main content

Controller library for limitlessled/easybulb/milight Wi-Fi LEDs

Project description

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

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ledcontroller-1.0.3.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ledcontroller-1.0.3-py2.py3-none-any.whl (6.2 kB view details)

Uploaded Python 2Python 3

File details

Details for the file ledcontroller-1.0.3.tar.gz.

File metadata

  • Download URL: ledcontroller-1.0.3.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ledcontroller-1.0.3.tar.gz
Algorithm Hash digest
SHA256 6933a50464e05a2c5053f10ac75d09c78f9a5d7915fb08a12a512611c683b903
MD5 38ee35f96ce17b78c0ddf1940c0797e6
BLAKE2b-256 8016173cfacbd94d9f10cc4da9fa8a759016bcceaa589dd79bd0a3bdc4c149d8

See more details on using hashes here.

File details

Details for the file ledcontroller-1.0.3-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for ledcontroller-1.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 32003d3e58ea0c122c509bbf8c11243ad6c555ad05a3dc09ec300f3cdaca2173
MD5 108a9a8eda20116225206aa2652f2dcb
BLAKE2b-256 8aa047fd963e4618b0feb4694cdc0251171c9dc6e36d11a543a1b441418db2dc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page