Skip to content

plos-clan/motion-ui

Repository files navigation

Motion UI

A modern interface for Motion camera live view and archived clips.

Configuration

Set the required environment variables before starting the server.

LIVE_URL=http://127.0.0.1:1845/
ARCHIVE_DIR=/data/Camera

The archive reader expects clips in YYYY-MM-DD/HH-MM-SS.mp4 folders.

Development

bun install
bun run dev

Production

bun run build
HTTP_HOST=127.0.0.1 HTTP_PORT=3000 bun run start

Single binary can be produced by bun run build:

bun run compile

Container

Build 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

About

A modern interface for Motion camera live view and archived clips.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors