https://github.com/zebrajaeger/pi-timelapse
How to make timelapse videos with raspberry pi
https://github.com/zebrajaeger/pi-timelapse
Last synced: 5 months ago
JSON representation
How to make timelapse videos with raspberry pi
- Host: GitHub
- URL: https://github.com/zebrajaeger/pi-timelapse
- Owner: zebrajaeger
- License: gpl-3.0
- Created: 2019-12-11T10:50:22.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-14T07:36:18.000Z (over 3 years ago)
- Last Synced: 2025-04-07T15:55:34.782Z (about 1 year ago)
- Language: JavaScript
- Size: 340 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pi-timelapse
## Config pi
- enable camera
- enable serial (optional)
- enable gpio
- extend file system (optional)
## Install dependencies
sudo apt install libudev-dev
## Hardware interface
Timelapse JPG capture with raspberry pi and Raspberry Pi camera
Hardware/Schematic: https://easyeda.com/zebrajaeger/pi-timelapse
TODO: shutdown: https://www.embeddedcomputing.com/technology/open-source/development-kits/raspberry-pi-power-up-and-shutdown-with-a-physical-button
## Install requirements
### Update
sudo apt update
sudo apt upgrade
### NodeJs
- nvm does not work for development, node has to be installed globally
sudo curl -sL https://deb.nodesource.com/setup_14.x | sudo bash -
sudo apt-get install -y nodejs
check:
pi@pi4:~ $ node --version
v14.17.2
pi@pi4:~ $ which node
/usr/bin/node
### nodemon (develop only)
sudo npm i -g nodemon
### Yarn (develop, optional)
sudo npm i yarn
### usbmount
- usbmount, take a look at https://gist.github.com/zebrajaeger/168341df88abb6caaea5a029a2117925
- nodejs
### create 200MB temp dir (RAMdrive)
#### Create folder
sudo mkdir /var/cam
sudo chmod 1757 /var/cam
#### create fstab entry
sudo nano /etc/fstab
add
tmpfs /var/cam tmpfs nodev,nosuid,size=200M 0 0
mount it for this time (automatically on reboot)
sudo mount -a
check it
pi@pi4:~ $ mount | grep cam
tmpfs on /var/cam type tmpfs (rw,nosuid,nodev,relatime,size=204800k)
## Installation
### Get code
cd ~
git clone https://github.com/zebrajaeger/pi-timelapse.git
### Autostart
crontab -e
add
@reboot npm --prefix /home/pi/pi-timelapse/src run start
## Pitfalls
### File system of the external USB-Drive
Never ever use ntfs formatted usb-hdds with this software.
The write-performance is in my case < 2Mb/s and way to slow.
The same HDD, formatted in ext4 works very well.
## Develop
Uses rsync and seems to have trouble with cygwin.
cd dev
npm run develop
## Better using eth instead of wifi (unstable)
Configure
- wifi with dhcp
- eth0 with dhcp and a static ip as fallback (direct connection to developer pc)
sudo nano /etc/dhcpcd.conf
add
profile static_eth0
static ip_address=10.1.2.55/24
interface eth0
fallback static_eth0
the reboot