This tool collects snapshots from your ubiquiti cameras on schedule so you will be able to create a timelapse from it.
Each camera needs to have anonymous snapshots enabled. This can be enabled by logging into each camera and enabling it.
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.
CRON
crontab schedule0 * * * *
to perform image capture every hourCHECK_URL
healthchecks.io url or similar cron monitoring to perform aGET
after a successful image captureTZ
set the timezone to use for the cron and logEurope/Stockholm
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
Each camera will have its own date folder structure as below:
/storage/<cameraname>/<year>/<month>/<date>/<hour>:<minute>.jpg