delcom904x
delcom904x is a python class and command-line script to control the Delcom Products 904x series multi-color visual signal indicators. These are USB HID devices that are easily controllable from most platforms.
It has been tested with the 904005-SB but should work with any of the other models without any issues. The yellow in the green, red and yellow indicators is wired the same as blue. There also doesn't appear to be a method of detecting if the attached indicator supports blue or yellow, so blue and yellow commands are synonyms.
Installation
$ pip install delcom904x
$ control-delcom904x --green --red --flash --cycle
control-delcom904x usage
-h, --help show this help message and exit
--list List all USB devices.
--info Returns info on the device.
--red Enable the red light.
--green Enable the green light.
--blue Enable the blue light.
--yellow Enable the yellow light (if equipped; synonym for blue).
--flash Turns on flashing.
--cycle [100] Turns on cycling.
--intensity [80] Sets brightness: 0-100.
--buzzer Buzzes three times.
--reset Resets the device.
Python Code Examples
import delcom904x
light = delcom904x.DelcomMultiColorIndicator()
light.set_color(delcom904x.red, flashing=True)
light.close()
import delcom904x
with delcom904x.DelcomMultiColorIndicator() as light:
light.info()
color = delcom904x.green
light.set_color(color, flashing=True)
light.set_intensity(80, color)
udev Notes
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"
Release files for delcom904x 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| delcom904x-0.5.0.tar.gz | 5.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| delcom904x-0.5.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.0 kB
Release files / delcom904x-0.5.0.tar.gz
| Download URL | delcom904x-0.5.0.tar.gz |
|---|---|
| Size | 5.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a1a960ec92ae053641db1aec166414e2b538ecd256766faaa3982cdaec2ffd4e
|
|
BLAKE2b-256 checksum How to use checksums |
87dcdbfb6f207112411e012cc1eabb5e255e3cd69f2ccd83cb6dd76840eba2f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 25, 2025.
Transparency logRelease files / delcom904x-0.5.0-py3-none-any.whl
| Download URL | delcom904x-0.5.0-py3-none-any.whl |
|---|---|
| Size | 6.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d959ecea22ab8e649160902cb5026d03deac10748623a1947aee71d9fd79ff7d
|
|
BLAKE2b-256 checksum How to use checksums |
0dbdc15a991c58612c7c8ab896985f1a479879e81bb08c499c87b3bb21f8f7cb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 25, 2025.
Transparency log