How laeq/onemetreplus works
One Metre Plus is Raspberry Pi bicycle-sensor software, operated through a serial touch-screen interface. The primary workflow configures capture, responds to touch-screen commands, records video/GPS/distance (and, in the alternate async entry point, audio), then offers conversion, export, and deletion. Core sensor, UI, and file-management implementations are shown; conversion/export and some supporting modules are indexed but not excerpted, so those documented-in-code connections are limited to relationships visible in main.py.
Main entry points: main.py Capture controller · main_async.py Async controller · filemanager.py Capture file manager · screen.py Touch-screen UI
Components 15
Control and configuration
- Capture controller
main.py - Async controller
async/main_async.py - Settings
utils/config.py - Touch-screen UI
utils/screen.py
Sensor capture
- Camera capture
utils/camera.py - GPS capture
utils/gps.py - Distance capture
utils/lidar.py - Audio capture
utils/microphone.py - Switch capture
utils/switch.py
Capture management
- Capture file manager
utils/filemanager.py - Capture files
Post-capture
- Video conversion
utils/videoconverter.py - Data export
utils/export.py - Export files
Other components
- Bicycle operator
Connections 26
- Bicycle operator → Touch-screen UI: sends commands
- Capture controller → Touch-screen UI: reads and updates
main.py - Capture controller → Settings: loads settings
main.py - Capture controller → Capture file manager: creates capture paths
main.py - Capture controller → Camera capture: starts recording
main.py - Capture controller → GPS capture: starts recording
main.py - Capture controller → Distance capture: starts recording
main.py - Capture controller → Switch capture: starts recording
main.py - Capture controller → Video conversion: converts videos
main.py - Capture controller → Data export: exports captures
main.py - Capture controller → Capture file manager: deletes captures
main.py - Capture file manager → Capture files: organizes paths
utils/filemanager.py - Camera capture → Capture files: writes video
- GPS capture → Capture files: writes GPS data
utils/gps.py - Distance capture → Capture files: writes distance data
utils/lidar.py - Distance capture → Touch-screen UI: updates distance display
utils/lidar.py - GPS capture → Touch-screen UI: updates GPS indicator
utils/gps.py - Async controller → Touch-screen UI: reads commands
async/main_async.py - Async controller → Capture file manager: creates capture paths
async/main_async.py - Async controller → Camera capture: starts recording
async/main_async.py - Async controller → Audio capture: starts recording
async/main_async.py - Async controller → Distance capture: starts recording
async/main_async.py - Async controller → GPS capture: starts recording
async/main_async.py - Capture file manager → Export files: lists export files
utils/filemanager.py - Video conversion → Export files: produces converted video
- Data export → Export files: writes exports