Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
tlamadon opened this issue Oct 10, 2023 · 5 comments
Closed
Assignees

Comments

@tlamadon
Copy link

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
Copy link
Owner

JurajNyiri commented Oct 10, 2023

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
Copy link

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:

  • \storage_1\folder\recordings
  • 192.168.x.xxx:folder\recordings
  • storage_1
    None of these can download videos to my NAS, instead, a new folder named with the same string as all my above tested name occurs in the path: /homeassistant

Can anyone help me with this problem?

@JurajNyiri
Copy link
Owner

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
Copy link

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:

  • Name: storage_1
  • Server: 192.168.x.xxx
  • Protocol: CIFS
  • Remote share: folder\recordings

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
Copy link
Owner

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants