Wiki source code of UDP Input
Version 6.2 by Alexander Mott on 2025/08/28 18:28
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
4.1 | 1 | ShowRunnerCLC™ can accept commands via UDP. Feedback is not provided. |
![]() |
1.1 | 2 | |
3 | Enable the UDP listener by specifying a port in the config: | ||
4 | |||
![]() |
5.1 | 5 | (% class="box" %) |
6 | ((( | ||
7 | ##"UdpListener": | ||
![]() |
1.1 | 8 | { |
9 | "ListenPort": 45794 | ||
10 | },## | ||
![]() |
5.1 | 11 | ))) |
![]() |
1.1 | 12 | |
![]() |
3.1 | 13 | Commands are sent to objects by GlobalId followed by the Action and then any relevant Properties (Properties are interpreted in the order shown). They are dot delimited and terminated with a carriage return. |
14 | Format: ##GlobalId.ActionName[.ActionPropertyValue]\x0D## | ||
![]() |
1.1 | 15 | |
![]() |
3.1 | 16 | To obtain a list of GlobalIds for objects use console command ##sr show global ids##. Global Actions use a GlobalId of 0. |
![]() |
1.1 | 17 | |
![]() |
3.1 | 18 | To obtain a list of Actions available by object type use console command ##sr show actions##. |
![]() |
1.1 | 19 | |
![]() |
6.1 | 20 | (% class="box" %) |
21 | ((( | ||
![]() |
6.2 | 22 | Example to Recall Scene 1 on Area with Global Id 51: |
23 | |||
24 | |||
![]() |
1.1 | 25 | From "sr show global ids": |
26 | ##+~-~-~-~--+~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~--+~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-+ | ||
27 | ~| ID | Type | Name | | ||
28 | +~-~-~-~--+~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~--+~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-+ | ||
29 | ~| 51 | Area | Boardroom A |## | ||
30 | ##+~-~-~-~--+~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~--+~-~-~-~-~-~-~-~-~-~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-~-~-~-~-~-~-~-~-~-~-~-~-~-~-+ | ||
![]() |
6.1 | 35 | ~| Area | RecallScene | Recalls the specified scene on this load | SceneId | False | Digital, Analog | 'SceneId'{{{:}}}(Integer)'Scene Number to recall' | |
![]() |
1.1 | 36 | +~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~--+~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~--+~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-+~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-+~-~-~-~-~-~-~-~--+~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~--+~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-+## |
37 | |||
![]() |
6.2 | 38 | |
39 | UDP Command to send: | ||
40 | ##51.RecallScene.1\x0D## | ||
![]() |
6.1 | 41 | ))) |
![]() |
1.1 | 42 | |
![]() |
6.1 | 43 | |
44 | |||
45 |