JurajNyiri / HomeAssistant-Tapo-Control

Control for Tapo cameras as a Home Assistant component
Apache License 2.0
968 stars 81 forks source link

Feature Request: Documenation on how to construct media paths to recordings. #418

Closed tlamadon closed 9 months ago

tlamadon commented 9 months ago

Is your feature request related to a problem? Please describe.

This is a documentation request. The issue is that I can't construct the media path to the recordings. I would like to expose the recordings of my cameras (which I can see in the media folder) in a gallery card: https://github.com/TarheelGrad1998/gallery-card

I tried many different paths, but none worked successfully. I also don't know where I can try out some of these paths in home assistant, so I can't say for sure if the issue is coming from the gallery card of the Topo extension.

Describe the solution you'd like Only thing I would like is a documentation on the media path to the recordings.

Describe alternatives you've considered There are other plugins that create media paths from filesystem. But it seems like an overkill since the recordings are already available as media. I also considered running a separate web server, but that also seems a bit much.

Additional context Thank you for your help, you have done a terrific job! I love the extension!

JurajNyiri commented 9 months ago

Hi,

Media paths in www folder are randomly generated and the files are deleted after a short period on purpose - to protect the privacy of users because the www folder is not password or Auth protected at all.

Files are copied to hot storage - www only when requested to be played and then removed from there shortly after.

Files are stored in cold storage that is not accessible to browser in .storage folder using the entry_id of configured device as a folder name.

BrianZ96 commented 4 months ago

Hi developer, I'm trying to add a cold storage path to my network storage (a synology NAS) to remove the TF card on the camera. But I have an issue of constructing that cold storage path.

Now I have added the network storage using CIFS, let's say the name is storage_1, and the remote share is folder\recordings, and the server is 192.168.x.xxx, what should be the format of that cold storage path? I have tried:

Can anyone help me with this problem?

JurajNyiri commented 4 months ago

You will need to mount the folder via HA first and then provide the path from ha. Recordings are saved to SD card first, if you remove it there will be nothing to sync.

BrianZ96 commented 4 months ago

Hi Juraj, thank you for the reply! Yes, as you mentioned, I have mounted my NAS folder to the HA, and it has the following configurations:

My confusion comes at the

then provide the path from ha

part. What would be the path under such circumstance? I'll be greatly appreciated your generous help! Thank you!

JurajNyiri commented 4 months ago

Hi, see https://www.home-assistant.io/common-tasks/os/#network-storage .

My path is for example /share/InsideCameras/Bedroom.