From ba57bc9e512a7e7e3771ab42ce9483811147fd45 Mon Sep 17 00:00:00 2001 From: Leo Date: Fri, 23 Feb 2024 19:24:03 -0300 Subject: [PATCH] App Submission: Frigate (#843) Co-authored-by: nmfretz --- frigate/data/config.yml | 14 ++++++++++++++ frigate/data/storage/.gitkeep | 0 frigate/docker-compose.yml | 30 ++++++++++++++++++++++++++++++ frigate/umbrel-app.yml | 34 ++++++++++++++++++++++++++++++++++ 4 files changed, 78 insertions(+) create mode 100644 frigate/data/config.yml create mode 100644 frigate/data/storage/.gitkeep create mode 100644 frigate/docker-compose.yml create mode 100644 frigate/umbrel-app.yml diff --git a/frigate/data/config.yml b/frigate/data/config.yml new file mode 100644 index 0000000..2bbbf2a --- /dev/null +++ b/frigate/data/config.yml @@ -0,0 +1,14 @@ +mqtt: + enabled: False + +cameras: + name_of_your_camera: # <------ Name the camera + ffmpeg: + inputs: + - path: rtsp://10.0.10.10:554/rtsp # <----- The stream you want to use for detection + roles: + - detect + detect: + enabled: False # <---- disable detection until you have a working camera feed + width: 1280 # <---- update for your camera's resolution + height: 720 # <---- update for your camera's resolution diff --git a/frigate/data/storage/.gitkeep b/frigate/data/storage/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/frigate/docker-compose.yml b/frigate/docker-compose.yml new file mode 100644 index 0000000..2676aa5 --- /dev/null +++ b/frigate/docker-compose.yml @@ -0,0 +1,30 @@ +version: "3.7" + +services: + app_proxy: + environment: + APP_HOST: frigate_web_1 + APP_PORT: 5000 + PROXY_AUTH_ADD: "false" + + web: + privileged: true # this may not be necessary for all setups + restart: unless-stopped + image: ghcr.io/blakeblackshear/frigate:0.12.1@sha256:bb7f7e76a13eccef0b12704e5851cc774a12af1f12df387d6a70a796a3e938c3 + shm_size: "128mb" # update for your cameras based on calculation above + devices: + - /dev:/dev + volumes: + - /etc/localtime:/etc/localtime:ro + - ${APP_DATA_DIR}/data/config.yml:/config/config.yml + - ${APP_DATA_DIR}/data/storage:/media/frigate + - type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear + target: /tmp/cache + tmpfs: + size: 1000000000 + ports: + - "8554:8554" # RTSP feeds + - "8555:8555/tcp" # WebRTC over tcp + - "8555:8555/udp" # WebRTC over udp + environment: + FRIGATE_RTSP_PASSWORD: ${APP_PASSWORD} diff --git a/frigate/umbrel-app.yml b/frigate/umbrel-app.yml new file mode 100644 index 0000000..54f8d2b --- /dev/null +++ b/frigate/umbrel-app.yml @@ -0,0 +1,34 @@ +manifestVersion: 1 +id: frigate +category: automation +name: Frigate +version: "0.12.1" +tagline: A complete and local NVR. +description: >- + A complete and local NVR designed for Home Assistant with AI object detection. + Uses OpenCV and Tensorflow to perform realtime object detection locally for IP cameras. + + + 🛠️ SET-UP + + + - You can configure your cameras directly within the Frigate app, there is no need to manually edit the configuration files. + + + - Your RTSP password (if needed) is the "default app password" that is displayed on Frigate's page in the app store (shown after install). +releaseNotes: "" +developer: Blake Blackshear +website: https://frigate.video/ +repo: https://github.com/blakeblackshear/frigate +support: https://github.com/blakeblackshear/frigate/issues +port: 5004 +gallery: + - 1.jpg + - 2.jpg + - 3.jpg +path: "" +defaultUsername: "" +deterministicPassword: true +dependencies: [] +submitter: ~dibref-labter +submission: https://github.com/getumbrel/umbrel-apps/pull/843