teddycloud
teddycloud copied to clipboard
cycle through files (feature request)
Hi team, thank you for your great work, I appreciate what already is possible in addition to the Boxine cloud. For some tonies i have more stories than Boxine offers. I converted them and placed them inside the TC directory plus a index file, e.g.
500304E0 500304E0.001 500304E0.002 500304E0.003 index.002.003
There is a script that looks up the current play index (index.>002<.003), increments it and copies 500304E0.003 to 500304E0. This way i can cycle through the different files. The second number references to the maximum number of files. It would be a fantastic feature, especially for small children, to trigger this script by e.g. twice times triggering freshness and the next presented tonie will have it's script ran or TC make the copying by itself. Even with a more sophisticated web page, I think that this would be great for small children.
Hey there, I really like this idea.
Triggering this feature would be a bit difficult, as you would need to do a freshnessCheck after triggering it (and changing the active file). This would be the most important thing to do. I have the following in my head:
- Putting the desired figurine onto the box and wait for it to start playing
- Remove the figurine
- Put the box ears down (I don't know if we can detect other orientations via RTNL, too). Or maybe tilting the box 45° to left/right.
- Do a freshnessCheck headsdown (if possible)
- Change the active file
- Answer the freshnessCheck with the mark that the tags content has changed
- Place the tag on the box again, and it should download the new content
For the content files itself, I would like to set a flag in the content.json If you would your file system links, there is no need to copy files and having a file indicating which one is active.
Wouldn't it work like this? trigger freshnessCheck -> start timeout 1 trigger freshnessCheck -> within timeout 1 -> start timeout 2 figurine placed on box -> within timeout 2 -> change files -> go on serving local content
The problem is that the freshnessCheck has the information about the changes. You don't want to invalidate the file and redownload it if there was no change. I currently think tiling the box to a side would be the most intuitive thing to do.
yes, you're correct, i tried it, didn't even work... it has to be made three time:
trigger freshnessCheck -> start timeout 1 trigger freshnessCheck -> within timeout 1 -> start timeout 2 figurine placed on box -> within timeout 2 -> change files trigger freshnessCheck to download new content
anyway, i think this is the easiest way for a child