frigate: Initial version of role
This commit is contained in:
parent
cb0d0a949d
commit
cb7ca70d16
6 changed files with 139 additions and 0 deletions
19
roles/frigate/templates/frigate-container.service.j2
Normal file
19
roles/frigate/templates/frigate-container.service.j2
Normal file
|
@ -0,0 +1,19 @@
|
|||
[Unit]
|
||||
Description=Frigate Container
|
||||
Wants=network-online.target
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
User=frigate
|
||||
ExecStart=/usr/bin/podman run \
|
||||
--rm -p 127.0.0.1:8007:5000 \
|
||||
--name frigate \
|
||||
--volume /srv/frigate/config:/config:rw \
|
||||
--volume /etc/frigate.yml:/config/config.yml:ro \
|
||||
--volume /srv/frigate/media:/media/frigate:rw \
|
||||
ghcr.io/blakeblackshear/frigate:{{ frigate_version }}
|
||||
ExecStop=/usr/bin/podman stop --ignore frigate
|
||||
ExecStopPost=/usr/bin/podman rm -f --ignore frigate
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
20
roles/frigate/templates/frigate.yml.j2
Normal file
20
roles/frigate/templates/frigate.yml.j2
Normal file
|
@ -0,0 +1,20 @@
|
|||
---
|
||||
mqtt:
|
||||
enabled: false
|
||||
|
||||
cameras:
|
||||
{% for camera in cctv_cameras %}
|
||||
{{ camera.name }}:
|
||||
enabled: true
|
||||
ffmpeg:
|
||||
inputs:
|
||||
- path: "rtsp://viewer:{{ camera.pass }}@{{ camera.addr}}/h264Preview_01_sub"
|
||||
input_args: preset-rtsp-restream
|
||||
roles:
|
||||
- detect
|
||||
- rtmp
|
||||
- path: "rtsp://viewer:{{ camera.pass }}@{{ camera.addr}}/h264Preview_01_main"
|
||||
input_args: preset-rtsp-restream
|
||||
roles:
|
||||
- record
|
||||
{% endfor %}
|
Loading…
Add table
Add a link
Reference in a new issue