moonfire-nvr is fire

This commit is contained in:
bel
2024-08-31 11:25:08 -06:00
parent 60c011278f
commit 5aad9c980d
4 changed files with 200 additions and 0 deletions

1
testdata/moonfire-nvr/install.txt vendored Normal file
View File

@@ -0,0 +1 @@
https://github.com/scottlamb/moonfire-nvr/blob/master/guide/install.md

25
testdata/moonfire-nvr/setup.sh vendored Normal file
View File

@@ -0,0 +1,25 @@
#!/bin/bash
read -p "going to: https://github.com/scottlamb/moonfire-nvr/blob/master/guide/install.md as /etc/moonfire-nvr.toml"
echo '
[[binds]]
ipv4 = "0.0.0.0:29898"
allowUnauthenticatedPermissions = { viewVideo = true }
[[binds]]
unix = "/var/lib/moonfire-nvr/sock"
ownUidIsPrivileged = true
' | sudo tee /etc/moonfire-nvr.toml
sudo mkdir -p /var/lib/moonfire-nvr
sudo chmod -R 777 /var/lib/moonfire-nvr
moonfire-nvr init
read -p "1. create a SAMPLE DIR first,"
read -p "2. use like rtsp://192.168.0.83:8554/unicast with RECORD and DIR for MAIN and SUB"
read -p "3. modify SAMPLE DIR to retain N Mbps_/_8_*_120s disk (wyze at home is 5Mbps, so 75MB per 2min file (54GB per day) if noisy?)"
moonfire-nvr config
open http://localhost:29898
read -p "moonfire-nvr run"