We're entering that magical time in the X-Garden where the first tiny hints of life appear. Here's itty bitty Zinnias making a first appearance:
This seems like the perfect opportunity to capture a hyperlapse. After mulling it over, I decided the simplest and most reliable method would be to weatherize my Raspberry Pi, plug it into an all-weather extension cord and a webcam and write a quick script to grab and push photos up to the cloud.
So that's what I did. Here's the Pi getting set for some dirt time:
Yes, that's a double-bagged Pi, with duct-tape providing the weather proof seal. Pretty silly looking, but I think it's just simple enough to work.
#!/bin/bash file=/tmp/snap-`date +%Y%m%d.%H%M%S`.jpg bucket=s3://files.benjisimon.com/garden/ fswebcam -S 120 --no-banner $file s3cmd put $file $bucket rm $file
I found the -S 120 was needed or fswebcam would grab a white image. I figure I'll grab lots of images and use ffmpeg to make the hyperlapse itself.
The weak link in all of this is the webcam I'm using. It's an ancient USB model which has horrendous quality. I've since purchased a new one on Amazon and will give that a try once it arrives.
The big question: after our first rain, will the Pi still be ticking? We shall see...