From 6e3e49337b2e377084549c24052780365e9faa42 Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 1 Apr 2024 06:36:57 -0400 Subject: [PATCH] Update frigate-install.sh - Download new input file - Create new config.yml - Link `/config/config.yml` and `/opt/frigate/config/config.yml` - Create log directories - Fix GID mismatch --- install/frigate-install.sh | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/install/frigate-install.sh b/install/frigate-install.sh index 0115afbe..6c5b372d 100644 --- a/install/frigate-install.sh +++ b/install/frigate-install.sh @@ -76,6 +76,34 @@ $STD npm run build cp -r /opt/frigate/web/dist/* /opt/frigate/web/ cp -r /opt/frigate/config/. /config sed -i '/^s6-svc -O \.$/s/^/#/' /opt/frigate/docker/main/rootfs/etc/s6-overlay/s6-rc.d/frigate/run +wget -qO /media/frigate/person-bicycle-car-detection.mp4 https://github.com/intel-iot-devkit/sample-videos/raw/master/person-bicycle-car-detection.mp4 +cat </config/config.yml +mqtt: + enabled: false +model: + path: /root/cpu_model.tflite +cameras: + test: + ffmpeg: + inputs: + - path: /media/frigate/person-bicycle-car-detection.mp4 + input_args: -re -stream_loop -1 -fflags +genpts + roles: + - detect + - rtmp + detect: + height: 1080 + width: 1920 + fps: 5 +EOF + +ln -sf /config/config.yml /opt/frigate/config/config.yml + +mkdir -p /dev/shm/logs/{frigate,go2rtc,nginx} +touch /dev/shm/logs/{frigate/current,go2rtc/current,nginx/current} +chmod -R 777 /dev/shm + +sed -i -e 's/^kvm:x:104:$/render:x:104:root,frigate/' -e 's/^render:x:105:root$/kvm:x:105:/' /etc/group msg_ok "Installed Frigate $RELEASE" msg_info "Installing Object Detection Models (Resilience)"