Python language bindings for Embrava BlyncLight devices.
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 hidapi for your platform:
(rpm Linux distros)# yum install XXXX (apt Linux distros)# apt-get install XXXX (macOS using brew) $ brew install hidapi
$ pip3 install blynclight
- Clone the Repository
$ git clone https://github.com/JnyJny/blynclight.git $ cd blynclight; pip3 install -e .
$ pip install poetry $ git clone https://github.com/JnyJny/blynclight.git $ cd blynclight $ poetry shell $ ..
$ pip3 uninstall blynclight
Once installed, the BlyncLight is yours to command!
from blynclight import BlyncLight light = BlyncLight.get_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
Several command line interfaces are provided when blynclight is installed:
- Provides command-line access to all light attributes.
- Flashes the light.. impressively.
- Smoothly transitions the color of the light in a rainbow pattern.
- Menacingly ramps the color intensity and then recedes. Over and over again.
Release history Release notifications
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size blynclight-0.4.7-py3-none-any.whl (19.9 kB)||File type Wheel||Python version py3||Upload date||Hashes View hashes|
|Filename, size blynclight-0.4.7.tar.gz (17.5 kB)||File type Source||Python version None||Upload date||Hashes View hashes|
Hashes for blynclight-0.4.7-py3-none-any.whl