benstanfish / TimelapsePy

Library for simplifying and automating time lapse photography using a Raspberry Pi and camera. Can also use ffmpeg to convert images to mp4 if desired.
Creative Commons Zero v1.0 Universal
2 stars 1 forks source link
libcamera picamera2 python raspberry raspberry-pi raspberrypi timelapse timelapse-photography timelapse-videos

TimelapsePy

Library of simple scripts to automate timelapse photography using a Raspberry Pi. There are several scripts, the "main" script being timelapse.py, although user settings should be editted in usersettings.py.

Documentation

I'm still working on creating docstrings, etc., but for those who are so inclined to tinker: you'll probably understand what's going on. It's very simple code. Read the documentation here.

Automating TimelapsePy on Boot

Make sure you download all the scripts and put them in a new directory called: /home/username/TimelapsePy. To fully automate the program, add to your cron table with the terminal command (don't use sudo if you autologin to a specific user profile on boot:

crontab -e

Next add the following line to the bottom of the crontab file. Don't forget to add an ampersand at the end of the line

@reboot python /home/username/TimelapsePy/timelapse.py &