Skip to main content

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).
  • Command-Line Configuration: Customize connection parameters and behavior via command-line arguments.

Installation

To install the package in development (editable) mode:

cd obs-tally-luxafor
pip install -e .

After publishing to PyPI, you can install it via:

pip install obs-tally-luxafor

Configuration

The package can be configured both by modifying default values in the source code and via command-line arguments when launching the integration. The available command-line parameters include:

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: 4455 for OBS WebSocket v5).

  • --password
    Password for OBS WebSocket (default: password).

Scene Trigger:

  • --scene-name
    The scene name that should trigger the red LED color (default: scene). When the current program scene in OBS matches this value, the Luxafor LED will change to red. For any other scene, the LED will change to green.

Usage

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

obs-tally-luxafor [OPTIONS]

For example, to run with a custom scene name:

obs-tally-luxafor --scene-name "my_custom_scene"

To see all available options, run:

obs-tally-luxafor --help

This command will start the OBS event listener. When the current program scene changes, the package will update the Luxafor LED color accordingly, with detailed logs indicating which color is set and why.

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.

Metadata

Release files for obs-tally-luxafor 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for obs-tally-luxafor 0.3.1
File Size Uploaded
obs_tally_luxafor-0.3.1.tar.gz 4.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for obs-tally-luxafor 0.3.1
File Interpreter ABI Platform
obs_tally_luxafor-0.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 10.5 kB

Release files / obs_tally_luxafor-0.3.1.tar.gz

Download URL obs_tally_luxafor-0.3.1.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
83df49fbee0a14c187d779e341db7b1e7fe359142a09935069408a4ba1331567
BLAKE2b-256 checksum
How to use checksums
bf82cb66df26fb7e0053255c9514a3893eb53b95dee721aa297733fff3077983
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.6

Release files / obs_tally_luxafor-0.3.1-py3-none-any.whl

Download URL obs_tally_luxafor-0.3.1-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a75fdeaeda4128daa0857e1270777399a1f0702626b4ae3b924bb2f6aafbc804
BLAKE2b-256 checksum
How to use checksums
386dd9371ca0c473a9a7a0abeefb5a9382b66671b12816d51731dfed350a84f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.6

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 release files

0.3

2 release files

0.2

2 release files

0.1.3

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page