Add new family room camera #15

This commit is contained in:
Ashish D'Souza 2024-11-05 22:53:20 -06:00
parent fb7a84cf4c
commit c34d7692f6
5 changed files with 124 additions and 101 deletions

2
Jenkinsfile vendored
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 'ipgeolocation_api_key=\"${frigate_config.ipgeolocation.api_key}\" wyze_email=\"${frigate_config.wyze.email}\" wyze_password=\"${frigate_config.wyze.password}\" wyze_api_id=\"${frigate_config.wyze.api_id}\" wyze_api_key=\"${frigate_config.wyze.api_key}\" garage_rtsp_password=\"${frigate_config.rtsp.garage.password}\" front_door_rtsp_password=\"${frigate_config.rtsp.front_door.password}\" doorbell_rtsp_password=\"${frigate_config.rtsp.doorbell.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, extras: "--extra-vars 'ipgeolocation_api_key=\"${frigate_config.ipgeolocation.api_key}\" wyze_email=\"${frigate_config.wyze.email}\" wyze_password=\"${frigate_config.wyze.password}\" wyze_api_id=\"${frigate_config.wyze.api_id}\" wyze_api_key=\"${frigate_config.wyze.api_key}\" garage_rtsp_password=\"${frigate_config.rtsp.garage.password}\" front_door_rtsp_password=\"${frigate_config.rtsp.front_door.password}\" doorbell_rtsp_password=\"${frigate_config.rtsp.doorbell.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}\" office_rtsp_password=\"${frigate_config.rtsp.office.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'
} }

View File

@ -22,7 +22,9 @@ go2rtc:
back_door: back_door:
- 'rtsp://wyze-bridge:8554/back-yard-cam' - 'rtsp://wyze-bridge:8554/back-yard-cam'
family_room: family_room:
- 'rtsp://{FRIGATE_FAMILY_ROOM_RTSP_USERNAME}:{FRIGATE_FAMILY_ROOM_RTSP_PASSWORD}@192.168.0.104:554/live/ch0' - 'rtsp://{FRIGATE_FAMILY_ROOM_RTSP_USERNAME}:{FRIGATE_FAMILY_ROOM_RTSP_PASSWORD}@192.168.0.106:554/stream1'
office:
- 'rtsp://{FRIGATE_OFFICE_RTSP_USERNAME}:{FRIGATE_OFFICE_RTSP_PASSWORD}@192.168.0.104:554/live/ch0'
cameras: cameras:
garage: garage:
@ -30,7 +32,6 @@ cameras:
ffmpeg: ffmpeg:
inputs: inputs:
- path: 'rtsp://127.0.0.1:8554/garage' - path: 'rtsp://127.0.0.1:8554/garage'
input_args: preset-rtsp-restream
roles: roles:
- detect - detect
- record - record
@ -135,6 +136,21 @@ cameras:
roles: roles:
- detect - detect
- record - record
hwaccel_args: preset-intel-qsv-h264 # Use Intel QSV hardware acceleration for H.264
output_args:
record: preset-record-generic-audio-aac # Record with aac audio
detect:
enabled: true
width: 1920
height: 1080
office:
enabled: false
ffmpeg:
inputs:
- path: 'rtsp://127.0.0.1:8554/office'
roles:
- detect
- record
output_args: output_args:
record: preset-record-generic-audio-aac # Record with aac audio record: preset-record-generic-audio-aac # Record with aac audio
detect: detect:

View File

@ -29,6 +29,8 @@ services:
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
FRIGATE_FAMILY_ROOM_RTSP_PASSWORD: ${FRIGATE_FAMILY_ROOM_RTSP_PASSWORD} FRIGATE_FAMILY_ROOM_RTSP_PASSWORD: ${FRIGATE_FAMILY_ROOM_RTSP_PASSWORD}
FRIGATE_OFFICE_RTSP_USERNAME: frigate
FRIGATE_OFFICE_RTSP_PASSWORD: ${FRIGATE_OFFICE_RTSP_PASSWORD}
shm_size: '150mb' shm_size: '150mb'
devices: devices:
- /dev/dri:/dev/dri - /dev/dri:/dev/dri

View File

@ -23,6 +23,8 @@
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
prompt: Enter password for family room camera RTSP stream user frigate prompt: Enter password for family room camera RTSP stream user frigate
- name: office_rtsp_password
prompt: Enter password for office camera RTSP stream user frigate
tasks: tasks:
- name: Create Frigate config Docker volume directory - name: Create Frigate config Docker volume directory
become: true become: true
@ -167,6 +169,8 @@
password: '{{back_door_rtsp_password}}' password: '{{back_door_rtsp_password}}'
family_room: family_room:
password: '{{family_room_rtsp_password}}' password: '{{family_room_rtsp_password}}'
office:
password: '{{office_rtsp_password}}'
community.postgresql.postgresql_query: community.postgresql.postgresql_query:
login_host: '{{homelab_config.database.host}}' login_host: '{{homelab_config.database.host}}'
login_user: '{{homelab_config.database.user}}' login_user: '{{homelab_config.database.user}}'

View File

@ -46,6 +46,7 @@
FRIGATE_DRIVEWAY_RTSP_PASSWORD: '{{frigate_config.rtsp.driveway.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}}'
FRIGATE_OFFICE_RTSP_PASSWORD: '{{frigate_config.rtsp.office.password}}'
community.docker.docker_compose: community.docker.docker_compose:
project_name: frigate project_name: frigate
project_src: '{{docker_compose_dir.path}}' project_src: '{{docker_compose_dir.path}}'