Skip to content

API

The repository does not expose an HTTP API. It consumes the following local and external interfaces.

Interface Use
go2rtc RTSP at 127.0.0.1:8554 Provides named camera streams to ffmpeg
ffmpeg CLI Reads RTSP and writes segmented Matroska files
systemd Starts recorder instances and maintenance timers
Healthchecks.io ping URL Optional outbound success/failure notification

The example go2rtc configuration also enables its API on port 1984 and WebRTC on port 8555; those listeners belong to go2rtc and are not managed by these scripts. Configure network exposure and authentication according to the go2rtc installation used by the host.

The scripts use standard Bash utilities including date, find, sort, head, mkdir, and mv. The watchdog invokes systemctl restart for stale instances.