Skip to main content

A python module to control Delcom USBLMP Products 904x multi-color, USB, visual signal indicators

Project description

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"

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

delcom904x-0.5.0.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

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

delcom904x-0.5.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file delcom904x-0.5.0.tar.gz.

File metadata

  • Download URL: delcom904x-0.5.0.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for delcom904x-0.5.0.tar.gz
Algorithm Hash digest
SHA256 a1a960ec92ae053641db1aec166414e2b538ecd256766faaa3982cdaec2ffd4e
MD5 46f8d7a4cddccdb7f2ecf0a2b8190892
BLAKE2b-256 87dcdbfb6f207112411e012cc1eabb5e255e3cd69f2ccd83cb6dd76840eba2f3

See more details on using hashes here.

Provenance

The following attestation bundles were made for delcom904x-0.5.0.tar.gz:

Publisher: lint_package_publish.yml on linville/delcom904x

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file delcom904x-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: delcom904x-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for delcom904x-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d959ecea22ab8e649160902cb5026d03deac10748623a1947aee71d9fd79ff7d
MD5 6a1814be0815126dff96e8e7fbb78534
BLAKE2b-256 0dbdc15a991c58612c7c8ab896985f1a479879e81bb08c499c87b3bb21f8f7cb

See more details on using hashes here.

Provenance

The following attestation bundles were made for delcom904x-0.5.0-py3-none-any.whl:

Publisher: lint_package_publish.yml on linville/delcom904x

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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