toniebox-reverse-engineering / teddycloud

teddyCloud is an open source server replacement for the Boxine Cloud
https://toniebox-reverse-engineering.github.io/docs/tools/teddycloud/
GNU General Public License v2.0
404 stars 31 forks source link

HowTo: Picture Path to use picture fro travel Tonie #206

Closed fila612 closed 2 weeks ago

fila612 commented 3 weeks ago

Hi,

I've put some content to my library and therefor I'd like to use a separate picture as it was described in this issue (link).

I've add this section into my tonies.custom.json: "no": "0", "model": "c-47110815", "language": "de-de", "category": "travel-tonie", "pic": "lib://pictures/traveltonie.png"

but I don't know which path I have to use to for traveltonie.png. This png is stored at the library path .../pictures/traveltonie.png

henryk86 commented 3 weeks ago

I had added a folder in the www directory where the unknown_img.png is placed.

e.g. folder custom_img

then you can link the image with „http://[url to teddycloud]/custom_img/image.png“

but be aware, adding a folder in www can be creating a conflict in future if a folder is added in teddycloud with the same name.

fila612 commented 2 weeks ago

thanks, that worked for me. had to add the www-folder to the shared docker volumes in portioner stack.

SciLor commented 2 weeks ago

thanks, that worked for me. had to add the www-folder to the shared docker volumes in portioner stack.

Don't add the www folder! It will break upcoming updates. Use a custom subfolder!