This is a tool for Evercam specifically build to extract images for a camera from SeaweedFS server.
Core Dependencies
- Dropbox (For uploading image)
- Httpoison (Http requests)
- Mailgun (Email sending)
- Quantum (Cron Job)
How it works
It takes the most recent created SnapshotExtractor
whom status is 0
at the moment.
- It will update its status to
1
and send en email to the owner that image extraction has been started with Extraction information. - It will fetch total days and recording dates from
SnapshotExtractor
'sschedule
. e.g{"Monday":["12:30-13:0"],"Tuesday":[],"Wednesday":["4:0-4:30"],"Thursday":[],"Friday":["8:30-9:0"],"Saturday":[],"Sunday":["19:30-20:0"]}
- From a specific starting to ending date, for each day and according to schedule, It will fetch all images and save them to DropBox.
- No crash on any timeout/Any other reason from
seaweedFS Servers
ordropbox
. - After complition it will send an email again with total image gained / total image expected to the user how initiated requests.