Skip to content

Commit 6887c82

Browse files
authored
Add custom client section to the OS2L plugin (#68)
* Add custom client section to the OS2L plugin To help client developers better understand how the OS2L plugin works in QLC+ * OS2L Custom Clients DE translation
1 parent 94644a1 commit 6887c82

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

pages/09.plugins/08.os2l/default.v4.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,16 @@ Modify the 'os2lDirectIp' field by setting the IP:port where VDJ can reach QLC+.
2020
Once done, restart VDJ.
2121

2222
Now go to QLC+, enable the OS2L plugin on any universe. If you have set a specific port in VDJ, open the OS2L configuration dialog and set the same port there.
23-
Once done, QLC+ will start receiving signals from VDJ (joystick icon will blink beside the Universe box)
23+
Once done, QLC+ will start receiving signals from VDJ (joystick icon will blink beside the Universe box)
24+
25+
Custom Clients
26+
--------------
27+
28+
In order to support custom clients an Input Profile must be configured that maps OS2L message to channels. The OS2L plugin listens to the following events: `beat`, `cmd` and `btn`.
29+
30+
A `beat` message will change the value at channel 8342 to 255 if received. Example: `{"evt":"beat"}`.
31+
32+
A `cmd` message will set the the channel given by `id` to the value given by `param`. Example: `{"evt": "cmd", "id": "1", "param": 255}`.
33+
34+
A `btn` message can also be mapped. The channel is controlled by a CRC of the `name`. The easiest way to figure the channel is to use the automatic input mapper when setting up the Input Profile. The value sent to the channel is either 255 on `on` or 0 on `off`. Example: `{"evt":"btn","name":"Light Left 2","state":"on"}`.
35+

pages/09.plugins/08.os2l/default.v4_de.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,16 @@ Zuallererst müssen Sie VDJ mitteilen, wohin OS2L-Nachrichten gesendet werden so
2020
Wenn Sie fertig sind, starten Sie VDJ neu.
2121

2222
Gehen Sie nun zu QLC+ und aktivieren Sie das OS2L-Plugin in einem beliebigen Universum. Wenn Sie in VDJ einen bestimmten Port festgelegt haben, öffnen Sie den OS2L-Konfigurationsdialog und stellen Sie dort denselben Port ein.
23-
Sobald dies erledigt ist, beginnt QLC+, Signale von VDJ zu empfangen (das Joystick-Symbol blinkt neben dem Universe-Feld).
23+
Sobald dies erledigt ist, beginnt QLC+, Signale von VDJ zu empfangen (das Joystick-Symbol blinkt neben dem Universe-Feld).
24+
25+
Client-Konfiguration
26+
--------------
27+
28+
Um andere Clients zu unterstützen, muss ein Eingabeprofil erstellt werden, welches OS2L Nachrichten den Kanälen zuweist. Das OS2L Plugin hört auf folgende Events: `beat`, `cmd` und `btn`.
29+
30+
Eine `beat` Nachricht ändert den Wert des Kanals 8342 auf 255. Beispiel: `{"evt":"beat"}`.
31+
32+
Eine `cmd` Nachricht addressiert den Kanal mit der Nummer gegebn durch `id` und setzt den Wert gegeben durch `param`. Beispiel: `{"evt": "cmd", "id": "1", "param": 255}`.
33+
34+
Eine `btn` Nachricht kann auch Konfiguriert werden. Die Kanalnummer wird vom CRC des `name` Parameters abgeleitet. Der einfachste Weg um die Kanalnummer herauszufinden, ist durch den Automatikmodus im Eingabeprofil. Der Wert, der auf den Kanal gelegt wird, ist entweder 255 bei einem `state` von `on` bzw. 0 bei `off`. Beispiel: `{"evt":"btn","name":"Light Left 2","state":"on"}`.
35+

0 commit comments

Comments
 (0)