Setup Docker Wyze bridge #2

Squashed commit of the following:

commit 4a87bc5606
Author: Ashish D'Souza <sudouser512@gmail.com>
Date:   Sun Oct 29 20:55:19 2023 -0500

    Setup pipeline to support Wyze bridge

commit 56da8ba7db
Author: Ashish D'Souza <sudouser512@gmail.com>
Date:   Sun Oct 29 20:54:39 2023 -0500

    Added configuration for Wyze bridge
This commit is contained in:
Ashish D'Souza 2023-10-29 20:56:24 -05:00
parent 3642e26c7a
commit e2812494a0
5 changed files with 28 additions and 2 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}\" 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}\" 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, 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

@ -97,7 +97,7 @@ cameras:
enabled: true enabled: true
ffmpeg: ffmpeg:
inputs: inputs:
- path: 'rtsp://{FRIGATE_BACK_DOOR_RTSP_USERNAME}:{FRIGATE_BACK_DOOR_RTSP_PASSWORD}@192.168.0.202:554/live' - path: 'rtsp://wyze-bridge:8554/back-yard-cam'
roles: roles:
- detect - detect
- record - record

View File

@ -9,6 +9,7 @@ services:
restart: unless-stopped restart: unless-stopped
depends_on: depends_on:
- mqtt - mqtt
- wyze-bridge
healthcheck: healthcheck:
test: ls /media/frigate && curl -s -f http://localhost:5000 -o /dev/null test: ls /media/frigate && curl -s -f http://localhost:5000 -o /dev/null
interval: 60s interval: 60s
@ -50,6 +51,22 @@ services:
- frigate - frigate
ports: ports:
- 127.0.0.1:10000:5000 - 127.0.0.1:10000:5000
wyze-bridge:
container_name: frigate-wyze-bridge
image: mrlt8/wyze-bridge:2.4.0
restart: unless-stopped
environment:
NET_MODE: LAN
FILTER_NAMES: Back Yard Cam
WYZE_EMAIL: ${WYZE_EMAIL}
WYZE_PASSWORD: ${WYZE_PASSWORD}
volumes:
- type: bind
source: /etc/localtime
target: /etc/localtime
read_only: true
networks:
- frigate
notify: notify:
container_name: frigate-notify container_name: frigate-notify
image: frigate-notify:latest image: frigate-notify:latest

View File

@ -3,6 +3,10 @@
vars_prompt: vars_prompt:
- name: ipgeolocation_api_key - name: ipgeolocation_api_key
prompt: Enter API key for IPGeolocation prompt: Enter API key for IPGeolocation
- name: wyze_email
prompt: Enter email for Wyze account
- name: wyze_password
prompt: Enter password for Wyze account
- name: garage_rtsp_password - name: garage_rtsp_password
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
@ -118,6 +122,9 @@
frigate_config: frigate_config:
ipgeolocation: ipgeolocation:
api_key: '{{ipgeolocation_api_key}}' api_key: '{{ipgeolocation_api_key}}'
wyze:
email: '{{wyze_email}}'
password: '{{wyze_password}}'
rtsp: rtsp:
garage: garage:
password: '{{garage_rtsp_password}}' password: '{{garage_rtsp_password}}'

View File

@ -36,6 +36,8 @@
- name: Docker Compose up Frigate - name: Docker Compose up Frigate
environment: environment:
IPGEOLOCATION_API_KEY: '{{frigate_config.ipgeolocation.api_key}}' IPGEOLOCATION_API_KEY: '{{frigate_config.ipgeolocation.api_key}}'
WYZE_EMAIL: '{{frigate_config.wyze.email}}'
WYZE_PASSWORD: '{{frigate_config.wyze.password}}'
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_DOORBELL_RTSP_PASSWORD: '{{frigate_config.rtsp.doorbell.password}}' FRIGATE_DOORBELL_RTSP_PASSWORD: '{{frigate_config.rtsp.doorbell.password}}'