Files
yaris-obd/.gitignore
T
Mathieu MoranandCopilot 42e679782e Add Pi-side upload client for Phase 9 remote server
- app_sql.py: add UPLOADED column + migration on tracking table, add
  settings and dashcam_uploads tables, add helpers for unsent-row
  queries, marking rows uploaded, and dashcam upload dedupe tracking.
- app_upload.py: new background upload client. Periodically batches
  unsent tracking rows to POST /api/v1/tracking/batch and uploads new
  dashcam files (sha256-verified) to POST /api/v1/dashcam/upload, with
  exponential backoff on failure. Exposes get_status() and a
  dashcam-upload enable/disable toggle backed by the settings table.
- app.py: start the upload client thread at startup, add
  GET /api/upload/status and POST /api/upload/dashcam_toggle routes.
- dash.html/dash.js: add a "Remote server upload" card with upload
  status and a toggle switch to pause dashcam video uploads while
  trip/GPS log uploads keep running (per user request - useful on a
  slow/metered connection).
- db/upload_creds.env: new gitignore-exempted template (mirrors
  db/creds.env) for YARIS_SERVER_URL/YARIS_DEVICE_NAME/YARIS_API_KEY.
- requirements.txt: add requests.

Tested against the real deployed unraid server: tracking batch upload
+ dedupe, dashcam upload + dedupe, and toggle-off correctly pausing
dashcam uploads while tracking uploads continue. Also verified the
full Flask app imports/runs cleanly and the new API routes + dash.html
toggle render correctly in a headless browser.

Co-authored-by: Copilot <[email protected]>
2026-08-08 20:05:42 -04:00

34 lines
698 B
Plaintext

# Python
__pycache__/
*.py[cod]
*.egg-info/
.venv/
venv/
# Editor
.vscode/
# Downloaded offline map tiles (large, regenerate via scripts/download_map_tiles.py
# and deploy directly to the Pi - not tracked in git)
static/vendor/tiles/
# Runtime logs
*.log
# Local secrets (MAPTILER_KEY etc.) - never commit real credentials
.env
*.env
!db/creds.env
!db/upload_creds.env
# Local SQLite trip-tracking databases (per-device data, not source)
db/sql/
# Imported dashcam footage (large, per-device data, not source)
dash/videos/
# Remote server: local secrets and runtime data (Postgres volume, uploaded
# dashcam files) - never commit real credentials or per-device data
server/.env
server/data/