Closed kohlsalem closed 5 months ago
Tested and it works. @ph1p Phil, unless yiu have issues with the naming of the marameters, i think this is goodd to be merged. It can hardly break anything existing. I intentionally did not distribute the handlers to the components (screen and plugin manager). I did that, but it unnececarily bloated the coding.
closed if favor of #100
New API for
Get Plugin List
To retrieve a list of available plugins in JSON format, make an HTTP GET request to the following endpoint:
Set Active Plugin by ID
To set an active plugin by ID, make an HTTP GET request to the following endpoint:
Parameters
id
(required): The ID of the plugin to set as active.Response
200 OK
with the message "Plugin Set".404 Not Found
with the message "Plugin not found".Set Brightness
To set the brightness of the LED display, make an HTTP GET request to the following endpoint:
Parameters
value
(required): The brightness value (0..255).Response
200 OK
with the message "Ok".404 Not Found
with the message "Invalid Brightness Value".