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_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_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.0.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.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: obs_tally_luxafor-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 5ddf4ae4cb31862b1b5cc06569b10b7410bb6bf3e699460b0954bfbf1b6f22a7
MD5 b84a5a34d3c082575a3719c4d616f8d2
BLAKE2b-256 839b9e3835ad68be52db4eb6c86e87c96f6cd17ed8e955747fb19845382ef8ca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for obs_tally_luxafor-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f1bdcc5c1fbe3413a04aef2dcabf2a462f638c7e21b102ad13c0ea2b777939c5
MD5 7fa211ce69e00056ecef816ea339ed09
BLAKE2b-256 de9ddd6d1faaf9c7b4cf509c65573049676794199b2851a4f6cc2e5cc532313e

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