Hivemapper / hdc_firmware

The firmware that runs the OpenDashcam
https://github.com/hivemapper/odc
Apache License 2.0
0 stars 3 forks source link

USB stick directory & imagery #167

Closed jayalberts closed 11 months ago

jayalberts commented 1 year ago
evanmoss commented 1 year ago

Simple solution ideas: just have a cron job that does:

Both require the odc-api to be aware if a flashdrive is plugged in, which it should know how to do

Via ODC-API if flashdrive is plugged in:

  1. list directory of images (jpg files that aren't folders)
  2. group by days
  3. mv files to appropriate folder

Simple solution idea for (2): Via ODC-API if flashdrive is plugged in:

  1. Every time the odc-api scans a imu or gnss file, just copy it if it doesn't exist on the flashdrive
evanmoss commented 1 year ago

cc @punov for situational awareness on aboe

punov commented 1 year ago

@evanmoss sure, makes sense to me! We'll start with #2, I will think a bit on #1: even listing USB directory takes a lot of time, so I have couple ideas for this one how to make it in optimal way .

jayalberts commented 1 year ago

still investigating.

jayalberts commented 1 year ago

focus on moving images first, then back to location data

HariHive commented 1 year ago

for images: PR: https://github.com/Hivemapper/odc-api/pull/95

jayalberts commented 1 year ago

usb is crashing odc-api and hari is implementing and testing a fix.

jayalberts commented 1 year ago

hari working through PR comments

ODCAPI is trying to move images again that have already been transferred, still need to investigate. Doesn't happen on small amount of images, only larger amounts.

jayalberts commented 1 year ago

discovered another bug... after unplug, camera bridge stops collecting.

reboot heals it. other task tracking.

jayalberts commented 12 months ago

@HariHive to add validation steps