Recreate content DB

I currently have a small problem when new Tonies are added to the Teddycloud that have not yet been added to the tonies.json. As soon as the tonies have been added to tonies.json, the content database is not updated correctly.
It then looks like this in the new web GUI:

In the old web GUI it looks fine when I display the library, but when I display the content there is only the question mark image and the name of the tonie is not displayed.

Is there a way to reload the content? Unfortunately, restarting the Teddycloud doesn’t help.

You are using custom tags with original content?

You can assign the same tonie as model to the tags and it should be fine.

Edit: you are using original tonies?

I am using original tonies.
Today i put Jungle Pups: Marshall on the box. In the new web GUI there was only the big yellow question mark image.
Then i update the Tonies.json file.
After that the image changed to:
img_015
No name of the tonie is displayed. Only the ID of the figure.

You may set the model / article manually by editing the tag

it looks really weird as the content is identified, but the tonie not.

have you done anything else after first placement of the tag?

No, I have taken the following steps:

  1. put the original Tonie on the box and let it download.
  2. only saw the big yellow question mark in the new Web GUI.
  3. started the download of the Tonies.json file in the new Web GUI.

Then it looks in the new Web GUI like in the screenshot from yesterday.

In the old Web GUI, exactly this Tonie looks like this in Content:

And in the library like this:

You may set the model / article manually by editing the tag

I haven’t tried that yet. Since it has already happened with several Tonies, I thought it was related to the creation of the content database. But it only happens if the Tonies were downloaded before they were in the Tonies.json file.

Should I try editing the tag?

That’s really weird. I placed a new tonie on Friday and everything went well (the tonie was released 2022 or earlier, so no new one)

TC seems to be able to recognise the content of the tonie automatically. But the tonie itself not ( should be the same actually on a new one… so only the big image not tonie and small content image)

The tonies are newer ones, released recently or?

Yes, all Tonies were newer ones. And all of them were only added to the tonies.json file after the Tonie was already in the my TC.

I’ll add an “old” Tonie to the TC today or tomorrow and see what happens. By old I mean a Tonie that can already be found in the tonies.json file.

then lets wait what happens there.

please keep at least one as it is currently, beside them feel free to assign the right model to the tag

I have just put the Dikka Tonie on the box. It was listed immediately without any problems.
The manual assignment of the newer Tonies also worked perfectly.
It really only seems to happen when the Tonie is on the box before it has been added in the json file.

@0xbadbee could this really the problem? If on first placement the tonie is not yet in the tonies.json? Sounds reasonable as an assigned model on a original tonie is not overwritten by the original again.

The model is only set automatically, if it is empty. This should also work fine, if the tonies.json is missing the entry, and it is added later on (if the model is still unset!).
If it is diffferent and reproducible, this is a bug.

The small image at the bottom right is probably the one that was recognized according to the JSON file. The big picture is probably what is in the content.
Yesterday, when manually assigning the Tonies, I made the mistake of accidentally assigning the English Tonie to the Tonie Jungle Pups Marshall. Then Marshall was shown in large size with the English flag and Marshall without flag was shown in small size at the bottom right. Only when I had correctly assigned the Tonie did I only see one picture.

I think it’s a bug because I hadn’t done any manual assignment at the time I took the screenshots.

If I ever have a Tonie that is not yet in the json file, can I somehow help narrow down the problem?

The small image is the image for the actual content of a tonie/tag (=source). The big one is the tonie/tag itself (=model).

It could be reproducible by deleting the model out of the content json.

I can confirm the behavior. Had it several times with new Tonies. I will try to post a procedure to reproduce it.

Last night, I was able to demonstrate the behavior. For this I picked out the Tonie “Die Geschichte vom Löwen, der nicht schreiben konnte” which is already known at the Teddycloud. It has audio ID 1490954965 and tag ID 47C7***.

The following steps were necessary to see the large question mark with the small picture of the Tonie on the lower right:

  1. Disable Auto Update Tonies.json in Teddycloud
  2. Stop Teddycloud
  3. In the library directory delete file 1490954965.taf
  4. Delete folder 47C7**** in the content directory
  5. On the SD card of the Tonie box also delete in the content directory 47C7****
  6. Edit the Tonies.json file and delete the audio ID 1490954965 there and leave only [ ]
  7. Empty the hash value behind it up to [ ]
  8. Save file.
  9. Start Teddycloud and place the Tonie on the box

Then the Tonie is shown only with the big question mark.
Now activate Auto Update again and download the Tonies.Json.
Now you can see the big question mark with the little picture of the Tonie next to it.

I then repeated steps 1 to 5 and went straight to step 9.
Now the Tonie was immediately with the right picture without the big question mark in the Teddycloud.

Can you post the json of the tonie with big question mark and the small image?

This could help to identify the problem. Maybe empty model is not empty as it should be

I don’t have access to the Teddycloud at the moment. When I have access again later, I will post the content.

I compared both content files.
If the Tonie is displayed with a question mark, the Tonie model is missing from the file.
If the Tonie model is present in the content file, the image is also displayed correctly.

The content file is probably created once and then no longer automatically adjusted by updating the Tonies.Json file. The time stamp and the content of the file do not change with an update. And restarting the Teddycloud does not change anything either.