Another timelapse for raspberry pi https://github.com/geraudc/laguna_timelapse.git
- python3
- systemd
Latest release is available here : https://github.com/geraudc/laguna_timelapse/releases/latest
wget <link_to_release.tar.gz
Execute this commands :
tar -xvf <tar_name>
cd laguna_timelapse
sudo ./install.sh
sync
You will be able to see the frontend : http://pi_ip_address
The app will be installed in the directory </opt/laguna_timelapse/> and
can be launched by pi
user.
If it is your first install and if you want to use dropbox, you will need to launch dropbox_uploader.sh to get the token.
Start timelapse :
sudo systemctl start laguna_timelapse
Stop timelapse :
sudo systemctl stop laguna_timelapse
Start timelapse on boot :
sudo systemctl enable laguna_timelapse
Do not start timelapse on boot :
sudo systemctl disable laguna_timelapse
Get the last raspbian image and flash it to your sdcard using Win32DiskImager for exemple.
To enable ssh, create a file named ssh
in the boot partition of the sdcard. (https://www.raspberrypi.org/documentation/remote-access/ssh/)
Connect to the raspberry pi using ssh and use sudo raspi-config
to
enable the camera (/5/P1/ yes) and set an hostname to your pi. A reboot is needed.
Enable your wifi connection if needed by editing </etc/wpa_supplicant/wpa_supplicant.conf> using the command : wpa_passphrase <ssid> [passphrase]
Launch the file with : wpa_cli -i wlan0 reconfigure
Install some dependencies :
sudo apt-get update && sudo apt-get --assume-yes upgrade
sudo apt-get --assume-yes install python3-pip python3-dev python3-rpi.gpio imagemagick iptables-persistent
sudo apt-get install libatlas3-base libwebp-dev gstreamer1.0-plugins-base -y
sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev -y
sudo apt-get install libqtgui4 libqt4-test -y
sudo pip3 install flask
sudo pip3 install pillow
Enable persistent port redirection.
sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 5000
sudo sh -c 'iptables-save > /etc/iptables/rules.v4'
You will now be able to install laguna_timelpase using "Fast install" section.
-
Export to target from gitbash :
./export.sh <tar.get.ip.addr>
-
Check logs in real time
journalctl -f -u laguna_timelapse
journalctl -f -u laguna_timelapse_frontend
- init.d :
- mount usb :
- port redirection :
- multiprocessing :
- imaging :
- video feed :
- https://raspberrypi.stackexchange.com/questions/7446/how-can-i-stream-h-264-video-from-the-raspberry-pi-camera-module-via-a-web-serve
- https://blog.miguelgrinberg.com/post/how-to-build-and-run-mjpg-streamer-on-the-raspberry-pi
- https://blog.miguelgrinberg.com/post/stream-video-from-the-raspberry-pi-camera-to-web-browsers-even-on-ios-and-android
- https://blog.miguelgrinberg.com/post/flask-video-streaming-revisited
- android app :