mirror of
https://github.com/bigbeartechworld/big-bear-scripts.git
synced 2026-08-04 19:15:12 -04:00
Add a create config script for frigate
This commit is contained in:
5
frigate-casaos/README.md
Normal file
5
frigate-casaos/README.md
Normal 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)"
|
||||
```
|
||||
24
frigate-casaos/create_config.sh
Normal file
24
frigate-casaos/create_config.sh
Normal 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"
|
||||
Reference in New Issue
Block a user