An interposer between the SRComp REST API and OSC controlled devices.
Project description
srcomp-live
A bridge between the SRComp REST API and OSC controlled devices. OSC is a de-facto standard for theatrical automation. Being able to directly interface these to SR's automation software allows for using industry standard tools such as Qlab, MagicQ & OBS.
Installation
srcomp-live can be installed directly from PyPi with:
pip install srcomp-live
If you (wrongly) believe that YAML is a better configuration format, support for YAML files can be included by running:
pip install srcomp-live[yaml]
This will provide the srcomp-live command that is used to interact with the package.
Configuration
Here is an example configuration file that sets a theoretical lighting controller to red 10 seconds before the start of a match and white if the match ends unexpectedly.
{
"api_url": "http://compbox.srobo/comp-api/current",
"devices": {
"lighting": "192.168.0.2:8000"
},
"actions": [
{
"time": -10,
"device": "lighting",
"message": "/set_color/{match_num}",
"args": ["#FF0000"],
"description": "Set the color of the lighting to red"
}
],
"abort_actions": [
{
"device": "lighting",
"message": "/set_color",
"args": ["#FFFFFF"],
"description": "Set the color of the lighting to white"
}
]
}
The configuration contains a number of sections.
The actions section contains a list of the actions that will be executed within the match. The keys available in each action are listed below.
| Key | Description |
|---|---|
| time | The relative number of seconds after the start time of the match to execute this action |
| device | The name of the device configured in the devices section to send this action to |
| message | The OSC message to send |
| args | A list of one or more arguments to send along with the OSC message |
| description | A description to include in the log message when executing the action |
The abort_actions section has the same set of keys as the actions section, except for the time key.
These actions are all executed if the system detects a match unexpectedly end or the time within a match decrease.
This can be used to stop sound effects and set lighting to an out of match state when match is delayed.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file srcomp_live-0.0.2.tar.gz.
File metadata
- Download URL: srcomp_live-0.0.2.tar.gz
- Upload date:
- Size: 14.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0fc190faa40215f27e741d7f7783a9a014815e38f87d1c4ae0bb92e5ce5d3a0d
|
|
| MD5 |
2612400e58f9546823d183bef476894a
|
|
| BLAKE2b-256 |
91cbb11ca6934264b10dcf49b04d45444e972cc3df4ac4785a4e41770be13a82
|
Provenance
The following attestation bundles were made for srcomp_live-0.0.2.tar.gz:
Publisher:
test_build.yml on WillB97/srcomp-live
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
srcomp_live-0.0.2.tar.gz -
Subject digest:
0fc190faa40215f27e741d7f7783a9a014815e38f87d1c4ae0bb92e5ce5d3a0d - Sigstore transparency entry: 169913615
- Sigstore integration time:
-
Permalink:
WillB97/srcomp-live@b1ff1d060487a53b5c479c86c6da4bc5f253ea83 -
Branch / Tag:
refs/tags/0.0.2 - Owner: https://github.com/WillB97
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
test_build.yml@b1ff1d060487a53b5c479c86c6da4bc5f253ea83 -
Trigger Event:
push
-
Statement type:
File details
Details for the file srcomp_live-0.0.2-py3-none-any.whl.
File metadata
- Download URL: srcomp_live-0.0.2-py3-none-any.whl
- Upload date:
- Size: 12.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5bcb393774a616673d838b328ea333e5c620917db4ea2a9fa20e39fbff50764e
|
|
| MD5 |
14d7e6e79543c8cf41a81f5666438484
|
|
| BLAKE2b-256 |
1d58cbea068d4f3103a859f12edba14866e0673b4b0c6cb8e6f2a5017d1d1d59
|
Provenance
The following attestation bundles were made for srcomp_live-0.0.2-py3-none-any.whl:
Publisher:
test_build.yml on WillB97/srcomp-live
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
srcomp_live-0.0.2-py3-none-any.whl -
Subject digest:
5bcb393774a616673d838b328ea333e5c620917db4ea2a9fa20e39fbff50764e - Sigstore transparency entry: 169913617
- Sigstore integration time:
-
Permalink:
WillB97/srcomp-live@b1ff1d060487a53b5c479c86c6da4bc5f253ea83 -
Branch / Tag:
refs/tags/0.0.2 - Owner: https://github.com/WillB97
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
test_build.yml@b1ff1d060487a53b5c479c86c6da4bc5f253ea83 -
Trigger Event:
push
-
Statement type: