Recently, I decided I wanted to take time lapse photos of plants in my hydroponics rig as they grew. I looked around to see if a device existed which would do that job, since a couple of friends bought and set up security cameras for their houses over the winter holidays. Everything I found was overkill for my needs; what I basically needed was a laptop with a webcam to take photos every minute or so and stitch them together into a video. So, I bought a Raspberry Pi 3 from Amazon and hooked up my Microsoft LifeCam. Here’s how I set it up:
Raspberry Pi
The Model 3 B comes with wifi built in, so all you really need is a webcam and a power supply. It’s powered by a 5V 2A micro USB port, so you need something like a wall charger – PC USB ports don’t supply enough current.
Webcam
It’s a Microsoft LifeCam 720p Cinema. I forgot where I got it, but I think I won it as a prize a few years ago. Make sure to check online if your webcam will work with Linux/Raspbian.
Out-of-the-box configuration
I downloaded the non-GUI version of Raspbian and imaged it to an SD card; after plugging in the keyboard, monitor, and power supply, the first thing I did was change the password of the default account by running passwd
. The second order of business was getting the wifi connected by editing /etc/wpa_supplicant/wpa_supplicant.conf
. While editing the wpa_supplicant.conf
file, I noticed the keyboard mapping was set to Great Britain by default, so I ran sudo raspi-config
to set the locale, time zone, keyboard layout, and enabled the SSH server so I wouldn’t need to keep my keyboard and monitor plugged in.
Packages
With localization configured and the wifi successfully connected, it was time to start downloading packages. I started with sudo apt-get update
and sudo apt-get upgrade
. I installed the webcam package with sudo apt-get install fswebcam
, and the video encoding tools with sudo apt-get install libav-tools
.
Putting it all together
I wrote a bash script which:
- Creates a directory for the day, if it doesn’t exist, and then changes into it
- Takes a snapshot and saves it in the format imgNNNN.jpg, starting with 0001
- Stitches toether a video of all the .jpgs in the current directory
- Uploads it to iechoi.net
The full script is here.
There are already resources online which describe how to use fswebcam; the first few snapshots were inconsistent because the webcam needed some time to settle on the lighting conditions, so I added the -S option:
# -S 5 skips the first 5 frames; allows the camera to get settled with
# lighting conditions
fswebcam -S 5 img$n.jpg
Raspbian doesn’t have ffmpeg; it has avconv instead, which runs more or less the same:
avconv -r 25 -f image2 -i img%04d.jpg -c:v h264 -crf 1 -y plant-$DAY.mp4
Uploading to iechoi.net:
rsync -avzhe ssh *.mp4 xxxx@iechoi.net:www/mov/
However, I didn’t want to enter my password for every rsync call, so I set up an SSH key on the Raspberry Pi by running ssh-keygen -t rsa
, then copied ~/.ssh/id_rsa.pub to ~/.ssh on iechoi.net. I also had to authorize the key in my web host’s SSH settings.
Finally, I set the script to run every 15 minutes between the hours of 5am and 10pm by running crontab -e
and then entering the following line:
*/15 5-22 * * * ./capture.sh
Video:
Ace of Base — шведская поп-группа, образованная в 1990 году. Их музыкальный стиль сочетает в себе элементы поп-музыки, дэнса и электроники. Группа стала популярной благодаря хитам “All That She Wants”, “The Sign”, “Don’t Turn Around” и “Beautiful Life”. Эти композиции не только покорили чарты во многих странах мира, но и остаются классикой жанра до сих пор. Ace of Base оставили неизгладимый след в истории поп-музыки, их мелодии до сих пор радуют слушателей по всему миру. Скачать музыку 2024 года и слушать онлайн бесплатно mp3.
I’ve been following your blog for some time now, and I’m consistently blown away by the quality of your content. Your ability to tackle complex topics with ease is truly admirable.
ElD6lTZNcQL
4VZdIQAXWHf
Very good https://lc.cx/xjXBQT
Very good https://is.gd/N1ikS2
Very good https://is.gd/N1ikS2
Awesome https://is.gd/N1ikS2
Awesome https://is.gd/N1ikS2
Very good https://is.gd/N1ikS2
Very good https://is.gd/N1ikS2
Very good https://shorturl.fm/TbTre
Super https://shorturl.fm/6539m
https://shorturl.fm/5JO3e
https://shorturl.fm/oYjg5
https://shorturl.fm/68Y8V
https://shorturl.fm/N6nl1
https://shorturl.fm/a0B2m
https://shorturl.fm/j3kEj
https://shorturl.fm/YvSxU
https://shorturl.fm/m8ueY
https://shorturl.fm/m8ueY
https://shorturl.fm/TbTre
https://shorturl.fm/oYjg5
https://shorturl.fm/TbTre
https://shorturl.fm/6539m
https://shorturl.fm/YvSxU
https://shorturl.fm/oYjg5
https://shorturl.fm/0oNbA
https://shorturl.fm/retLL
https://shorturl.fm/IPXDm
https://shorturl.fm/uyMvT
https://shorturl.fm/0EtO1
https://shorturl.fm/f4TEQ
https://shorturl.fm/hQjgP
https://shorturl.fm/f4TEQ
Refer friends, earn cash—sign up now! https://shorturl.fm/vSgFl
Earn passive income on autopilot—become our affiliate! https://shorturl.fm/B8bf4
Join our affiliate community and maximize your profits! https://shorturl.fm/uX0bU
Sign up for our affiliate program and watch your earnings grow! https://shorturl.fm/ETwsm
Monetize your influence—become an affiliate today! https://shorturl.fm/GMIFs
Promote, refer, earn—join our affiliate program now! https://shorturl.fm/pZTpZ
Refer friends and colleagues—get paid for every signup! https://shorturl.fm/e4eGe
Join our affiliate program today and earn generous commissions! https://shorturl.fm/oxpD0
Share our products, earn up to 40% per sale—apply today! https://shorturl.fm/kA53W
Promote our brand and watch your income grow—join today! https://shorturl.fm/neJld
Earn passive income with every click—sign up today! https://shorturl.fm/Gm6lb
Get paid for every referral—sign up for our affiliate program now! https://shorturl.fm/khHSX
Apply now and receive dedicated support for affiliates! https://shorturl.fm/Xtb2n
Share our products, earn up to 40% per sale—apply today! https://shorturl.fm/HopOf
Join our affiliate program and start earning commissions today—sign up now! https://shorturl.fm/TBgL6
Join our affiliate community and maximize your profits—sign up now! https://shorturl.fm/8UBgi
Join our affiliate program today and start earning up to 30% commission—sign up now! https://shorturl.fm/SROGB
Share your unique link and earn up to 40% commission! https://shorturl.fm/85xdL
Join our affiliate program today and start earning up to 30% commission—sign up now! https://shorturl.fm/2j4Q7
Grow your income stream—apply to our affiliate program today! https://shorturl.fm/Ep3Pd
Share our products and watch your earnings grow—join our affiliate program! https://shorturl.fm/m18u5
Refer friends, collect commissions—sign up now! https://shorturl.fm/JfEHF
Tap into a new revenue stream—become an affiliate partner! https://shorturl.fm/OksvS
Become our partner and turn referrals into revenue—join now! https://shorturl.fm/Is5V2
Earn recurring commissions with each referral—enroll today! https://shorturl.fm/wUmT9
Earn up to 40% commission per sale—join our affiliate program now! https://shorturl.fm/xi6zc
Partner with us for generous payouts—sign up today! https://shorturl.fm/SN9fE
Share our products, earn up to 40% per sale—apply today! https://shorturl.fm/Ipxy4
Refer customers, collect commissions—join our affiliate program! https://shorturl.fm/ggetd
Get paid for every referral—enroll in our affiliate program! https://shorturl.fm/9ykVO
Refer friends, earn cash—sign up now! https://shorturl.fm/ioaZ9
Start earning passive income—become our affiliate partner! https://shorturl.fm/VXeC2
Promote our products—get paid for every sale you generate! https://shorturl.fm/P0kZR
Share our link, earn real money—signup for our affiliate program! https://shorturl.fm/qCKnt
Drive sales and watch your affiliate earnings soar! https://shorturl.fm/i0Aer
Unlock top-tier commissions—become our affiliate partner now! https://shorturl.fm/LiTPI
Your influence, your income—join our affiliate network today! https://shorturl.fm/SFene
Drive sales, earn commissions—apply now! https://shorturl.fm/nDU2R
Drive sales, earn commissions—apply now! https://shorturl.fm/nDU2R
Share our products and watch your earnings grow—join our affiliate program! https://shorturl.fm/cm9yr
Get started instantly—earn on every referral you make! https://shorturl.fm/G69u5
Join our affiliate program and watch your earnings skyrocket—sign up now! https://shorturl.fm/UBFHM
Earn up to 40% commission per sale—join our affiliate program now! https://shorturl.fm/nJUKK
Invite your network, boost your income—sign up for our affiliate program now! https://shorturl.fm/Sc1MD
Maximize your income with our high-converting offers—join as an affiliate! https://shorturl.fm/pNrQA
Drive sales and watch your affiliate earnings soar! https://shorturl.fm/ukZgp
Sign up for our affiliate program and watch your earnings grow! https://shorturl.fm/SjC9g
https://shorturl.fm/2vBBm
https://shorturl.fm/gUgcb
https://shorturl.fm/iVgAR
https://shorturl.fm/jLDrL
https://shorturl.fm/j9DOx
https://shorturl.fm/JGGoi
https://shorturl.fm/SU6l1
https://shorturl.fm/4cHJV
https://shorturl.fm/VDFz4
https://shorturl.fm/YK5xy
https://shorturl.fm/0iBZG
https://shorturl.fm/DBdxv
https://shorturl.fm/STEG5
https://shorturl.fm/mU0Th
https://shorturl.fm/egSEu
https://shorturl.fm/82yp7
https://shorturl.fm/b2KwA
https://shorturl.fm/Y1J1Y
https://shorturl.fm/fmUj5
https://shorturl.fm/p3xBC
https://shorturl.fm/JQZAn
https://shorturl.fm/x0FIL
https://shorturl.fm/zV4D5
https://shorturl.fm/84mdy
https://shorturl.fm/WtOGJ
https://shorturl.fm/5KMrf
https://shorturl.fm/REHzy
https://shorturl.fm/9hOSZ
https://shorturl.fm/ZVjz4
https://shorturl.fm/lJkpH
https://shorturl.fm/NR2u3
https://shorturl.fm/mzjfT
https://shorturl.fm/0uZ81
https://shorturl.fm/W3z3R
https://shorturl.fm/8RNq8
https://shorturl.fm/LhH11
https://shorturl.fm/XW9M4
https://shorturl.fm/Ma3Wx
https://shorturl.fm/Pn3gF
https://shorturl.fm/0rEk7
https://shorturl.fm/KerBX
https://shorturl.fm/a13vm
https://shorturl.fm/8ok2o
https://shorturl.fm/JlODy
https://shorturl.fm/g2ICU
https://shorturl.fm/k4Mvs
https://shorturl.fm/SJpCJ
https://shorturl.fm/a9v4M
https://shorturl.fm/jqVUe
https://shorturl.fm/sPdOk
https://shorturl.fm/Jp608
https://shorturl.fm/Q7HAL
https://shorturl.fm/mIf4D
https://shorturl.fm/vtvKk
https://shorturl.fm/jZkfc
https://shorturl.fm/J9N3X
https://shorturl.fm/MhPe7
https://shorturl.fm/iyeXF
https://shorturl.fm/PUAfV
https://shorturl.fm/NSeCa
https://shorturl.fm/OStpQ
https://shorturl.fm/pXW5C
https://shorturl.fm/IslDN
https://shorturl.fm/I2Fcq
https://shorturl.fm/wDKJo
https://shorturl.fm/2gDmU
https://shorturl.fm/y0oKq
https://shorturl.fm/EBtXj
https://shorturl.fm/pjacy
https://shorturl.fm/pxLek
https://shorturl.fm/rX81o
https://shorturl.fm/7wURy
https://shorturl.fm/gbjd1
https://shorturl.fm/5zMr3
https://shorturl.fm/rSA5W
https://shorturl.fm/Y7G0W
https://shorturl.fm/XeUAU
https://shorturl.fm/Z6PUE
https://shorturl.fm/hEV9U
https://shorturl.fm/jmQjb
https://shorturl.fm/dLpHz
https://shorturl.fm/HBaRG
https://shorturl.fm/7TP5j
https://shorturl.fm/8q6qY