Python bindings to control Embrava BlyncLight devices.
Project description
blynclight is a Python 3 package that provides bindings for the Embrava BlyncLight family of products. These bindings have been tested on MacOS and Linux using an Embrava V30 USB connected light.
Install
pip
$ pip3 install blynclight
Clone the repo
$ git clone https://github.com/JnyJny/blynclight.git
$ cd blynclight; pip3 install -e .
Uninstall
$ pip3 uninstall blynclight
Usage
Once installed, the BlyncLight is yours to command!
from blynclight import BlyncLight
light = BlyncLight.first_light()
red, blue, green = (255, 0, 0), (0, 255, 0), (0, 0, 255)
light.color = green # the light is off and green
light.on = True # the light is on and green
light.flash = True # the light is on, flashing and green
light.color = red # the light is on, flashing and red
light.flash = False # the light is on and red
light.bright = False # the light is on, dim and red
light.color = blue # the light is on, dim and blue
light.bright = True # the light is on and blue
light.on = False # the light is off and blue
More examples can be found in the contrib directory.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
blynclight-0.3.1.tar.gz
(7.6 kB
view hashes)
Built Distribution
Close
Hashes for blynclight-0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32636c764e6802f1c515426bc5526e31d878b4949013328d27ba3876f514e86c |
|
MD5 | 737600c23bf5a365584255e3502cd8fd |
|
BLAKE2b-256 | 153d6dd27dd5df8a549efb32281f1ae95fc475a01ab13d3e06cd85fb70dc3ff3 |