frigate: Add USB Coral detector
This commit is contained in:
parent
8242f11125
commit
e1604ce193
5 changed files with 23 additions and 0 deletions
|
@ -11,3 +11,5 @@ network_interfaces:
|
|||
netmask: 255.255.255.0
|
||||
proto: static
|
||||
nameservers: [172.20.26.1, 172.20.26.3]
|
||||
virt_install_devices:
|
||||
- 004.003
|
||||
|
|
1
roles/frigate/files/99-frigate.rules
Normal file
1
roles/frigate/files/99-frigate.rules
Normal file
|
@ -0,0 +1 @@
|
|||
SUBSYSTEM=="tty", ATTRS{idVendor}=="1a6e", ATTRS{idProduct}=="089a", MODE="0660", GROUP="frigate"
|
|
@ -10,6 +10,20 @@
|
|||
group: frigate
|
||||
shell: /sbin/nologin
|
||||
|
||||
- name: Allow podman to use devices
|
||||
ansible.posix.seboolean:
|
||||
name: container_use_devices
|
||||
state: true
|
||||
persistent: true
|
||||
|
||||
- name: Allow frigate to connect specific devices
|
||||
ansible.builtin.copy:
|
||||
dest: /etc/udev/rules.d/99-frigate.rules
|
||||
src: 99-frigate.rules
|
||||
mode: "0644"
|
||||
owner: root
|
||||
group: "{{ ansible_wheel }}"
|
||||
|
||||
- name: Create config
|
||||
ansible.builtin.template:
|
||||
dest: /etc/frigate.yml
|
||||
|
|
|
@ -11,6 +11,7 @@ ExecStart=/usr/bin/podman run \
|
|||
--volume /srv/frigate/config:/config:rw \
|
||||
--volume /etc/frigate.yml:/config/config.yml:ro \
|
||||
--volume /srv/frigate/media:/media/frigate:rw \
|
||||
--volume /dev/bus/usb:/dev/bus/usb:rw \
|
||||
ghcr.io/blakeblackshear/frigate:{{ frigate_version }}
|
||||
ExecStop=/usr/bin/podman stop --ignore frigate
|
||||
ExecStopPost=/usr/bin/podman rm -f --ignore frigate
|
||||
|
|
|
@ -2,6 +2,11 @@
|
|||
mqtt:
|
||||
enabled: false
|
||||
|
||||
detectors:
|
||||
coral:
|
||||
type: edgetpu
|
||||
device: usb
|
||||
|
||||
cameras:
|
||||
{% for camera in cctv_cameras %}
|
||||
{{ camera.name }}:
|
||||
|
|
Loading…
Add table
Reference in a new issue