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
- Host: GitHub
- URL: https://github.com/bkopysc/simpletimelapsepi
- Owner: BKopysc
- Created: 2023-04-25T21:24:33.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-25T22:21:34.000Z (about 3 years ago)
- Last Synced: 2025-03-15T05:41:55.601Z (over 1 year ago)
- Topics: camera, picamera2, python, raspberry-pi, shell, timelapse
- Language: Shell
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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