From b271a925364616b2d25d3ea6b6492b7412aaf248 Mon Sep 17 00:00:00 2001 From: Luke Hoersten Date: Wed, 15 Apr 2026 20:00:09 -0500 Subject: Update all references from doorbell-viewport to unifi-protect-viewport --- .../files/unifi-protect-viewport-debug | 34 +++++++++++----------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'unifi-protect-viewport/files/unifi-protect-viewport-debug') diff --git a/unifi-protect-viewport/files/unifi-protect-viewport-debug b/unifi-protect-viewport/files/unifi-protect-viewport-debug index 1305c13..65f67b0 100644 --- a/unifi-protect-viewport/files/unifi-protect-viewport-debug +++ b/unifi-protect-viewport/files/unifi-protect-viewport-debug @@ -1,5 +1,5 @@ #!/bin/bash -# doorbell-viewport-debug: CLI debug tool +# unifi-protect-viewport-debug: CLI debug tool # # Commands: # show Turn display on @@ -11,7 +11,7 @@ set -e -ENV_FILE="/etc/doorbell-viewport/doorbell-viewport.env" +ENV_FILE="/etc/unifi-protect-viewport/unifi-protect-viewport.env" CMD="${1:-help}" _load_env() { @@ -100,19 +100,19 @@ PYEOF cmd_test_stream() { _load_env - if [ -z "$DOORBELL_VIEWPORT_PROTECT_HOST" ]; then - echo "Error: DOORBELL_VIEWPORT_PROTECT_HOST not set" >&2 + if [ -z "$UNIFI_PROTECT_VIEWPORT_PROTECT_HOST" ]; then + echo "Error: UNIFI_PROTECT_VIEWPORT_PROTECT_HOST not set" >&2 exit 1 fi - echo "Fetching RTSP URL from $DOORBELL_VIEWPORT_PROTECT_HOST..." + echo "Fetching RTSP URL from $UNIFI_PROTECT_VIEWPORT_PROTECT_HOST..." RTSP_URL=$(python3 - <&2 + if [ -z "$UNIFI_PROTECT_VIEWPORT_PROTECT_HOST" ]; then + echo "Error: UNIFI_PROTECT_VIEWPORT_PROTECT_HOST not set" >&2 exit 1 fi python3 - <" + echo "Usage: unifi-protect-viewport-debug " echo "" echo "Commands:" echo " show Turn display on" -- cgit v1.2.3