Updated configuration

This commit is contained in:
Ashish D'Souza 2023-07-30 12:19:08 -04:00
parent 9d490f8ce4
commit ee983c305d
2 changed files with 13 additions and 5 deletions

View File

@ -27,6 +27,9 @@ cameras:
enabled: true enabled: true
width: 1920 width: 1920
height: 1080 height: 1080
motion:
mask:
- 1384,1058,1384,1009,1872,1009,1872,1058 # Timestamp
front_door: front_door:
enabled: true enabled: true
ffmpeg: ffmpeg:
@ -42,13 +45,15 @@ cameras:
enabled: true enabled: true
width: 1920 width: 1920
height: 1080 height: 1080
motion:
mask:
- 361,96,565,0,0,0,0,304 # Sidewalk
- 1445,0,1444,46,1920,46,1920,0 # Timestamp
objects: objects:
filters: filters:
person: person:
mask: mask:
#- 165,777,140,451,0,509,0,817 # Flower bed
- 167,1080,511,1080,328,744,234,456,140,451,0,509,0,804 # Flower bed and hedge - 167,1080,511,1080,328,744,234,456,140,451,0,509,0,804 # Flower bed and hedge
- 359,85,542,0,0,0,0,288 # Sidewalk
- 1153,847,1112,838,1042,896,1023,988,1023,1080,1525,1080 # Drainpipe - 1153,847,1112,838,1042,896,1023,988,1023,1080,1525,1080 # Drainpipe
doorbell: doorbell:
enabled: true enabled: true
@ -74,9 +79,9 @@ cameras:
- front_door_zone - front_door_zone
zones: zones:
front_door_zone: front_door_zone:
coordinates: 957,783,1920,1080,0,1080,539,817 coordinates: 964,677,1920,1080,0,1080,539,754 # Near front door
driveway: driveway:
enabled: true enabled: false
ffmpeg: ffmpeg:
inputs: inputs:
- path: 'rtsp://{FRIGATE_DRIVEWAY_RTSP_USERNAME}:{FRIGATE_DRIVEWAY_RTSP_PASSWORD}@192.168.0.148:5543/live/channel1' - path: 'rtsp://{FRIGATE_DRIVEWAY_RTSP_USERNAME}:{FRIGATE_DRIVEWAY_RTSP_PASSWORD}@192.168.0.148:5543/live/channel1'
@ -105,6 +110,9 @@ cameras:
enabled: true enabled: true
width: 1920 width: 1920
height: 1080 height: 1080
motion:
mask:
- 1920,46,1442,46,1442,0,1920,0 # Timestamp
objects: objects:
filters: filters:
person: person:

View File

@ -35,7 +35,7 @@ class FrigateEventListener:
if not self.camera_zones[camera]: if not self.camera_zones[camera]:
# No required zones, send notification on receipt of new event # No required zones, send notification on receipt of new event
if payload['type'] == 'new' and object_label == 'person': if payload['type'] == 'new':
event_id = payload['after']['id'] event_id = payload['after']['id']
score = payload['after']['top_score'] score = payload['after']['top_score']