How to easily and fast setup a time-lapse project with your Raspberry Pi + (Pi) Cam. In the video I explain what I did and I give some tips. I use a Raspberry Pi 3 and a Picam V1.3. With a basic Raspian Jessie Light install you can make it work. Adding ImageMagick will also give you some extra editing options like adding text and some convertion Magick.

I'll use the time-lapse photography from my Raspberry Pi plus Picam when the project is finished and will use a videoeditor to import the images at the preferred framerate and build a video from it. In the video you can see a pre preview from the time-lapse project with my Raspberry Pi.

The steps I used for this Time-lapse project on my Raspberry Pi I show you in this article, just follow this steps and you can easily start with your own time-lapse project.

Easily setting up your own Time-lapse project with your Raspberry Pi

Just follow these easy steps:

After installing Jessie and all updates:

$ sudo apt-get update

(you did that already but in case your using your Pi already, to be sure you'v got the latest updates)

$ sudo apt-get install imagemagick

(This is optional. Only required when you need to add text/time to photo's)

Add Time-lapse camera script for your Pi

$sudo nano /home/pi/example_script.sh

Copy and add the script below and change for your needs. F.e. the ftp setup settings. In the video I explain the script a little bit more, so be sure to watch the video.

filename=$(date -u +"%Y%m%d%H%M%S").jpg
date=$(date +"%d-%m-%Y")
tijd=$(date +"%H:%M")
host=ftphost
user=YourUsername
pass=YourPassword
#Capture image
raspistill -q 20 -n -ex auto -mm matrix -drc high -t 300 -o /tmp/$filename
#Optional, adding text and resizing plus cropping
convert /tmp/$filename \-pointsize 36 -fill white -annotate +120+1600 '© Marcedwin.nl' \-pointsize 36 -fill white -annotate +2169+1600 $date \-pointsize 36 -fill white -annotate +2386+1600 $tijd -resize 1920 -crop 1920x1080+0+152 -sharpen 0x.4 /tmp/$filename
ftp -ivn $host<<EOF
user $user $pass
put /tmp/$filename /deFotos/$filename
put /tmp/$filename latest.jpg
bye
EOF
#Remove transfered image file This is optional, as /tmp gets cleaned up after each reboot
rm /tmp/$filename

Make Time-lapse script Pi executable

$ chmod +x example_script.sh

Test your Time-lapse script

$ ./example_script.sh

Add your time-lapse cronjob

$ crontab - e

Copy and add the cronjobs below and change to your likings.

30-59 6 * * 1-5 /home/pi/example_script.sh
*/2 7-16 * * 1-5 /home/pi/example_script.sh
0-30 17 * * 1-5 /home/pi/example_script.sh
*/10 7-17 * * 6,7 /home/pi/example_script.sh

Reboot your Pi

$ sudo reboot

That's all!

Be sure to check-out the video for some more instruction and explanation. Hope you appreciate it.

Good luck and show me your time-lapse projects. Would love to here from you all.

 

Comments

Your comments are very welcome, please be nice ;)

vimexx hosting small