Skip to main content

OBS integration with Luxafor LED devices

Project description

obs-tally-luxafor

obs-tally-luxafor is a Python package that integrates OBS (Open Broadcaster Software) with Luxafor LED devices. It listens for scene changes via OBS WebSocket and automatically updates the color of your Luxafor device.

Features

  • OBS Integration: Uses obsws-python to listen for scene changes.
  • Luxafor Control: Provides a simple API client to control Luxafor LED devices (brightness, color, patterns).

Installation

To install the package in development (editable) mode:

cd obs-tally-luxafor
pip install -e .

After publishing to PyPI, you can install via:

pip install obs-tally-luxafor

Configuration

The default configuration in obs_tally_luxafor/cli.py includes:

  • Luxafor API:

    • BASE_URL: The URL of your Luxafor API server (default: http://127.0.0.1:5383).
    • SECRET_TOKEN: The secret token for the Luxafor API (default: luxafor).
  • OBS WebSocket:

    • HOST: OBS host (default: localhost).
    • PORT: Port for OBS WebSocket (default for OBS WebSocket v5 is 4455).
    • PASSWORD: Password for OBS WebSocket (default: password).

Customize these settings as needed.

Usage

Once installed, run the integration using the command-line script:

obs-tally-luxafor

This command will start the OBS event listener. When the current program scene changes, the package will change the Luxafor LED color accordingly.

API Reference

LuxaforClient

The LuxaforClient class (found in obs_tally_luxafor/client.py) provides methods to interact with your Luxafor device:

  • change_color(color)
    Changes the LED color to the specified hex value.

  • play_pattern(pattern_id)
    Plays a pre-defined lighting pattern on the device.

Dependencies

License

This project is licensed under the MIT License.

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

obs_tally_luxafor-0.1.3.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

obs_tally_luxafor-0.1.3-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file obs_tally_luxafor-0.1.3.tar.gz.

File metadata

  • Download URL: obs_tally_luxafor-0.1.3.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.6

File hashes

Hashes for obs_tally_luxafor-0.1.3.tar.gz
Algorithm Hash digest
SHA256 8988fe0e6ddd0b30f66b61f5e57e1ccc0869f1b7ee31ad82fd6c948beba5b0ae
MD5 0dc0071b36a3d40ec3e21e7f4a4e8ce1
BLAKE2b-256 1d331f20f51f34710793cd82aecc80f22a4dbd4fe869998f875422085c39df52

See more details on using hashes here.

File details

Details for the file obs_tally_luxafor-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for obs_tally_luxafor-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d920275b58d02a477e72f440f51e1ad013c2e5893c42d46e4053f585064453be
MD5 15def7aede2bdb9cdf93258b39858e68
BLAKE2b-256 0e2609495507f333d84d9b9f3eefc7a7d55d7ecbf2614c8a376451b6e8f4da1e

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