marcus-j-davies / nvr-js

A simple, lightweight, but very functional NVR aimed at 24/7 recording using nodejs.
MIT License
25 stars 13 forks source link

disk name invalid, using / as default #2

Closed paperjack93 closed 2 years ago

paperjack93 commented 2 years ago

Hello, I am running this on a raspberry pi and I keep getting message "disk name invalid, using / as default" Any ideas?

marcus-j-davies commented 2 years ago

Hello,

storageVolume should be the root of a volume, it should not be a sub folder of that Volume.

I.e if I mounted a HD at /volumes/CCTV then that is what you should put. To be fair, it won't cause any issues putting a Subfolder, but the size on the UI won't be correct.

paperjack93 commented 2 years ago

Hi, I solved this by adding a storageDrive variable that uses the actual drive (for space) and kept the storageVolume as the place where files are saved

marcus-j-davies commented 2 years ago

@paperjack93

Cool!

I'm working on (have almost finished) V2 - which has a much polished UI (the gist of it) it has some breaking changes (and of course a few fixes) - but keep an eye out.

image

marcus-j-davies commented 2 years ago

@paperjack93

It might be worth adding this to your input config also - I will be adding it by default in the example config for V2

stimeout: '30000000'

see here: https://github.com/marcus-j-davies/nvr-js/blob/d120b9901936a249ca9013e3044719c82b69b1cb/nvrjs.config.example.js#L32

I found after 3 days - my cameras stopped producing frames, which caused ffmpeg to halt - this setting allows ffmpeg to restart after an amount of time of no frames being received.