Skip to main content

Python bindings to control Embrava BlyncLight devices.

Project description

Latest version released on PyPi Apache license version 2.0 Python Versions

blynclight is a Python package that provides python 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

  1. pip

$ pip install blynclight
  1. Clone the repo

$ git clone https://github.com/JnyJny/blynclight.git
$ cd blynclight; pip install -e .

Uninstall

$ pip uninstall blynclight

Usage

Once installed, the BlyncLight is yours to command!

from blynclight import BlyncLight

light = BlyncLight.first_light()

red, green, blue = (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


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.2.0.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

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

blynclight-0.2.0-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file blynclight-0.2.0.tar.gz.

File metadata

  • Download URL: blynclight-0.2.0.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.7.0

File hashes

Hashes for blynclight-0.2.0.tar.gz
Algorithm Hash digest
SHA256 92fc153e60ad33cbf1318928b39f908acf15c96f09801d4f2a155c524852815d
MD5 cdb9015c9e659d654328f8c32441dd8b
BLAKE2b-256 82af3cbe4c576216aa12f4956cdd0241341ebcf67a11f76a002b80709d7850d0

See more details on using hashes here.

File details

Details for the file blynclight-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: blynclight-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.7.0

File hashes

Hashes for blynclight-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6edd3ef42aa2badd8b0c936e1aa3453ef6a99335edd07f7e8077d701ea7897d2
MD5 78e3939b22b6206323df0ad36ad08bfe
BLAKE2b-256 1c2a04f8b9277661e69d4f02b39f00cddc49e972dffa11078d8b0ace3e4e6142

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