Skip to content

robinostlund/docker-unifi-protect-timelapse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Image CI

docker-unifi-protect-timelapse

This tool collects snapshots from your ubiquiti cameras on schedule so you will be able to create a timelapse from it.

Usage

Requirements

Each camera needs to have anonymous snapshots enabled. This can be enabled by logging into each camera and enabling it.

Config file

All of your ubiquti cameras needs their own section inside the configuration file, example:

[Camera-Back]
name = Back
ip = 192.168.0.100

[Camera-Front]
name = Front
ip = 192.168.0.101

This file needs to be mounted to /app.conf in the docker container, check Start chapter here below on how to mount that file.

Environment variables

  • CRON crontab schedule 0 * * * * to perform image capture every hour
  • CHECK_URL healthchecks.io url or similar cron monitoring to perform a GET after a successful image capture
  • TZ set the timezone to use for the cron and log Europe/Stockholm

Start

docker pull robostlund/unifi-protect-timelapse:latest
docker run -dt \
    --name unifi-protect-timelapse \
    --env CRON="0 * * * *" \
    --env CHECK_URL="https://hc-ping.com/hchk_uuid" \
    --env TZ="Europe/Stockholm" \
    --volume /path/to/config:/app.conf:ro \
    --volume /path/to/storage:/storage:rw \
    --label com.centurylinklabs.watchtower.enable='true' \
    robostlund/unifi-protect-timelapse:latest

Storage folder structure

Each camera will have its own date folder structure as below:

/storage/<cameraname>/<year>/<month>/<date>/<hour>:<minute>.jpg

About

Docker image for unifi protect timelapse

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published