Skip to content

fthiery/home-assistant-camera-timelapse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Overview

Work around stupid network cameras that reject you when more than one client tries to use it.

Install

Install python3-websocket on debian, python-websocket-client on Arch

Install ffmpeg static build from https://johnvansickle.com/ffmpeg/ (arm64 for Freebox Delta)

Configure

Create config.json file with long-lived token in same folder

Systemd unit file

# /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

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Languages