API for scrolling text, then revert to playlist

Hello - I have a playlist of (3) visual effects in a loop, repeating. I have a need to display some scrolling text on an event generated by NODE-RED. Any suggestions on how a scrolling text event can trigger WLED (that would be the JSON API), then after, say, 15 seconds, have the playlist be invoked again showing visual effects (no text). ?

Most of the time, the WLED matrix display will be showing cool WLED animations, but several times a day, I want some custom scrolling text to be displayed. The text is dynamic. NODE-RED would trigger the WLED controller to display the variable string as the scrolling text - then - go back to the playlist.

I have considered going down the rabbit hole in NODE-RED to look into timed events/etc and then simply send a JSON API event to start the playlist over again (if that’s possible - I’m sure there is something in the WLED API to support this). I was wondering if there is an easier way to just set that up in WLED itself.

Thanks in advance for suggestions and ideas.

Not sure what is the question TLDR , make a short version , scrolling text api is
{"seg":[{"id":0,"n":"My text"}]}

That can be used from presets or external sources like NODE-RED , if you need the text to be dynamic then replace the “My text” with a variable

Hello - The question was: Any suggestions on how a scrolling text event can trigger WLED (that would be the JSON API), then after, say, 15 seconds, have the playlist be invoked again showing visual effects (no text). ?

I’ve come up with a work-around using NODE-RED. I’ve torn down my lab, as such I have no reference material at this time until I dust the project off again in the new year.

The question was centered around 1) displaying text dynamically and during certain events triggered in NODE-RED and 2) Reverting back to animations / etc (with no text) after a prescribed time line.

Going to inspect how to close this thread.

WLED (internally) has a notion of temporary preset which stores current state (not playlist).
Unfortunately it has no external API.

So if you write a usermod you can employ that.

Good day @blaczoncek. I am not 100% clear on what a usermod is, I’ll look into that. Thank you for that information. For clarity, as you saying there is no API available to ‘start’ a preset? (programmatically the equivalent of me logging into the WebUI and pressing on a preset button). Thanks again!

Please see KB

You can save a preset and load it via JSON API. Unfortunately not temporary preset.

Thanks - that will likely solve the challenge. I just have to program node-red appropriately. Shame I can’t have it load/trigger a previously saved preset via the API. that would solve a lot of trouble!

Correction: Playlist

If you can handle returned values you can store previous preset/playlist in external system.