Hi
I would like to backup all the content from the SD Card on my computer by wifi automatically when I come home.
Like just plug the camera, turn the wifi on and run an executable on the computer.
What I try to do Is:
- set a UBNT antenna as a receiver to put the camera on my network.
- make a program that I just have to execute to look in the directory and download the content and put it in a folder with the current date.
- Erase the SD Card content once it's done.
I run a motorcycle daily and record all my ride. I want to build a database with all the video content to make video editing later and it's a pain to download/erase the content of the SD card daily.
Do you have any clue before I start all the process ?
I'm a network guy, so the difficult part for me is the coding of the executable file.
Thanks
Nicolas
Anonymous
Hello Nicolas,
From your list, I'm going to assume that...
With these two assumptions, what you wish to do should be straightforward to write.
Off the top of my head, these are steps the backup program would need to do:
YYYY-MM-DD
like2017-07-28
).As you mentioned connecting via a router instead of WiFi card, you might need to connect/disconnect WiFi manually, and let your program/script handle the rest.
With all that said, I'm not sure how flexible your router's firmware is, in regard of NAT configuration. In case that NAT cannot be disabled, you might need to make sure that your router allocated network in an address range not conflicting with 192.168.1.0/24. (Though, if camera's directory listing shows up when you entered http://192.168.1.254/ in the browser, you're already fine)
For the backup program/script itself: if you are running GNU/Linux (or other Unix-like platforms like Mac OS X and Cygwin), writing it as a shell script should be easiest. On the other hand, if you are running Microsoft Windows, just use your favorite programming language or an automation software.
For the recursive downloader: you probably want to use either Pavuk (Unix) or Wget (Unix/Windows). Since there are URL-based skipping involved, using Pavuk should be more straightforward. Though with some care, Wget can be used too (and there are some interesting side effects). See example scripts in posts below.
Regards,
Nutchanon
P.S. In any case, file modification dates will not be preserved due to the lack of
Last-Modified
HTTP header, but you should be able to re-assign them later from a look at videos' metadata if that is desired.This is an example backup script for Unix-like system, using Pavuk as a downloader:
This script is tested on Debian GNU/Linux 7.0 i386 (Pavuk 0.9.35), with SJCAM SJ4000 WiFi (G20140116V01 firmware). It should also continue downloading correctly even when the previous attempt was stopped in the middle.
And below is an example backup script for Unix-like system, using a well-known Wget as downloader.
Note that Wget will delete each video file on the camera after it finished downloading, so card formatting is not needed- thus picture files are left intact. (This is due to Wget's accept/reject filter working post-download, so they can't keep deletion links from being hit)
This script is tested on Debian GNU/Linux 7.0 i386 (Wget 1.13.4), with SJCAM SJ4000 WiFi (G20140116V01 firmware). It should also restart downloading incomplete files correctly even when previous attempt was stopped in the middle.
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
Wow so much good info in here.
I'll try these step this week.
For the router (UBNT antenna) it's a very flexible and complete firmware that can fit my need.
I'm gonna work on widows for now.
Thanks alot for the time.
I'll give some news about it.
Nico