Add multi-camera support and CSI camera server

- main_multi.py: Multi USB camera support with ID-based endpoints
  - Config via CAMERAS env: '{"basement": 0, "basement2": 1}'
  - Endpoints: /snapshot (default), /snapshot/{cam_id}

- server-csi/: New server for Pi CSI ribbon cameras (IR support)
  - Auto-detects picamera2/picamera/libcamera-still
  - IR_MODE and ROTATION settings
  - Includes setup.sh for easy Pi deployment

Built with 💕 by Vixy 🦊
This commit is contained in:
Alex Kazaiev
2025-12-29 11:37:11 -06:00
parent e31eb49d5a
commit 37a2f2dcd6
6 changed files with 651 additions and 0 deletions

18
server-csi/env.example Normal file
View File

@@ -0,0 +1,18 @@
# vixy-vision CSI Camera Configuration
# API Key for authentication (generate with: python3 -c "import secrets; print(secrets.token_urlsafe(32))")
API_KEY=your-api-key-here
# Camera settings
CAMERA_WIDTH=1920
CAMERA_HEIGHT=1080
JPEG_QUALITY=85
# Camera ID for identification
CAMERA_ID=garage
# Rotation (0, 90, 180, 270)
ROTATION=0
# IR camera mode (disables some auto-exposure features)
IR_MODE=true