Updated UDP Realtime Control (WARLS) (markdown)

This commit is contained in:
Aircoookie 2017-12-18 14:47:12 +01:00
parent e52f407598
commit 4f5672d260
1 changed files with 17 additions and 1 deletions

View File

@ -5,7 +5,7 @@ At the moment, the HTTP API and webserver will be disabled while active, Alexa a
It does not support the white channel of RGBW LEDs yet and uses the current brightness and gamma correction settings.
Byte 0 of the UDP packet has the value 1 which tells the server to use WARLS instead of the default notifier protocol.
Byte 1 tells the server how many seconds to wait after the last recieved packet before returning to normal mode, in practice you should use 1 (second) here in most cases.
Byte 1 tells the server how many seconds to wait after the last recieved packet before returning to normal mode, in practice you should use 1-2 (seconds) here in most cases so that the module returns to normal mode quickly.
After this the LED color information is transmitted like:
Byte | Description
@ -17,3 +17,19 @@ Byte | Description
When WARLS mode starts, all LEDs will be black. However, you don't have to change all LEDs using one packet.
Changing a single LED therefore only requires a packet of 2+4 bytes. All LEDs maintain their color until it is changed or the module exits WARLS mode because of a timeout.
### Setup with ARLS
The software now supports audio-reactive-led-strip!
1. Download [audio-reactive-led-strip](https://github.com/scottlawsonbc/audio-reactive-led-strip) and follow its installation instruction. Use python 3!
2. Insert the following code in led.py after line 66:
m.append(1);
m.append(2);
These are the first two bytes of the protocol.
3. In config.py set your led amount, ESP IP and WLED UDP notifier port. For FPS, a setting between 15-30 is recommended.
4. Run visualization.py! If you have a low amount of LEDS (e.g. 10) try lowering the sigma values in line 129-131.
5. If you have multiple WLED devices, you can sync them all with music.
Use the led count of your largest device and set the IP to X.X.X.255 (UDP broadcast).
You can adjust the position of the amplitude with the WARLS offset setting.
Note that web control currently does not work while it is active.