I want to share the result of a long and painfull vibe coding session I have no idea what’s under the hood here but it’s working very pleasantly for me and gives a much more user flow to handling new custom contents.
-Parses the TAF file to automatically search for a matching cover, lets you customize the search or manually upload a cover as well
-stores the covers in your teddycloud
-automatically creates the JSON for the new custom tonie and adds it to the file
Just build it into a docker and give it a spin. The only requirements are access to the files, I mounted the folders via SMB and access to the teddycloud to communicate with the API.
Again a word of caution: 100% vibe coded without manual code checking or adjustments. Only tested briefly. Feel free to contribute and optimize where needed.
Overview of all TAF files inkluding the corresponding Tonie (differenciates between official and custom and parses the photos and descriptions for the offial ones as well)
Example dialogue for adding a new custom tonie based on an uploaded TAF. It ready the available information from the TAG and tries to find a suitable cover via Musicbrainz. The search promt can be manually overwritten for better results. The cover is then automatically downloaded and stored. Manual upload via an upload dialogue or drag and drop is also possible.
Preview of the generated JSON, the number should automaically count up to pick the next available one. Save automatically enters it into the existing file after creating a backup.
The linking dialogue shows all available tonies, official and custom. Web streams and the like are not supported and still have to be manually configured via the Teddycloud UI.
Thanks for your post and for your work! I can’t complete the wizard setup. On step 5 I get the error message ‘SetupConfiguration’ object has no attribute ‘use_smb’. What is missing?
My config.yaml
teddycloud:
url: http://192.168.22.237 # Change to your TeddyCloud URL
api_base: /api
timeout: 30
Hi, I’ve tried to setup this container. had the same error at the end of setup with the smb, so I deleted the smb usage in the setup.py.
in the ui I get this error, but in my portioner logs seems to be no error.
@ [Xnitro_HD]
Make a copy of tonies.custom.json. Try to clear the tonies.custom.json and reload and see if with an empty file it would work. I think the content cannot be parsed…
I got it working now. I had 2 errors. One was the rights weren’t quite as they should be and the second error was a mistake within the teddy cloud url. But I got it working in the end thnk you!
thanks, based on your first feedback regarding the setup error, I had a look at the smb topic and deleted the smb part in the setup.py => so setup were able to finish.
Now I’m one step further.
From the logs, I could see that the error was due to missing fields in my Custom.Tonie.json. “Failed to get TAF library: 1 validation error for TonieModel no Field required [type=missing, input_value={‘model’: ‘testmodel’, …}, input_type=dict] For further information visit ``https://errors.pydantic.dev/2.5/v/missing”
I hadn’t added the field “no:” to some of them, which hadn’t been a problem for Teddycloud itself so far, but led to the error here.
After I added “no:” to all of them, the error was gone.
However, there now seem to be performance and timeout issues when scanning the library. This may be due to the number of files I have, which is over 800.
Please give it another try with the update. All the SMB nonsense is an artifact from the initial idea of connecting to SMB from within the Docker. Claude Opus just fixed what Claude Sonnet messed up Everyone that actually knows code, feel free to commit pull requests.