gilestrolab / ethoscope

a platform from monitoring animal behaviour in real time from a raspberry pi
http://lab.gilest.ro/ethoscope/
GNU General Public License v3.0
17 stars 25 forks source link

Video backup tries to download files that do not exist anymore. #76

Closed qgeissmann closed 4 years ago

qgeissmann commented 7 years ago

We get many 404 errors because the index file that list the videos in each device is only updated when devices are recording. That means that when a device is stopped and the index is not empty, we try to download videos all the time. This may clutter a bit the network with hundreds of failing requests...

A solution could be that the index is regenerated upon external request instead. E.g. :

  1. Node asks device to regenerate index
  2. Node dl. index
  3. Node gets a list of files to download
  4. Node downloads/mirrors files