-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Lock in specific ledmap upon receiving DDP #3579
Comments
Will be solved by #3554 |
Available in 0.15.0 beta 1. |
Initial test indicates #3554 fix was successful in my setup as of 0.15.0b1. Thank you!! |
I think this is already possible - the "HTTP Request API" can be used to switch to a specific preset ID
|
Thanks for the reply. The fix in the main branch has met the use case.
But now I’m curious. How would I use this HTTP API from one WLED to tell another WLED to change to a specific preset? This would be really useful to me but I didn’t think it was possible. Today I use iOS shortcuts to do it.
…On Thu, Nov 21, 2024 at 2:46 AM Frank ***@***.***> wrote:
But there’s no way to automate this from the sending side unless we add an
API for telling the target WLED to switch to a specific preset (which I
would also like).
I think this is already possible - the "HTTP Request API" can be used to
switch to a specific preset ID
PL= | 1 to 250 | Applies entire preset
https://kno.wled.ge/interfaces/http-api/#presets
—
Reply to this email directly, view it on GitHub
<#3579 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACAFJ7XSYDW47GAJMWNJCML2BW2XXAVCNFSM6AAAAABSGV5EICVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOJQG43TCMZWGA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
@spblat maybe I misunderstood your question - when you asked for an API for the sending side, I was assuming that your "sending side" is something like XLights or falcon, so an external system that can issue commands to WLED APIs. I have no idea if this is possible also "from wled to wled". |
It is not. At least, not yet. |
Is your feature request related to a problem? Please describe.
When DDP is received by a WLED from another WLED, the ledmap that is active on the target WLED at that time is the ledmap that applies. If the target has more than one ledmap, we have no way from the sending side to be sure that the LEDs will be mapped correctly during DDP.
Describe the solution you'd like
Establish a specific ledmap that we will adopt when receiving DDP as a client. It should be probably simply be the default ledmap on the target WLED unless you really want another preference in the UI.
Describe alternatives you've considered
If I’m sending DDP to a WLED that usually has a particular ledmap, I could rewrite the ledmap on the sending wled, but relying on nested ledmaps doesn’t make much sense, and the problem remains—depending on the active preset at the time DDP begins we can’t be sure what map will apply.
Or I could switch the target WLED to a preset with the right ledmap before sending DDP. But there’s no way to automate this from the sending side unless we add an API for telling the target WLED to switch to a specific preset (which I would also like).
Additional context
I’m using wled to decorate derelict wall-mounted pinball playfields. The physical ledmap is the best use of finite string. The second ledmap is a logical arrangement of lamps according to their original purpose on the playfield, so that “chase” on a particular segment looks like it did when the game was intact. A third ledmap relates to an effort to make a 2D matrix out of the arrangement of lamps on a playfield. DDP is used to make a matrix out of up to 5 playfields. I’ll post a demo to #showcase in Discord when I’m ready to share. https://github.com/spblat/wled-ncp/tree/main/Playfields
Thank you for working on WLED :-D
The text was updated successfully, but these errors were encountered: