mattpitts74
Posts: 10
Joined: Tue Jan 29, 2013 10:59 pm

Simple Time-lapse Help using Gphoto2

Thu Jan 04, 2018 9:55 am

Hi Guys,

I would really appreciate a little help. I'm planning a 10 month long time-lapse setup to record the seasonal change on a friends flower growing business. I already have gphoto2 setup and running on my pi connected to a Canon DSLR. But I have been struggling to work out the simplest way to get the setup running automatically over this length on time.

I have found lots of scripts on Github but I'm no programmer and although I can get an idea of what they do. Most seem over complicated for my needs.

I'm wondering if the easiest way is to create a very simple script and then use a cronjob. Would someone be willing to help me write the script needed or point me towards something basic I can try and modify myself?

I've come across shell scripts like these:

Code: Select all

#!/bin/sh

gphoto2 --capture-image-and-download --filename "/media/timelapse/%Y-%m-%d-%H-%M-%S.jpg"
So Can I use these and call them from the cron? if so where do i save the shell script and how do I call in in the cron?

I simply need the camera to take a photo every 15 minutes each day from dawn till dusk and save it on the SD card of the camera, as I will be going there regularly I'm happy to swap cards and batteries.

I'm also trying to work out the simplest way to power the pi? I was thinking of battery or solar or a combination of both.

Also would it make more sense to use a pi zero? as it uses less power? or my old original pi? The other option I was considering is buying the pi camera and using that instead? but I'm not sure how good the quality of the camera will be?

Return to “General discussion”