Add a create config script for frigate

This commit is contained in:
Christopher
2023-08-26 10:41:45 -05:00
parent b7a96f887e
commit 8804b02d0c
2 changed files with 29 additions and 0 deletions

5
frigate-casaos/README.md Normal file
View File

@@ -0,0 +1,5 @@
# Create a config.yml
```bash
bash -c "$(wget -qLO - https://raw.githubusercontent.com/bigbeartechworld/big-bear-scripts/master/frigate/create_config.sh)"
```

View File

@@ -0,0 +1,24 @@
#!/bin/bash
CONFIG_PATH="/DATA/AppData/frigate/config/config.yml"
# Ensure the directory exists
mkdir -p $(dirname $CONFIG_PATH)
# Write the content to config.yml
cat > $CONFIG_PATH <<EOL
mqtt:
host: mqtt.server.com
cameras:
back:
ffmpeg:
inputs:
- path: rtsp://viewer:change_password@10.0.10.10:554/cam/realmonitor?channel=1&subtype=2
roles:
- detect
detect:
width: 1280
height: 720
EOL
echo "Configuration written to $CONFIG_PATH"