A modern interface for Motion camera live view and archived clips.
Set the required environment variables before starting the server.
LIVE_URL=http://127.0.0.1:1845/
ARCHIVE_DIR=/data/CameraThe archive reader expects clips in YYYY-MM-DD/HH-MM-SS.mp4 folders.
bun install
bun run devbun run build
HTTP_HOST=127.0.0.1 HTTP_PORT=3000 bun run startSingle binary can be produced by bun run build:
bun run compileBuild the image with Podman:
podman build -t motion-ui .Run it with the archive mounted:
podman run -d \
--name motion-ui \
--restart always \
-e LIVE_URL=http://host.containers.internal:1845 \
-v /data/Camera:/video:ro \
-p 1234:3000 \
motion-ui