An open API service indexing awesome lists of open source software.

https://github.com/bkopysc/simpletimelapsepi

Simple timelapse application for Raspberry Pi with camera module
https://github.com/bkopysc/simpletimelapsepi

camera picamera2 python raspberry-pi shell timelapse

Last synced: 2 months ago
JSON representation

Simple timelapse application for Raspberry Pi with camera module

Awesome Lists containing this project

README

          

# SimpleTimelapsePi
Simple timelapse application for Raspberry Pi with camera module.
The main goal was to schedule the timelapse to run in the background at a certain time. This way you can leave the SSH connection and go to sleep peacefully 😴.

## Requirements
- Python 3.x
- pip
- [Raspberry Pi](https://www.raspberrypi.com/)
- [Camera module](https://projects.raspberrypi.org/en/projects/getting-started-with-picamera)

## Used libraries
- [at](https://phoenixnap.com/kb/linux-at-command) - linux command
- [picamera2](https://github.com/raspberrypi/picamera2) - python library

## Installation
1. clone repo
2. run `pip -r requirements.ts`
3. open and run commands from file `sh-requirements.txt`

## Usage
There are two modes. You can use simple shell script (recommended) or python script

### Shell script
1. Make script executable: `chmod +x run.sh`
2. Run `./run.sh ` with custom arguments.
- `` - start time of shooting photos.
*For example: **10:00***
- `` - end time of shooting photos.
*For example: **10:30***
- `` - number of expected photos.
*For example: **100***

> Summary: `./run.sh 10:00 10:30 100` will make 100 photos between 10:00 and 10:30.

3. Read output informations and proceed with `y`
4. Congrats 🥳. Your timelapse will start up at the set time! Then check folders in current location!

> You can check planned actions by `atq` command. You can remove planned action by `atrm `

## Python file
1. Run `python timelapse-pi-app.py` with custom argumnets.
- `` - number of expected photos.
*For example: **100***
- `` - delay between photos in miliseconds.
*For example: **200***

> Summary `python timelapse-pi-app.py 100 200` will instantly run process and make 100 photos with deleay of 200ms between each other.

2. Hooray 🥂. Your timelapse are done! Check folders in current location!

## Results 🌞

https://user-images.githubusercontent.com/57834846/234415892-da883eb5-c0e1-4d9d-b520-e50b421e83cc.mp4