Skip to main content

Python package to control BlinkStick USB devices.

Project description

BlinkStick Python

BlinkStick Python interface to control devices connected to the computer.

What is BlinkStick? It’s a smart USB LED pixel. More info about it here:

http://www.blinkstick.com

Resources

Requirements

  • Python

  • BlinkStick pip module

  • Libusb for Mac OSX

Requirements Installation

Linux

Install pip (Python package management software):

sudo apt-get install python-pip

Mac OS X

Install libusb with homebrew:

brew install libusb

Install pip

sudo easy_install pip

Known Errors

ValueError: No backend available

This means that the Python usb module cannot find your installation of libusb. It seems to be an issue when you have homebrew installed somewhere that is not expected.

It can be mitigated with

sudo ln -s `brew --prefix`/lib/libusb-* /usr/local/lib/

Microsoft Windows

BlinkStick package Installation

Linux and Mac OS X

Install blinkstick Python package with pip:

sudo pip install blinkstick

Microsoft Windows

Open commandline environment by using Win+R keyboard shortcut and typing in:

cmd

Assuming that Python was installed into C:\Python27 folder, type in the following into the command window:

C:\Python27\Scripts\pip.exe install blinkstick

Command line tool

Together with the Python module an additional command line tool is installed to control BlinkSticks.

blinkstick --pulse red

You can find more details about command line tool options and usage examples in the wiki.

Permission problems in Linux and Mac OS X

If the script returns with an error

Access denied (insufficient permissions)

You can either run the script with sudo, for example:

sudo blinkstick --set-color random

Or you can add a udev rule to allow any user to access the device without root permissions with this single command.

sudo blinkstick --add-udev-rule

There is also another equivalent command that does exactly the same thing:

echo "SUBSYSTEM==\"usb\", ATTR{idVendor}==\"20a0\", ATTR{idProduct}==\"41e5\", MODE:=\"0666\"" | sudo tee /etc/udev/rules.d/85-blinkstick.rules

Reboot computer after you have added the command and all users will have permissions to access the device without the need of root permissions.

Maintainers

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

BlinkStick-1.1.4.tar.gz (18.2 kB view details)

Uploaded Source

File details

Details for the file BlinkStick-1.1.4.tar.gz.

File metadata

  • Download URL: BlinkStick-1.1.4.tar.gz
  • Upload date:
  • Size: 18.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for BlinkStick-1.1.4.tar.gz
Algorithm Hash digest
SHA256 2051237b3f7d5690a67b781e24907a537c27b00ccdf0046fe3afbee2ce0752a4
MD5 3fd78fbdd351f283dd9a89cb1ba1e1d3
BLAKE2b-256 c46da50beff7d4a4a630b2c70b69c329ac3e48d9378ccb8c0dc38e985a7513e8

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