-
-
Notifications
You must be signed in to change notification settings - Fork 390
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WLED controls in Mainsail #1413
Comments
Thx for your request! I don't think, that it will work fine, because wled is no part of Moonraker or Klipper. It's a third-party software. But I have to double-check it. |
WLED offers an JSON API to controll it. With that it is possible to implement a color picker. |
We actually want to have only one api between Mainsail and Host (Moonraker). So it would be nice if it could connect with Moonraker. |
That's reason I said to question the usecase for mainsail. |
Ok, thanks |
@meteyou hmm... just checked the moonraker repo. Guess you have a better undstanding of moonraker then i have. May have a look there. |
@rackrick mainsail only sends G-Codes for the klipper LEDs. So it would fit, but Moonraker must also manage the current state and update it via Websocket to the clients. This is what I have to check. |
|
@rackrick thats normal for gcode. you should get a notify back with the new state. |
@meteyou the notify_status_update contains pretty much everything else. but no wled information. If I compare it to the klipper led function. The next status_update contains the colors per channel... etc |
|
ahh.. find right now the docs for it: https://moonraker.readthedocs.io/en/latest/web_api/#get-strips. there are own API commands for it. |
there are... but they don't contain any color channel information. which we would need for the colorpicker 😅 |
Oh right. Only presets, brightness and on/off |
guess the "problem" is the possibilty of having each led in a different state.
what do you want to display in the colorpicker then? moonraker keeps track of the color states in the array |
This would fit. It's the same as klipper returns for Neopixel. And then we also need an API point to send new color commands. Atm moonraker only supports on/off from presets. |
We could use the gcode method for that or would you prefer an extra http endpoint for that? |
Because you get the update states via Moonraker directly, I would also prefer to send the commands via Moonraker with separate API points (Websocket/http). |
Any updates on this request ? |
Currently using gcodes to control WLED at the moment. Would love to see my WLED light pop up in the misc bar some day ;) |
+1 |
Requested feature:
Could it possible to have a color picker in a similar fashon to the neopixel support in Mainsail ( #1050 )?
Solves the following problem:
No response
Additional information:
No response
The text was updated successfully, but these errors were encountered: