smolgrrr
10 months ago
committed by
GitHub
5 changed files with 30 additions and 18 deletions
@ -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,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 |
Loading…
Reference in new issue