From 4a87bc5606aa584285cf0f48010b0dfbd76db57d Mon Sep 17 00:00:00 2001 From: Ashish D'Souza Date: Sun, 29 Oct 2023 20:55:19 -0500 Subject: [PATCH] Setup pipeline to support Wyze bridge --- Jenkinsfile | 2 +- install.yaml | 7 +++++++ start.yaml | 2 ++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 72de72f..838965f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -14,7 +14,7 @@ pipeline { 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: 'start.yaml' } diff --git a/install.yaml b/install.yaml index fe56313..bb287e2 100644 --- a/install.yaml +++ b/install.yaml @@ -3,6 +3,10 @@ vars_prompt: - name: ipgeolocation_api_key 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 prompt: Enter password for garage camera RTSP stream user motion - name: front_door_rtsp_password @@ -118,6 +122,9 @@ frigate_config: ipgeolocation: api_key: '{{ipgeolocation_api_key}}' + wyze: + email: '{{wyze_email}}' + password: '{{wyze_password}}' rtsp: garage: password: '{{garage_rtsp_password}}' diff --git a/start.yaml b/start.yaml index 6bdb429..0134ea8 100644 --- a/start.yaml +++ b/start.yaml @@ -36,6 +36,8 @@ - name: Docker Compose up Frigate environment: 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_FRONT_DOOR_RTSP_PASSWORD: '{{frigate_config.rtsp.front_door.password}}' FRIGATE_DOORBELL_RTSP_PASSWORD: '{{frigate_config.rtsp.doorbell.password}}'