initial POC

This commit is contained in:
Dark98
2026-09-06 15:14:21 +00:00
commit f9c52293bb
9 changed files with 564 additions and 0 deletions
Executable
+30
View File
@@ -0,0 +1,30 @@
#!/usr/bin/env sh
set -eu
SCRIPT_DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
if ! command -v python3 >/dev/null 2>&1; then
printf 'Error: python3 is required.\n' >&2
exit 1
fi
if ! command -v ffmpeg >/dev/null 2>&1; then
printf 'Error: ffmpeg is required for rendering.\n' >&2
exit 1
fi
if [ -f "$SCRIPT_DIR/.env" ]; then
set -a
# shellcheck disable=SC1091
. "$SCRIPT_DIR/.env"
set +a
fi
export MOONRAKER_URL=${MOONRAKER_URL:-http://192.168.1.13}
export CAMERA_SNAPSHOT_URL=${CAMERA_SNAPSHOT_URL:-http://192.168.1.13/webcam/?action=snapshot}
export CAMERA_STREAM_URL=${CAMERA_STREAM_URL:-http://192.168.1.13/webcam/?action=stream}
export OUTPUT_DIR=${OUTPUT_DIR:-"$SCRIPT_DIR/timelapses"}
cd "$SCRIPT_DIR"
exec python3 app.py