From 9707e5ca379032a0e32c89bd5a2f959dab508e6c Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 21 Apr 2026 18:24:29 +0000 Subject: [PATCH] capture.sh: source .env so RTSP credentials are available MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CAM_RTSP_ is set in .env, not sky-cam.conf, but capture.sh was only sourcing sky-cam.conf — causing the service to fail with "not set" even after credentials were added to .env. https://claude.ai/code/session_01C4jbd3waXG3eKZYbGUjLUQ --- capture.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/capture.sh b/capture.sh index d5d026d..a4d9eda 100755 --- a/capture.sh +++ b/capture.sh @@ -15,6 +15,7 @@ set -euo pipefail SCRIPT_DIR="$(dirname "$(realpath "$0")")" source "$SCRIPT_DIR/sky-cam.conf" +source "$SCRIPT_DIR/.env" 2>/dev/null || true export TZ="$TIMEZONE" CAM="${1:-}" @@ -26,7 +27,7 @@ fi rtsp_var="CAM_RTSP_${CAM}" RTSP_URL="${!rtsp_var:-}" if [ -z "$RTSP_URL" ]; then - echo "ERROR: CAM_RTSP_${CAM} not set in sky-cam.conf" + echo "ERROR: CAM_RTSP_${CAM} not set in .env" exit 1 fi