delcom904x is a python class to control the Delcom Products 904x series multi-color visual signal indicators. These are USB HID devices that are easily programmable on most platforms.
It has been tested with the 904005-SB
but should work with any of the other models without any issues. Currently if you have a
green, red and yellow indicator, substitute --blue
for yellow (they're wired the same).
- cython-hidapi - Python wrapper for the
hidapi
library below.- Confusingly installed via
pip install hidapi
- Confusingly installed via
- hidapi - Cross platform library to control USB HID devices
-
Install the delcom904x module
$ [sudo] python setup.py install
-
Plug in your Delcom USBLMP
-
Test it out!
$ ./control_delcom904x.py --green --red --flash --cycle
import delcom904x
light = delcom904x.DelcomMultiColorIndicator()
light.set_color(delcom904x.red, flashing = true)
On Linux machines, the default udev rulesets may set the permissions on the device to only
be accessible to the root user. Add the following rule to /etc/udev/rules.d/
and
re-plugin the indicator to allow all users to access the device (optionally, consider
changing MODE="0666"
to GROUP="dialout"
to allow only the dialout group access).
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0fc5", ATTRS{idProduct}=="b080", MODE="0666"