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.3.tar.gz (4.6 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.3-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: obs_tally_luxafor-0.3.tar.gz
  • Upload date:
  • Size: 4.6 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.3.tar.gz
Algorithm Hash digest
SHA256 81fd70938978bd845bfc50871a7ff1b4e3ab1f7f19b326eef50c27c2e0315ff4
MD5 38d6a4e8faca6e5c2c2d6233d2a4a2fd
BLAKE2b-256 36e53eca3ec3fb0133588dcc917176d4d5b7799f026e23671be1e1dcb74a38ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for obs_tally_luxafor-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a3b687579da8d561d21edd2d57ae7cf45dfe45d595316aac3e575ca08d895c41
MD5 55dca0e02ee24b45d5a5bc3a1be0e9b7
BLAKE2b-256 7d81e692a2e0f92e61b83578b87009f19439825f6b2cd1068916e03996edb0ef

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