Page 1 of 1

HOWTO: Gopro Auto Picture Processing and Storage

Posted: Fri Jul 01, 2016 9:23 pm
by Sergeant_Dave
• GAPPS is for people who use a go pro while they are on the go and do not have more than 1 or 2 SD cards, so size is limited.

• GAPPS is also for people who at the end of the day just want to off load it automatically and have the card come out clean of all pictures, videos and video files.

• This program mounts the SD. Copies the "100GOPRO" folder which is made by the gopro when you stick it into the slot, and places the copied file in a folder which can be located out of the PI if you choose, and is recommended to have an HDD to store the pictures since the Pi is limited on space.

• You can change where the pictures are placed by replacing the yellow directory location below.

This is a list of sites that can help you get started with your Pi and helped me make this program:
http://www.circuitbasics.com/how-to-wri ... pberry-pi/
https://www.cl.cam.ac.uk/projects/raspb ... _switches/
https://help.ubuntu.com/community/Mount
https://www.linux.com/answers/move-all- ... nother-one

Before we can start, in order for the Pi to read the SD cards, we must format them to FAT32, default card format is exFAT. In order to do this we must download a program called guiformat.exe http://fat32-format.en.softonic.com/dow ... ownloading and format all of the go pro SD cards like this, we can then insert it back into the go pro to get the default folders back on them. It is recommended to take example pictures with it to make sure it will copy them safely. Once all of that is done, Lets get started:

1. Start with loading up a clean copy of NOOBS. (You can get this here https://www.raspberrypi.org/downloads/noobs/)
2. Select the Rasbian Jessie, and select the extra file space.

Now that you have your Pi booted up, you can now follow this tutorial http://www.instructables.com/id/Use-ssh ... pberry-Pi/ to set up SSH to control your Pi from your computer.

3. Update/Upgrade the Pi:

Code: Select all

sudo apt-get update
sudo apt-get upgrade
4. Make a new directory for picture storage.

Code: Select all

cd /
sudo mkdir Picture_Storage

5.1. Create the SHELL file: (You can get the full file and skip step 5 here: https://drive.google.com/open?id=0B4Tff ... WVIUmwybVE)

Code: Select all

sudo nano gapps.sh
5.2. Copy this code into the Shell.

Code: Select all

#!/bin/bash -e
echo "Mounting SD..."
sudo mount /dev/sda1 /mnt
echo "Copying..."
sudo cp -r /mnt/DCIM/100GOPRO [color=yellow]/Picture_Storage[/color]
echo "Deleting Source..."
sudo rm -r /mnt/DCIM/100GOPRO
echo "Unmounting SD..."
sudo umount /mnt
echo "Done."
6. Saving:
1. Save and Exit with "CTRL" + "X"
2. Override Save "Y"
3. Press "Enter/Return" to save.
7. Make the shell executable:

Code: Select all

sudo chmod +x gapps.sh
8. Run your SHELL:

Code: Select all

sh gapps.sh