ph1p / ikea-led-obegraensad

ESP32/Arduino hack for the ikea OBEGRÄNSAD led wall lamp
MIT License
578 stars 78 forks source link

(feat) enhanced api #99

Closed kohlsalem closed 5 months ago

kohlsalem commented 5 months ago

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:

GET http://your-server/getpluginlist

Set Active Plugin by ID

To set an active plugin by ID, make an HTTP GET request to the following endpoint:

http://your-server/setplugin

Parameters

Response

Set Brightness

To set the brightness of the LED display, make an HTTP GET request to the following endpoint:

http://your-server/setbrightness

Parameters

Response

kohlsalem commented 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.

kohlsalem commented 5 months ago

closed if favor of #100