How bokutosss/motion works
This is a phone-connected motion-detection service with a browser dashboard. A user connects a phone or webcam, the runtime processes frames for motion and optional object/pose recognition, then presents a live feed and records events as snapshots; optional Telegram alerts can notify the user. The sampled source shows these responsibilities split between the Flask app and a camera-first runtime used by the WSGI entry point. The README is empty, so capability coverage and relationships rely on the supplied excerpts; unsampled routes and internals are not expanded.
Main entry points: camera_runtime.py Camera runtime · app.py Web dashboard
Components 14
Camera capture
- Camera runtime
camera_runtime.py - Frame input
app.py
Detection and events
- Motion detection
camera_runtime.py - Object and pose detection
app.py
Dashboard and API
- Web dashboard
app.py - Camera and control API
app.py - Basic authentication
app.py - MJPEG stream
app.py
Alerts and media
- Event recording
app.py - Snapshot files
app.py
Other components
- Phone user
- Phone camera
- Local camera
- Telegram
Connections 16
- Phone user → Web dashboard: opens
app.py - Web dashboard → Camera and control API: controls camera
app.py - Web dashboard → Phone camera: captures frames
app.py - Phone camera → Frame input: uploads frames
app.py - Frame input → Camera runtime: updates phone frames
camera_runtime.py - Local camera → Camera runtime: provides video
camera_runtime.py - Camera runtime → Motion detection: processes frames
camera_runtime.py - Camera runtime → Object and pose detection: runs inference
camera_runtime.py - Camera runtime → Event recording: records motion
camera_runtime.py - Camera runtime → MJPEG stream: publishes JPEG frames
camera_runtime.py - MJPEG stream → Web dashboard: streams video
app.py - Event recording → Snapshot files: writes snapshots
app.py - Web dashboard → Snapshot files: requests snapshot
app.py - Event recording → Telegram: sends photo alert
app.py - Phone user → Basic authentication: authenticates
app.py - Camera and control API → Basic authentication: checks credentials
app.py