Added driveway camera

This commit is contained in:
ashish committed 2023-07-18 16:23:21 -04:00
1 parent 995e81c549
commit 8a896f7524
5 files changed
+27 -4

No files matched your search

Vendored
+1 -1
View File
@@ -14,7 +14,7 @@ pipeline {
frigate_config = readJSON file: 'frigate_config.json' frigate_config = readJSON file: 'frigate_config.json'
} }
ansiblePlaybook credentialsId: 'rivendell-ssh-key', disableHostKeyChecking: true, extras: "--extra-vars 'mqtt_password=\"${frigate_config.mqtt.password}\" ipgeolocation_api_key=\"${frigate_config.ipgeolocation.api_key}\" garage_rtsp_password=\"${frigate_config.rtsp.garage.password}\" front_door_rtsp_password=\"${frigate_config.rtsp.front_door.password}\" back_door_rtsp_password=\"${frigate_config.rtsp.back_door.password}\" family_room_rtsp_password=\"${frigate_config.rtsp.family_room.password}\"'", playbook: 'install.yaml' ansiblePlaybook credentialsId: 'rivendell-ssh-key', disableHostKeyChecking: true, extras: "--extra-vars 'mqtt_password=\"${frigate_config.mqtt.password}\" ipgeolocation_api_key=\"${frigate_config.ipgeolocation.api_key}\" garage_rtsp_password=\"${frigate_config.rtsp.garage.password}\" front_door_rtsp_password=\"${frigate_config.rtsp.front_door.password}\" driveway_rtsp_password=\"${frigate_config.rtsp.driveway.password}\" back_door_rtsp_password=\"${frigate_config.rtsp.back_door.password}\" family_room_rtsp_password=\"${frigate_config.rtsp.family_room.password}\"'", playbook: 'install.yaml'
ansiblePlaybook credentialsId: 'rivendell-ssh-key', disableHostKeyChecking: true, playbook: 'stop.yaml' ansiblePlaybook credentialsId: 'rivendell-ssh-key', disableHostKeyChecking: true, playbook: 'stop.yaml'
ansiblePlaybook credentialsId: 'rivendell-ssh-key', disableHostKeyChecking: true, playbook: 'start.yaml' ansiblePlaybook credentialsId: 'rivendell-ssh-key', disableHostKeyChecking: true, playbook: 'start.yaml'
} }
+16 -1
View File
@@ -50,6 +50,21 @@ cameras:
- 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 - 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
driveway:
enabled: true
ffmpeg:
inputs:
- path: 'rtsp://{FRIGATE_DRIVEWAY_RTSP_USERNAME}:{FRIGATE_DRIVEWAY_RTSP_PASSWORD}@192.168.0.148:5543/live/channel0'
roles:
- detect
- record
hwaccel_args: preset-intel-qsv-h264 # Use Intel QSV hardware acceleration for H264
output_args:
record: preset-record-generic-audio-aac # Record with aac audio
detect:
enabled: true
width: 2560
height: 1440
back_door: back_door:
enabled: true enabled: true
ffmpeg: ffmpeg:
@@ -99,7 +114,7 @@ record:
enabled: true enabled: true
expire_interval: 60 expire_interval: 60
retain: retain:
days: 10 # Number of days to retain recordings regardless of events days: 30 # Number of days to retain recordings regardless of events
mode: all # Mode for retention: all (24/7), motion (only segments with motion), active_objects (only segments with active objects) mode: all # Mode for retention: all (24/7), motion (only segments with motion), active_objects (only segments with active objects)
events: events:
pre_capture: 5 # Number of seconds before the event to include pre_capture: 5 # Number of seconds before the event to include
+2
View File
@@ -20,6 +20,8 @@ services:
FRIGATE_GARAGE_RTSP_PASSWORD: ${FRIGATE_GARAGE_RTSP_PASSWORD} FRIGATE_GARAGE_RTSP_PASSWORD: ${FRIGATE_GARAGE_RTSP_PASSWORD}
FRIGATE_FRONT_DOOR_RTSP_USERNAME: motion FRIGATE_FRONT_DOOR_RTSP_USERNAME: motion
FRIGATE_FRONT_DOOR_RTSP_PASSWORD: ${FRIGATE_FRONT_DOOR_RTSP_PASSWORD} FRIGATE_FRONT_DOOR_RTSP_PASSWORD: ${FRIGATE_FRONT_DOOR_RTSP_PASSWORD}
FRIGATE_DRIVEWAY_RTSP_USERNAME: admin
FRIGATE_DRIVEWAY_RTSP_PASSWORD: ${FRIGATE_DRIVEWAY_RTSP_PASSWORD}
FRIGATE_BACK_DOOR_RTSP_USERNAME: motion FRIGATE_BACK_DOOR_RTSP_USERNAME: motion
FRIGATE_BACK_DOOR_RTSP_PASSWORD: ${FRIGATE_BACK_DOOR_RTSP_PASSWORD} FRIGATE_BACK_DOOR_RTSP_PASSWORD: ${FRIGATE_BACK_DOOR_RTSP_PASSWORD}
FRIGATE_FAMILY_ROOM_RTSP_USERNAME: frigate FRIGATE_FAMILY_ROOM_RTSP_USERNAME: frigate
+7 -2
View File
@@ -9,6 +9,8 @@
prompt: Enter password for garage camera RTSP stream user motion prompt: Enter password for garage camera RTSP stream user motion
- name: front_door_rtsp_password - name: front_door_rtsp_password
prompt: Enter password for front door camera RTSP stream user motion prompt: Enter password for front door camera RTSP stream user motion
- name: driveway_rtsp_password
prompt: Enter password for driveway camera RTSP stream user admin
- name: back_door_rtsp_password - name: back_door_rtsp_password
prompt: Enter password for back door camera RTSP stream user motion prompt: Enter password for back door camera RTSP stream user motion
- name: family_room_rtsp_password - name: family_room_rtsp_password
@@ -123,6 +125,8 @@
password: '{{garage_rtsp_password}}' password: '{{garage_rtsp_password}}'
front_door: front_door:
password: '{{front_door_rtsp_password}}' password: '{{front_door_rtsp_password}}'
driveway:
password: '{{driveway_rtsp_password}}'
back_door: back_door:
password: '{{back_door_rtsp_password}}' password: '{{back_door_rtsp_password}}'
family_room: family_room:
@@ -132,13 +136,14 @@
login_user: '{{homelab_config.database.user}}' login_user: '{{homelab_config.database.user}}'
login_password: '{{homelab_config.database.password}}' login_password: '{{homelab_config.database.password}}'
db: '{{homelab_config.database.name}}' db: '{{homelab_config.database.name}}'
query: 'INSERT INTO service (name, host, config) VALUES (%s, %s, %s) ON CONFLICT DO NOTHING;' query: 'INSERT INTO service (name, host, source, config) VALUES (%s, %s, %s, %s) ON CONFLICT DO NOTHING;'
positional_args: positional_args:
- '{{item.name}}' - '{{item.name}}'
- '{{item.host}}' - '{{item.host}}'
- '{{item.source}}'
- '{{item.config}}' - '{{item.config}}'
with_items: with_items:
- {name: frigate, host: '{{ansible_hostname}}', config: '{{frigate_config|to_json}}'} - {name: frigate, host: '{{ansible_hostname}}', source: gitea/ashish/frigate/master, config: '{{frigate_config|to_json}}'}
- name: Insert into Postgres table service_port - name: Insert into Postgres table service_port
community.postgresql.postgresql_query: community.postgresql.postgresql_query:
login_host: '{{homelab_config.database.host}}' login_host: '{{homelab_config.database.host}}'
+1
View File
@@ -39,6 +39,7 @@
IPGEOLOCATION_API_KEY: '{{frigate_config.ipgeolocation.api_key}}' IPGEOLOCATION_API_KEY: '{{frigate_config.ipgeolocation.api_key}}'
FRIGATE_GARAGE_RTSP_PASSWORD: '{{frigate_config.rtsp.garage.password}}' FRIGATE_GARAGE_RTSP_PASSWORD: '{{frigate_config.rtsp.garage.password}}'
FRIGATE_FRONT_DOOR_RTSP_PASSWORD: '{{frigate_config.rtsp.front_door.password}}' FRIGATE_FRONT_DOOR_RTSP_PASSWORD: '{{frigate_config.rtsp.front_door.password}}'
FRIGATE_DRIVEWAY_RTSP_PASSWORD: '{{frigate_config.rtsp.driveway.password}}'
FRIGATE_BACK_DOOR_RTSP_PASSWORD: '{{frigate_config.rtsp.back_door.password}}' FRIGATE_BACK_DOOR_RTSP_PASSWORD: '{{frigate_config.rtsp.back_door.password}}'
FRIGATE_FAMILY_ROOM_RTSP_PASSWORD: '{{frigate_config.rtsp.family_room.password}}' FRIGATE_FAMILY_ROOM_RTSP_PASSWORD: '{{frigate_config.rtsp.family_room.password}}'
community.docker.docker_compose: community.docker.docker_compose: