blakeblackshear / frigate-hass-addons

Frigate hass.io addons
MIT License
205 stars 118 forks source link

HassOS Addon : Volume mapping media to Secondary hard disk #22

Open ceaswaran opened 3 years ago

ceaswaran commented 3 years ago

Hi I am using Frigate HassOS Addon & the media, clips, recordings are stored in /usr/share/hassio/media which is my hard drive 1

I want to store the media,clips, recordings in my secondary hard drive. (Hard drive 2, which is  /media/nas/NVR) I don't see any settings to change that in the addon

Please help

boardyuk commented 3 years ago

I would also like to know how to do this as my primary storage is not large enough to hold the media.

Thanks

jdesai61 commented 3 years ago

I have a similar problem, but I would like to store my clips and recordings on an NFS mount. My homeassistant container mounts the NFS folder as /media using an automation. But Frigate add-on only sees empty /media and creates a /media/frigate directory

jdesai61 commented 3 years ago

@blakeblackshear - Would it be possible for the add-on to provide a startup hook? For example, a name of the startup script (/media/frigate/startup-script.sh)) in the configuration so we could mount drives or perform any other tasks before the rest of addon processes start? Thanks

jdesai61 commented 3 years ago

I tried using an automation to mount NFS drive in the addon docker instance, but nfs-common client is not installed by default. As I would like to do continuous recording and my local disks are not large enough. Even if I install nfs-common, the add-on processes start before I can mount the drive. I am reverting back to using ubuntu VM with Proxmox rather than the add-on.