RGB driver (edit)
Editor
The RGB driver edit menu can be accessed from any Peripheral
where the RGB driver channel has been selected as the Hardware. Access it by clicking on the Edit
button:
The edit menu will display the four currently active parameters of the RGB driver. For informational purposes, it will also display the GPIO pins currently assigned to all four color channels (Red, Green, Blue, and White), if available:
Parameters
The following four RGB driver parameters can be adjusted in this menu. After clicking on the Save
button,
the corresponding program is rendered immediately.
Mode
This is the primary program Mode of the RGB driver, which is rendered by the LED strip. For a detailed description of each mode and the relevance of the auxiliary parameters, please follow here.
Color
Determines the base Color for the RGB program, denoted using the standard 6-digit (non-abbreviated) RGB Hex code (web color), #RRGGBB
.
This setting is only effective for relevant programs, as detailed here.
Speed
The Speed of the RGB program is denoted as a non-dimensional unit.
This setting is only accessible when RGB
is selected as the Primary output.
For the exact interpretation and further details, please see here.
Brightness
Determines the maximum Brightness of the RGB program, represented as a percentage of the LED's maximum power output. It is used for a linear reduction of the LED's output duty cycle.
HTTP
Active RGB driver (channel 1) parameters of can be accessed directly. The device will accept HTTP requests at the following URLs related to:
- Mode:
(POST) http://[IPv4]
/var_set?param=rgbmod1&val=[VALUE]
(GET) http://[IPv4]
/var_request?param=rgbmod1
- Color:
(POST) http://[IPv4]
/var_set?param=rgbcolor1&val=[VALUE]
(GET) http://[IPv4]
/var_request?param=rgbcolor1
- Speed:
(POST) http://[IPv4]
/var_set?param=rgbspd1&val=[VALUE]
(GET) http://[IPv4]
/var_request?param=rgbspd1
- Brightness:
(POST) http://[IPv4]
/var_set?param=rgbbrt1&val=[VALUE]
(GET) http://[IPv4]
/var_request?param=rgbbrt1
POST: http://192.168.1.255/var_set?param=rgbmod1&val=5
will immediately start the playback of the
Candlelight
program on Channel 1 of the RGB module.
rgbmod1
, rgbcolor1
, rgbspd1
, and rgbbrt1
with rgbmod2
, rgbcolor2
, rgbspd2
, and rgbbrt2
.
Learn more in HTTP API.
MQTT
These parameters can also be accessed via MQTT using [PARAMETER]
= rgbmod1
, rgbcolor1
, rgbspd1
, rgbbrt1
, rgbmod2
, rgbcolor2
, rgbspd2
, and rgbbrt2
, respectively.
Learn more in MQTT API.
Topic: johndoe5896/home/rgb/sub/rgbmod2
Payload: 5
will immediately initiate the playback of the
Candlelight
program on Channel 1 of the RGB module.