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

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

Open
harueg opened this issue Jan 25, 2020 · 18 comments · May be fixed by #2413
Open

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

harueg opened this issue Jan 25, 2020 · 18 comments · May be fixed by #2413
Labels
enhancement usermod usermod related

Comments

@harueg
Copy link

harueg commented Jan 25, 2020

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
Copy link
Owner

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!

@Aircoookie Aircoookie changed the title Play tpm2 files with sd card Play tpm2/fseq files from sd card Jan 26, 2020
@harueg
Copy link
Author

harueg commented Feb 3, 2020

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

@harueg
Copy link
Author

harueg commented Jun 1, 2020

Hi @Aircoookie
Any news on this topic ?

Thanks

Harald

@Aircoookie
Copy link
Owner

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
Copy link
Author

harueg commented Jun 1, 2020

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

Thanks and good night
Harald

@Legsmaniac
Copy link

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

@Aircoookie Aircoookie changed the title Play tpm2/fseq files from sd card Play .tpm2/.fseq/Jinx .dat files from sd card Jun 13, 2020
@timdonovanuk
Copy link

+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
Copy link
Contributor

pbolduc commented Dec 19, 2020

Related issue #1278

@harueg
Copy link
Author

harueg commented Mar 18, 2021

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
Copy link

  • for this feature and if it happen would be super nice if sych feature would include this or FPP remote mode would be crazy :P.

@harueg
Copy link
Author

harueg commented Mar 21, 2021

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
Copy link

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
Copy link
Contributor

constant-flow commented Oct 27, 2021

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
Copy link

processor83 commented Oct 27, 2021 via email

@constant-flow
Copy link
Contributor

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
Copy link

processor83 commented Oct 27, 2021 via email

@constant-flow
Copy link
Contributor

Check PR comment here for most recent update on this 😀

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

This was linked to pull requests Oct 10, 2022
@blazoncek
Copy link
Collaborator

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

@softhack007 softhack007 added the usermod usermod related label Jan 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement usermod usermod related
Projects
None yet
9 participants