Pessoal,
Estou com dificuldades em fazer funcionar as notificações do Frigate.
Estou usando um Beelink EQ13 + Google Coral Dual Edge + Dual Edge TPU Adapter.
Frigate roda normal.
MQTT acho que tá normal tb. Pelo pouco que entendo o MQTT Explorer indica que tá ok, conforme imagem abaixo:
Tb estou conseguindo gravar em HD Externo conforme o tutorial @andregoncalvespires
A placa Coral foi reconhecida corretamente, conforme imagem abaixo:
Uso de CPU, com 11 câmeras full-hd, está entre 35% e 50%, conforme imagem abaixo:
Enfim, acho que está tudo rodando nos conformes. O problemas é que não sei mais o que fazer pra ter as notificações funcionando usando o Blueprint Frigate Notifications (0.12.0.4a).
Abaixo a configuração do Frigate:
detectors:
coral1:
type: edgetpu
device: pci:0
coral2:
type: edgetpu
device: pci:1
database:
path: /config/frigate.db
mqtt:
host: 192.168.1.32
port: 1883
topic_prefix: frigate
client_id: frigate
user: frigate
password: frigate1234
stats_interval: 60
ffmpeg:
hwaccel_args: preset-vaapi
detect:
width: 704
height: 480
fps: 5
enabled: true
snapshots:
enabled: true
timestamp: false
retain:
default: 7
record:
enabled: true
retain:
days: 7
mode: motion
events:
retain:
default: 7
mode: active_objects
pre_capture: 5
post_capture: 5
rtmp:
enabled: false
birdseye:
enabled: True
mode: objects
go2rtc:
streams:
Escada_principal:
- rtsp://admin:Teste123@654@192.168.1.22:554/cam/realmonitor?channel=1&subtype=0
Escada_sub:
- rtsp://admin:Teste123@654@192.168.1.22:554/cam/realmonitor?channel=1&subtype=1
Sala_reuniao_principal:
- rtsp://admin:Teste123@654@192.168.1.26:554/cam/realmonitor?channel=1&subtype=0
Sala_reuniao_sub:
- rtsp://admin:Teste123@654@192.168.1.26:554/cam/realmonitor?channel=1&subtype=1
Sala_projetos_principal:
- rtsp://admin:Teste123@654@192.168.1.27:554/cam/realmonitor?channel=1&subtype=0
Sala_projetos_sub:
- rtsp://admin:Teste123@654@192.168.1.27:554/cam/realmonitor?channel=1&subtype=1
Sala_administrativo_principal:
- rtsp://admin:Teste123@654@192.168.1.28:554/cam/realmonitor?channel=1&subtype=0
Sala_administrativo_sub:
- rtsp://admin:Teste123@654@192.168.1.28:554/cam/realmonitor?channel=1&subtype=1
Sala_treinamento_principal:
- rtsp://admin:Teste123@654@192.168.1.29:554/cam/realmonitor?channel=1&subtype=0
Sala_treinamento_sub:
- rtsp://admin:Teste123@654@192.168.1.29:554/cam/realmonitor?channel=1&subtype=1
Sala_laboratorio_principal:
- rtsp://admin:Teste123@654@192.168.1.31:554/cam/realmonitor?channel=1&subtype=0
Sala_laboratorio_sub:
- rtsp://admin:Teste123@654@192.168.1.31:554/cam/realmonitor?channel=1&subtype=1
Almoxarifado_principal:
- rtsp://admin:Teste123@654@192.168.1.34:554/cam/realmonitor?channel=1&subtype=0
Almoxarifado_sub:
- rtsp://admin:Teste123@654@192.168.1.34:554/cam/realmonitor?channel=1&subtype=1
Rua_Monsenhor_Salazar_principal:
- rtsp://admin:Teste123@654@192.168.1.35:554/cam/realmonitor?channel=1&subtype=0
Rua_Monsenhor_Salazar_sub:
- rtsp://admin:Teste123@654@192.168.1.35:554/cam/realmonitor?channel=1&subtype=1
Rua_Oswaldo_Cruz_principal:
- rtsp://admin:Teste123@654@192.168.1.36:554/cam/realmonitor?channel=1&subtype=0
Rua_Oswaldo_Cruz_sub:
- rtsp://admin:Teste123@654@192.168.1.36:554/cam/realmonitor?channel=1&subtype=1
Depositos_externos_principal:
- rtsp://admin:Teste123@654@192.168.1.38:554/cam/realmonitor?channel=1&subtype=0
Depositos_externos_sub:
- rtsp://admin:Teste123@654@192.168.1.38:554/cam/realmonitor?channel=1&subtype=1
Entrada_externa_principal:
- rtsp://admin:Teste123@654@192.168.1.39:554/cam/realmonitor?channel=1&subtype=0
Entrada_externa_sub:
- rtsp://admin:Teste123@654@192.168.1.39:554/cam/realmonitor?channel=1&subtype=1
cameras:
Escada:
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/Escada_principal
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp://127.0.0.1:8554/Escada_sub
input_args: preset-rtsp-restream
roles:
- detect
motion:
improve_contrast: true
mask:
- 500,40,500,21,682,21,682,40
objects:
track:
- person
filters:
person:
min_score: 0.55
threshold: 0.7
Sala_reuniao:
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/Sala_reuniao_principal
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp://127.0.0.1:8554/Sala_reuniao_sub
input_args: preset-rtsp-restream
roles:
- detect
motion:
improve_contrast: true
mask:
- 500,40,500,21,682,21,682,40
objects:
track:
- person
filters:
person:
min_score: 0.55
threshold: 0.7
Sala_projetos:
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/Sala_projetos_principal
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp://127.0.0.1:8554/Sala_projetos_sub
input_args: preset-rtsp-restream
roles:
- detect
motion:
improve_contrast: true
mask:
- 500,40,500,21,682,21,682,40
objects:
track:
- person
filters:
person:
min_score: 0.55
threshold: 0.7
Sala_administrativo:
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/Sala_administrativo_principal
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp://127.0.0.1:8554/Sala_administrativo_sub
input_args: preset-rtsp-restream
roles:
- detect
motion:
improve_contrast: true
mask:
- 500,40,500,21,682,21,682,40
objects:
track:
- person
filters:
person:
min_score: 0.55
threshold: 0.7
Sala_treinamento:
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/Sala_treinamento_principal
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp://127.0.0.1:8554/Sala_treinamento_sub
input_args: preset-rtsp-restream
roles:
- detect
motion:
improve_contrast: true
mask:
- 500,40,500,21,682,21,682,40
- 73,480,0,114,0,480,49,480
objects:
track:
- person
filters:
person:
min_score: 0.55
threshold: 0.7
Sala_laboratorio:
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/Sala_laboratorio_principal
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp://127.0.0.1:8554/Sala_laboratorio_sub
input_args: preset-rtsp-restream
roles:
- detect
motion:
improve_contrast: true
mask:
- 500,40,500,21,682,21,682,40
objects:
track:
- person
filters:
person:
min_score: 0.55
threshold: 0.7
Almoxarifado:
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/Almoxarifado_principal
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp://127.0.0.1:8554/Almoxarifado_sub
input_args: preset-rtsp-restream
roles:
- detect
motion:
improve_contrast: true
mask:
- 500,40,500,21,682,21,682,40
objects:
track:
- person
filters:
person:
min_score: 0.55
threshold: 0.7
Rua_Monsenhor_Salazar:
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/Rua_Monsenhor_Salazar_principal
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp://127.0.0.1:8554/Rua_Monsenhor_Salazar_sub
input_args: preset-rtsp-restream
roles:
- detect
motion:
improve_contrast: true
mask:
- 297,24,237,0,704,0,704,108
- 500,40,500,21,682,21,682,40
objects:
track:
- person
filters:
person:
min_score: 0.55
threshold: 0.7
Rua_Oswaldo_Cruz:
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/Rua_Oswaldo_Cruz_principal
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp://127.0.0.1:8554/Rua_Oswaldo_Cruz_sub
input_args: preset-rtsp-restream
roles:
- detect
motion:
improve_contrast: true
mask:
- 0,0,120,0,119,42,124,105,95,140,0,185
- 669,0,662,40,598,62,473,64,364,66,126,60,125,0
- 500,40,500,21,682,21,682,40
objects:
track:
- person
- car
- motorcycle
filters:
person:
min_score: 0.55
threshold: 0.7
car:
min_score: 0.55
threshold: 0.7
motorcycle:
min_score: 0.55
threshold: 0.7
Depositos_externos:
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/Depositos_externos_principal
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp://127.0.0.1:8554/Depositos_externos_sub
input_args: preset-rtsp-restream
roles:
- detect
motion:
improve_contrast: true
mask:
- 500,40,500,21,682,21,682,40
- 0,0,423,0,224,73,120,109,0,126
zones:
Portões_depositos_externos:
coordinates: 704,31,602,0,537,22,524,240,704,319
objects:
track:
- person
- car
- motorcycle
filters:
person:
min_score: 0.55
threshold: 0.7
car:
min_score: 0.55
threshold: 0.7
motorcycle:
min_score: 0.55
threshold: 0.7
Entrada_externa:
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/Entrada_externa_principal
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp://127.0.0.1:8554/Entrada_externa_sub
input_args: preset-rtsp-restream
roles:
- detect
motion:
improve_contrast: true
mask:
- 500,40,500,21,682,21,682,40
zones:
Portão_entrada_externa:
coordinates: 683,201,488,121,470,261,642,346
objects:
track:
- person
- car
- motorcycle
filters:
person:
min_score: 0.55
threshold: 0.7
car:
min_score: 0.55
threshold: 0.7
motorcycle:
min_score: 0.55
threshold: 0.7
Abaixo um log do Frigate:
2024-07-30 18:47:29.245570771 [INFO] Preparing Frigate…
2024-07-30 18:47:29.273973623 [INFO] Starting Frigate…
2024-07-30 18:47:30.581316464 [2024-07-30 15:47:30] frigate.app INFO : Starting Frigate (0.13.2-6476f8a)
2024-07-30 18:47:30.582054691 [2024-07-30 15:47:30] frigate.app INFO : Creating directory: /tmp/cache
2024-07-30 18:47:30.681950846 [2024-07-30 15:47:30] peewee_migrate.logs INFO : Starting migrations
2024-07-30 18:47:30.685437940 [2024-07-30 15:47:30] peewee_migrate.logs INFO : There is nothing to migrate
2024-07-30 18:47:30.689328783 [2024-07-30 15:47:30] frigate.app INFO : Recording process started: 307
2024-07-30 18:47:30.691498572 [2024-07-30 15:47:30] frigate.app INFO : go2rtc process pid: 89
2024-07-30 18:47:30.714473705 [2024-07-30 15:47:30] detector.coral1 INFO : Starting detection process: 317
2024-07-30 18:47:30.718912834 [2024-07-30 15:47:30] detector.coral2 INFO : Starting detection process: 319
2024-07-30 18:47:30.728656738 [2024-07-30 15:47:30] frigate.detectors.plugins.edgetpu_tfl INFO : Attempting to load TPU as pci:1
2024-07-30 18:47:30.729315670 [2024-07-30 15:47:30] frigate.app INFO : Output process started: 321
2024-07-30 18:47:30.734308396 [2024-07-30 15:47:30] frigate.detectors.plugins.edgetpu_tfl INFO : TPU found
2024-07-30 18:47:30.739656247 [2024-07-30 15:47:30] frigate.detectors.plugins.edgetpu_tfl INFO : Attempting to load TPU as pci:0
2024-07-30 18:47:30.745382054 [2024-07-30 15:47:30] frigate.detectors.plugins.edgetpu_tfl INFO : TPU found
2024-07-30 18:47:31.069431269 [2024-07-30 15:47:31] frigate.app INFO : Camera processor started for Escada: 392
2024-07-30 18:47:31.073900191 [2024-07-30 15:47:31] frigate.app INFO : Camera processor started for Sala_reuniao: 393
2024-07-30 18:47:31.074493766 [2024-07-30 15:47:31] frigate.app INFO : Camera processor started for Sala_projetos: 396
2024-07-30 18:47:31.083688816 [2024-07-30 15:47:31] frigate.app INFO : Camera processor started for Sala_administrativo: 397
2024-07-30 18:47:31.089293927 [2024-07-30 15:47:31] frigate.app INFO : Camera processor started for Sala_treinamento: 399
2024-07-30 18:47:31.089329483 [2024-07-30 15:47:31] frigate.app INFO : Camera processor started for Sala_laboratorio: 401
2024-07-30 18:47:31.094396359 [2024-07-30 15:47:31] frigate.app INFO : Camera processor started for Almoxarifado: 403
2024-07-30 18:47:31.099960115 [2024-07-30 15:47:31] frigate.app INFO : Camera processor started for Rua_Monsenhor_Salazar: 405
2024-07-30 18:47:31.110798390 [2024-07-30 15:47:31] frigate.app INFO : Camera processor started for Rua_Oswaldo_Cruz: 407
2024-07-30 18:47:31.111139606 [2024-07-30 15:47:31] frigate.app INFO : Camera processor started for Depositos_externos: 409
2024-07-30 18:47:31.116363327 [2024-07-30 15:47:31] frigate.app INFO : Camera processor started for Entrada_externa: 412
2024-07-30 18:47:31.121361911 [2024-07-30 15:47:31] frigate.app INFO : Capture process started for Escada: 414
2024-07-30 18:47:31.144992261 [2024-07-30 15:47:31] frigate.app INFO : Capture process started for Sala_reuniao: 417
2024-07-30 18:47:31.144997302 [2024-07-30 15:47:31] frigate.app INFO : Capture process started for Sala_projetos: 421
2024-07-30 18:47:31.154552854 [2024-07-30 15:47:31] frigate.app INFO : Capture process started for Sala_administrativo: 426
2024-07-30 18:47:31.155703828 [2024-07-30 15:47:31] frigate.app INFO : Capture process started for Sala_treinamento: 436
2024-07-30 18:47:31.169403015 [2024-07-30 15:47:31] frigate.app INFO : Capture process started for Sala_laboratorio: 439
2024-07-30 18:47:31.174996557 [2024-07-30 15:47:31] frigate.app INFO : Capture process started for Almoxarifado: 445
2024-07-30 18:47:31.210156127 [2024-07-30 15:47:31] frigate.app INFO : Capture process started for Rua_Monsenhor_Salazar: 453
2024-07-30 18:47:31.210160498 [2024-07-30 15:47:31] frigate.app INFO : Capture process started for Rua_Oswaldo_Cruz: 460
2024-07-30 18:47:31.221587185 [2024-07-30 15:47:31] frigate.app INFO : Capture process started for Depositos_externos: 468
2024-07-30 18:47:31.224080348 [2024-07-30 15:47:31] frigate.app INFO : Capture process started for Entrada_externa: 474
2024-07-30 19:32:31.372959853 [2024-07-30 16:32:31] frigate.storage INFO : Less than 1 hour of recording space left, running storage maintenance…
2024-07-30 19:34:07.067317288 [2024-07-30 16:34:07] frigate.storage INFO : Cleaned up 12853.699999999795 MB of recordings