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

Uploaded Python 3

File details

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

File metadata

  • Download URL: obs_tally_luxafor-0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 3dc7f0a96e74e576057f5d7171887f23382dc01f309c3778a41b88da9270144a
MD5 b91615090eb9d1cb5f7951ec40c0344f
BLAKE2b-256 7e747e29b90d8247e8e4995d9171445665bdf1319ebd2d49ab77b894241915ee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for obs_tally_luxafor-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3eaeb24b83c72610228c213db3a5b595e109f93134c7494166cf31a506b29730
MD5 698e549bc41c1fa09c47e4789c8d1c6e
BLAKE2b-256 a475315a1df440aba30a50f6d1cef50b0a311d1f4606873add7109b3249e2474

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