Aircoookie / WLED

Control WS2812B and many more types of digital RGB LEDs with an ESP8266 or ESP32 over WiFi!
https://kno.wled.ge
MIT License
14.53k stars 3.11k forks source link

Play .tpm2/.fseq/Jinx .dat files from sd card #627

Open harueg opened 4 years ago

harueg commented 4 years ago

Really great software ! Thank you !

Would it be possible to read tpm2 files from a sd card.

file format : https://www.ledstyles.de/index.php?thread/18969-tpm2-protokoll-zur-matrix-lichtsteuerung/

Existing stand alone software : https://github.com/TheChief79/tpm2arduino

https://hackaday.io/project/5714-glediator-from-sdcard-arduino

Thanks !

Aircoookie commented 4 years ago

Hi, that indeed seems like a very good addition. Additionally I've received a request for being able to playback .fseq files (LED data format xLights uses), so those two feature requests are very similar except for the specific protocol used!

harueg commented 4 years ago

Yep, that would be great both protocols should work for me. Thank you

harueg commented 4 years ago

Hi @Aircoookie Any news on this topic ?

Thanks

Harald

Aircoookie commented 4 years ago

Hi! No, sorry. I know it's been a while and this is definitely coming, but I'll need to add some other features first, like basic file sysyem support.

harueg commented 4 years ago

Ah, ok. So I will keep looking forward to it !

Thanks and good night Harald

Legsmaniac commented 4 years ago

Cool! I'll look forward to this. This is something that fits nicely in with my recent requests too. Thank you.

timdonovanuk commented 3 years ago

+1 to this! Would be cool to see FSEQ format support in WLED - you could then just create an effect/show in XLights and upload and have it appear as an effect

pbolduc commented 3 years ago

Related issue #1278

harueg commented 3 years ago

Hi @Aircoookie

Just trying, well a programmer, to get this fseqlib modified to neopixel(bus), because fastled still doesn't support rgbw. That's trickier than thought. Would be great, if that implementation in WLED would work some when. Some pictures from a recent project with "glitter" effect. 20210109-9T4A2848 20210109-9T4A3298 20210109-9T4A3490

processor83 commented 3 years ago
harueg commented 3 years ago

Hi @processor83 Hi @Aircoookie

I think playing fseq would be sufficiently awesome.
Integrating it as an effect would be the easiest from the UI side think, speed and brightness setting are already there. Each fseq file on the sd card would be a separate effect. How is FPP remote working ? How would you integrate WLED into Falcon Player ?

processor83 commented 3 years ago

There is the fpp remote protocol I guess when a device is setup as a fpp remote the master detect it automatically and it send information to the remote which sequence to play and some packer to keep it in synch.

It could be a fseq effect you select the. You have a drop down menu for options to choose a sequence and play it in loop or to shuffle or fpp remote and in fpp remote it would follow the fpp master. Falcon pi player is a sequence player and interface for some controller but i don't talk about a falcon controller itself. Espixelstick have this fpp remote feature and I think they developed the library for this. I think wled ddp library used in wled come from espixelstick.

constant-flow commented 2 years ago

I worked on TPM2 playback and prepared it to be PR-able. Currently it supports playback from LittleFS (Flash) and from SD card if available, i tested with an ESP32-POE-ISO from Olimex. The recording can be uploaded via the <ESP-IP>/edit route.

I went for integrating it via the Presets (not as an effect) so loading it means something like this JSON query {"tpm2":{"file":"/record.tpm2"}} and having a record.tpm2 either on SD (first checked) or LittleFS (secondly checked).

You can also playback the animation in a specific segment {"tpm2":{"file":"/record.tpm2", "seg":{"id":2}}

The dev-fork-branch Make sure to use the special environment env:esp32_eth_sd or at least steal the board_build.partitions = tools/WLED_ESP32_4MB_1MB_FS.csv and ... -D WLED_USE_SD if you want to give it a shot with SD card

processor83 commented 2 years ago

I think any file playback should be set via the synch network interface page since it s a data source.

Envoyé de mon iPhone

Le 27 oct. 2021 à 09:50, Constantin Wolf @.***> a écrit :



I worked on TPM2 playback and prepared it to be PR-able. Currently it supports playback from LittleFS (Flash) and from SD card if available, i tested with an ESP32-POE-ISO from Olimex. The recording can be uploaded via the /edit route.

I went for integrating it via the Presets (not as an effect) so loading it means something like this JSON query {"tpm2":{"file":"/record.tpm2"}} and having a record.tpm2 either on SD (first checked) or LittleFS (secondly checked).

The dev-fork-branchhttps://github.com/constant-flow/WLED/tree/tpm2-recording-playback

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/Aircoookie/WLED/issues/627#issuecomment-952951154, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIPFWE6CZKZFMX32YS6SBMTUJAGR7ANCNFSM4KLS24UQ.

constant-flow commented 2 years ago

Can you elaborate on that?

Enable and toggle it in the "Sync Interfaces", that could be done. When the playback is running, it behaves as if live data comes via network (web interface overlay). I like the configuration via the presets as it is quite easy to adjust. Updating an animation is also quite usable via the /edit page (maybe it will also in the future support upload to SD)

This allows an "unlimited" amount of different playback files to be triggered via presets, so this allows interactive LED installations. In the "sync interfaces" i rather see options i change once, until my setup is running as expected.

processor83 commented 2 years ago

It’s because I see in the fpp remote optics of playing fseq files. That you could set it has and fpp remote and it will playback in synch so in this optic I was seeing it in the synch interface page to enable it. But it would be nice to select a file in a preset and then this allow to make playlist of many files and effect mixed.

Envoyé de mon iPhone

Le 27 oct. 2021 à 12:05, Constantin Wolf @.***> a écrit :



Can you elaborate on that?

Enable and toggle it in the "Sync Interfaces", that could be done. When the playback is running, it behaves as if live data comes via network (web interface overlay). I like the configuration via the presets as it is quite easy to adjust. Updating an animation is also quite usable via the /edit page (maybe it will also in the future support upload to SD)

This allows an "unlimited" amount of different playback files to be triggered via presets, so this allows interactive LED installations. In the "sync interfaces" i rather see options i change once, until my setup is running as expected.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/Aircoookie/WLED/issues/627#issuecomment-953075797, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIPFWE6RAOJH6D6GIKPWR5DUJAWM5ANCNFSM4KLS24UQ.

constant-flow commented 2 years ago

Check PR comment here for most recent update on this 😀

It's now implemented as two usermods (SD & Playback)

blazoncek commented 1 year ago

Thanks to @constant-flow SD card support has been added in #2877