Work around stupid network cameras that reject you when more than one client tries to use it.
Install python3-websocket
on debian, python-websocket-client
on Arch
Install ffmpeg static build from https://johnvansickle.com/ffmpeg/ (arm64 for Freebox Delta)
Create config.json file with long-lived token in same folder
# /etc/systemd/system/timelapse.service
[Unit]
Description=Timelapse service
After=syslog.target network.target
[Service]
WorkingDirectory=/home/ha/home-assistant-camera-timelapse
Type=exec
ExecStart=/usr/bin/python3 -u /home/ha/home-assistant-camera-timelapse/timelapse.py
# Restart script if stopped
Restart=always
# Wait 10m before restart
RestartSec=30m
[Install]
WantedBy=multi-user.target