How frandallfarmer/arlo-open-base-station works
Arlo Open Base Station replaces the vendor base station with a local camera-protocol service, on-disk recordings, and a browser viewer. The principal flow is camera registration/messages into the Python service, which persists camera state and handles motion-triggered recording and alerts; users then browse recordings or request HLS live streams through the Node viewer and Flask API. README capabilities also include camera status/control, connectivity checks, thumbnails, and optional ntfy alerts. Several links are documented or excerpt-supported; unsampled route and initialization details are not inferred.
Main entry points: server.py Protocol Server · server.js Viewer Server · camera.py Camera Control · api.py Camera API
Components 18
Camera Protocol
- Protocol Messages
src/arlo-cam-api/arlo/messages.py - Camera Socket
src/arlo-cam-api/arlo/socket.py - Camera Control
src/arlo-cam-api/arlo/camera.py
Camera Service
- Protocol Server
src/arlo-cam-api/server.py - Camera API
src/arlo-cam-api/api/api.py - Camera State
src/arlo-cam-api/server.py - Connectivity Checks
src/arlo-cam-api/helpers/connectivity_checker.py
Media and Alerts
- Motion Recording
src/arlo-cam-api/server.py - RTSP Recorder
src/arlo-cam-api/helpers/recorder.py - HLS Stream Manager
src/arlo-cam-api/helpers/stream_manager.py - GStreamer HLS
src/arlo-cam-api/helpers/gst_hls_stream.py - Motion Notifications
src/arlo-cam-api/helpers/webhook_manager.py - Local Recordings
Web Viewer
- Viewer Server
src/arlo-viewer/server.js - Viewer Pages
src/arlo-viewer/public
Other components
- Arlo Cameras
- ntfy Service
- Browser User
Connections 23
- Arlo Cameras → Protocol Server: send protocol
README.md - Protocol Server → Camera Socket: accept connections
src/arlo-cam-api/server.py - Protocol Server → Camera Control: process registration
src/arlo-cam-api/server.py - Camera Control → Camera Socket: send messages
src/arlo-cam-api/arlo/camera.py - Camera Socket → Protocol Messages: encode/decode
src/arlo-cam-api/arlo/socket.py - Camera Control → Protocol Messages: build commands
src/arlo-cam-api/arlo/camera.py - Protocol Server → Camera State: initialize state
src/arlo-cam-api/server.py - Camera Control → Camera State: persist state
src/arlo-cam-api/arlo/camera.py - Browser User → Viewer Server: browse/control
README.md - Viewer Server → Camera API: proxy requests
src/arlo-viewer/server.js - Camera API → Camera Control: invoke controls
src/arlo-cam-api/api/api.py - Camera API → Camera State: query camera state
src/arlo-cam-api/api/api.py - Protocol Server → Motion Recording: dispatch motion
src/arlo-cam-api/server.py - Motion Recording → RTSP Recorder: record RTSP
src/arlo-cam-api/server.py - Motion Recording → Local Recordings: write recordings
README.md - Protocol Server → Motion Notifications: send motion alerts
src/arlo-cam-api/server.py - Motion Notifications → ntfy Service: post alerts
src/arlo-cam-api/helpers/webhook_manager.py - Camera API → HLS Stream Manager: start streams
src/arlo-cam-api/api/api.py - HLS Stream Manager → GStreamer HLS: launch pipeline
src/arlo-cam-api/helpers/stream_manager.py - Viewer Server → Local Recordings: list/serve media
src/arlo-viewer/server.js - Viewer Server → Camera API: proxy stream control
src/arlo-viewer/server.js - Viewer Server → Viewer Pages: serve interface
- Connectivity Checks → Camera State: update status
src/arlo-cam-api/helpers/connectivity_checker.py