Skip to content
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 should have dedicated DDP mode #2836

Closed
simmonmt opened this issue Oct 18, 2022 · 2 comments
Closed

WLED should have dedicated DDP mode #2836

simmonmt opened this issue Oct 18, 2022 · 2 comments

Comments

@simmonmt
Copy link

Is your feature request related to a problem? Please describe.

WLED accepts DDP commands, acts on them, then ~immediately goes back to the programmed effect. This is fine if the DDP commands are milliseconds apart, but causes problems when they're separated by seconds. For example if you're using something like pixel mapper to locate pixels in 3D space for use in xLights. Pixel mapper turns on a pixel, waits a fraction of a second, captures an image, does CV, saves the coordinates, and repeats for the next pixel. If it can't find the pixel it leaves the pixel on while the user clicks the pixel location. These actions are easiest to implement when DDP commands are persistent -- when you can say "turn on pixel 3" in a single packet and have that persist for seconds at a time.

Describe the solution you'd like

I'd like a button in Sync settings that lets me say WLED will be controlled by DDP and nothing else. WLED should never use its builtin effects when that button is clicked.

Describe alternatives you've considered

A stream of DDP commands could be sent, rather than a single command. This would require either a complicated event loop or a background thread, though, which would be messy -- especially in Python.

Additional context

None

Thank you for your ideas for making WLED better!

@blazoncek
Copy link
Collaborator

Unfortunately this is not going to happen but you can send JSON API command {"live":true} to switch to live receiving mode indefinitely.
You can create a preset with that as well.

@simmonmt
Copy link
Author

Perfect. That will do nicely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants