How wdauwen/picar works
This repository combines two Raspberry Pi applications: a camera web interface for live viewing, camera control, recording, media management, and scheduling; and a separate WebSocket-controlled robot. The camera workflow runs from the browser interface through PHP command/status endpoints to the camera runtime, while media and scheduling are separate capabilities. The robot workflow maps WebSocket commands to GPIO motor actions. Several camera runtime connections are inferred only from filenames and configuration, so they are omitted or marked unverified.
Main entry points: raspimjpeg Camera Daemon · index.php Live Camera Page · script.js Browser Controls · server.py Robot WebSocket Server
Components 17
Camera Web Interface
- Live Camera Page
RPi_Cam_Web_Interface/www/index.php - Browser Controls
RPi_Cam_Web_Interface/www/js/script.js - Camera Configuration
RPi_Cam_Web_Interface/www/config.php - Command Endpoint
RPi_Cam_Web_Interface/www/cmd_pipe.php - Status Endpoint
RPi_Cam_Web_Interface/www/status_mjpeg.php - Image Endpoint
RPi_Cam_Web_Interface/www/cam_pic.php
Camera Runtime
- Camera Daemon
RPi_Cam_Web_Interface/bin/raspimjpeg - Daemon Configuration
RPi_Cam_Web_Interface/etc/raspimjpeg/raspimjpeg
Media and Scheduling
- Media Browser
RPi_Cam_Web_Interface/www/preview.php - Schedule Manager
RPi_Cam_Web_Interface/www/schedule.php - Motion Controls
RPi_Cam_Web_Interface/www/motion.php - Captured Media
RPi_Cam_Web_Interface/www
Robot Control
- Robot WebSocket Server
server.py - Robot Control Page
index.html - GPIO Motor Actions
robotics/robot3.py
Other components
- Camera User
- Robot Operator
Connections 19
- Camera User → Live Camera Page: opens
- Live Camera Page → Camera Configuration: loads
RPi_Cam_Web_Interface/www/index.php - Camera User → Browser Controls: uses
- Browser Controls → Command Endpoint: sends commands
RPi_Cam_Web_Interface/www/js/script.js - Browser Controls → Status Endpoint: polls status
RPi_Cam_Web_Interface/www/js/script.js - Live Camera Page → Image Endpoint: requests image
RPi_Cam_Web_Interface/www/index.php - Command Endpoint → Camera Daemon: dispatches commands
- Status Endpoint → Camera Daemon: reads status
- Camera Daemon → Captured Media: writes captures
- Live Camera Page → Camera Daemon: streams preview
- Camera Daemon → Daemon Configuration: uses settings
- Camera User → Media Browser: manages recordings
- Media Browser → Captured Media: reads and manages
RPi_Cam_Web_Interface/www/preview.php - Camera User → Schedule Manager: configures schedule
- Schedule Manager → Captured Media: purges files
RPi_Cam_Web_Interface/www/schedule.php - Camera User → Motion Controls: configures motion
- Robot Operator → Robot WebSocket Server: sends commands
- Robot WebSocket Server → Robot Control Page: renders page
server.py - Robot WebSocket Server → GPIO Motor Actions: dispatches actions
server.py