How meatballs1/arlo-cam-api works
Arlo Cam API emulates an Arlo basestation so compatible cameras can connect and be controlled as RTSP sources. Cameras register and send status or alerts over TCP; the server processes those messages, persists camera state, acknowledges them, and can trigger recordings and motion webhooks. A separate REST API exposes camera status and controls, including recording, snapshots, audio, and activity zones. The excerpts show the main control and alert paths; Wi-Fi pairing is documented operational setup, not an implemented subsystem in the sampled runtime.
Main entry points: server.py TCP server · camera.py Camera control · api.py REST API · socket.py Socket framing
Components 12
Service entry points
- TCP server
server.py - REST API
api/api.py - Snapshot upload
api/api.py
Camera protocol
- Socket framing
arlo/socket.py - Protocol messages
arlo/messages.py
Camera control and state
- Camera control
arlo/camera.py - Camera database
server.py
Recording and alerts
- RTSP recorder
helpers/recorder.py - Motion webhook
helpers/webhook_manager.py
Other components
- API client
- Arlo camera
- Webhook receiver
Connections 19
- API client → REST API: calls
api/api.py - REST API → Camera control: controls
api/api.py - REST API → Camera database: reads
api/api.py - TCP server → Camera database: initializes
server.py - TCP server → Socket framing: receives
server.py - TCP server → Protocol messages: builds
server.py - Arlo camera → TCP server: sends events
README.md - TCP server → Camera control: updates
server.py - TCP server → Camera database: persists
server.py - Camera control → Socket framing: sends commands
arlo/camera.py - Socket framing → Protocol messages: encodes
arlo/socket.py - Camera control → Protocol messages: creates
arlo/camera.py - Camera control → Camera database: reads and writes
arlo/camera.py - TCP server → RTSP recorder: starts recording
server.py - Camera control → RTSP recorder: starts recording
arlo/camera.py - RTSP recorder → Arlo camera: opens RTSP
helpers/recorder.py - TCP server → Motion webhook: notifies motion
server.py - Motion webhook → Webhook receiver: posts event
helpers/webhook_manager.py - API client → Snapshot upload: uploads image
api/api.py