Control USB connected LED lights, like a human.
Project description
busylight
Control USB attached LED lights like a Human™
Make a supported USB attached LED light turn on, off and blink; all
from the comfort of your very own command-line. If your platform
supports HIDAPI (Linux, MacOS, Windows and probably others), then
you can use busylight
!
Usage
$ busylight on
$ busylight off
$ busylight on purple
$ busylight on 0xff00ff # still purple.
$ busylight blink yellow # all hands man your stations.
$ busylight blink red # RED ALERT!
$ busylight off # all clear.
Install
$ pip install -U busylight-for-humans
$ busylight --help
Source
Usage:
$ busylight [OPTIONS] COMMAND [ARGS]...
Options:
-l, --light-id INTEGER
: Which light to operate on, see list output. [default: 0]-a, --all
: Operate on all lights.--install-completion
: Install completion for the current shell.--show-completion
: Show completion for the current shell, to copy it or customize the installation.--help
: Show this message and exit.
Commands:
blink
: Activate the selected light in blink mode.list
: List available lights (currently connected).off
: Turn selected lights off.on
: Turn selected lights on.supported
: List supported LED lights.
busylight blink
Activate the selected light in blink mode.
The light selected will blink with the specified color. The default color is red if the user omits the color argument. Colors can be specified with color names and hexadecimal values. Both '0x' and '#' are recognized as hexidecimal number prefixes and hexadecimal values may be either three or six digits long.
Examples:
$ busylight blink # light is blinking with the color red
$ busylight blink green # now it's blinking green
$ busylight blink 0x00f # now it's blinking blue
$ busylight blink #ffffff # now it's blinking white
$ busylight --all blink # now all available lights are blinking red
$ busylight --all off # that's enough of that!
Usage:
$ busylight blink [OPTIONS] [COLOR]
Options:
-s, --speed
: Blink speed--help
: Show this message and exit.
busylight list
List available lights (currently connected).
Usage:
$ busylight list [OPTIONS]
Options:
--help
: Show this message and exit.
busylight off
Turn selected lights off.
To turn off all lights, specify --all:
$ busylight --all off
Usage:
$ busylight off [OPTIONS]
Options:
--help
: Show this message and exit.
busylight on
Turn selected lights on.
The light selected is turned on with the specified color. The default color is green if the user omits the color argument. Colors can be specified with color names and hexadecimal values. Both '0x' and '#' are recognized as hexidecimal number prefixes and hexadecimal values may be either three or six digits long.
Examples:
$ busylight on # light activated with the color green
$ busylight on red # now it's red
$ busylight on 0x00f # now it's blue
$ busylight on #ffffff # now it's white
$ busylight --all on # now all available lights are green
Usage:
$ busylight on [OPTIONS] [COLOR]
Options:
--help
: Show this message and exit.
busylight supported
List supported LED lights.
Usage:
$ busylight supported [OPTIONS]
Options:
--help
: Show this message and exit.
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
Built Distribution
Hashes for busylight-for-humans-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38a248790f2d152da6ffd693825049715aae4fd17dc7c6a2f2a1238ee25361b5 |
|
MD5 | b9f04550f0d7910f9035ecd14c58e762 |
|
BLAKE2b-256 | 1a18edb9974e3b44739d1da87f25dbdb0873473c3fd9047834506fbd2dd7e75b |
Hashes for busylight_for_humans-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e7ea345985ae26ab670b903b37e9d21f0cda4fe91f0c70926b2441b07dba9af |
|
MD5 | 2779873d3b2ad35b8f26a07ef3602844 |
|
BLAKE2b-256 | 916a4213d49f0d1a7943da2fd4546d9a67fb1ca56a7f1b4c7efb247c9c266488 |