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
|
netmask: 255.255.255.0
|
||||||
proto: static
|
proto: static
|
||||||
nameservers: [172.20.26.1, 172.20.26.3]
|
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
|
group: frigate
|
||||||
shell: /sbin/nologin
|
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
|
- name: Create config
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
dest: /etc/frigate.yml
|
dest: /etc/frigate.yml
|
||||||
|
|
|
@ -11,6 +11,7 @@ ExecStart=/usr/bin/podman run \
|
||||||
--volume /srv/frigate/config:/config:rw \
|
--volume /srv/frigate/config:/config:rw \
|
||||||
--volume /etc/frigate.yml:/config/config.yml:ro \
|
--volume /etc/frigate.yml:/config/config.yml:ro \
|
||||||
--volume /srv/frigate/media:/media/frigate:rw \
|
--volume /srv/frigate/media:/media/frigate:rw \
|
||||||
|
--volume /dev/bus/usb:/dev/bus/usb:rw \
|
||||||
ghcr.io/blakeblackshear/frigate:{{ frigate_version }}
|
ghcr.io/blakeblackshear/frigate:{{ frigate_version }}
|
||||||
ExecStop=/usr/bin/podman stop --ignore frigate
|
ExecStop=/usr/bin/podman stop --ignore frigate
|
||||||
ExecStopPost=/usr/bin/podman rm -f --ignore frigate
|
ExecStopPost=/usr/bin/podman rm -f --ignore frigate
|
||||||
|
|
|
@ -2,6 +2,11 @@
|
||||||
mqtt:
|
mqtt:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
|
||||||
|
detectors:
|
||||||
|
coral:
|
||||||
|
type: edgetpu
|
||||||
|
device: usb
|
||||||
|
|
||||||
cameras:
|
cameras:
|
||||||
{% for camera in cctv_cameras %}
|
{% for camera in cctv_cameras %}
|
||||||
{{ camera.name }}:
|
{{ camera.name }}:
|
||||||
|
|
Loading…
Add table
Reference in a new issue