Browse Source

Update frigate to 0.13.2 (#1014)

Co-authored-by: nmfretz <nmfretz@gmail.com>
main
smolgrrr 10 months ago
committed by GitHub
parent
commit
154b13c51c
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 14
      frigate/data/config.yml
  2. 0
      frigate/data/config/config.yml
  3. 4
      frigate/docker-compose.yml
  4. 22
      frigate/hooks/pre-start
  5. 8
      frigate/umbrel-app.yml

14
frigate/data/config.yml

@ -1,14 +0,0 @@
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

0
frigate/data/config/config.yml

4
frigate/docker-compose.yml

@ -10,13 +10,13 @@ services:
web:
privileged: true # this may not be necessary for all setups
restart: unless-stopped
image: ghcr.io/blakeblackshear/frigate:0.12.1@sha256:bb7f7e76a13eccef0b12704e5851cc774a12af1f12df387d6a70a796a3e938c3
image: ghcr.io/blakeblackshear/frigate:0.13.2@sha256:2906991ccad85035b176941f9dedfd35088ff710c39d45ef1baa9a49f2b16734
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/config:/config
- ${APP_DATA_DIR}/data/storage:/media/frigate
- type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
target: /tmp/cache

22
frigate/hooks/pre-start

@ -0,0 +1,22 @@
#!/usr/bin/env bash
set -euo pipefail
# If no config directory exists then this is a pre 0.13.2 install that needs to handle a frigate breaking change:
# https://github.com/blakeblackshear/frigate/releases/tag/v0.13.0
APP_DATA_DIR="$(readlink -f "$(dirname "${BASH_SOURCE[0]}")/..")/data"
CONFIG_DIR="${APP_DATA_DIR}/config"
OLD_CONFIG_FILE="${APP_DATA_DIR}/config.yml"
# Create the new config directory if it doesn't exist
if [ ! -d "${CONFIG_DIR}" ]; then
mkdir -p "${CONFIG_DIR}" && chown 1000:1000 "${CONFIG_DIR}"
# Move the old config.yml file into the config directory if it exists
# If it doesn't exist then the user has deleted it
if [ -f "${OLD_CONFIG_FILE}" ]; then
mv "${OLD_CONFIG_FILE}" "${CONFIG_DIR}/"
else
echo "The old Frigate config file does not exist."
fi
fi

8
frigate/umbrel-app.yml

@ -2,7 +2,7 @@ manifestVersion: 1
id: frigate
category: automation
name: Frigate
version: "0.12.1"
version: "0.13.2"
tagline: A complete and local NVR.
description: >-
A complete and local NVR designed for Home Assistant with AI object detection.
@ -16,7 +16,11 @@ description: >-
- 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: ""
releaseNotes: >-
This update takes Frigate from 0.12.1 to 0.13.2.
Full release notes are available at https://github.com/blakeblackshear/frigate/releases
developer: Blake Blackshear
website: https://frigate.video/
repo: https://github.com/blakeblackshear/frigate

Loading…
Cancel
Save