Last active
July 25, 2016 19:56
-
-
Save kumekay/9ae6495e3b9cc7d46157f02c4fbac71c to your computer and use it in GitHub Desktop.
Web camera on Intel Edison with uploads to s3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
photo_timestamp=$(date +%Y-%m-%d_%H%M) | |
fswebcam -r 1280x720 --jpeg 100 -D 3 -S 13 "${photo_timestamp}.jpg" | |
aws s3 cp "$photo_timestamp.jpg" "s3://$s3_bucket" && \ | |
aws s3 cp "$photo_timestamp.jpg" "s3://$s3_bucket/latest.jpg" --acl public-read && \ | |
rm "$photo_timestamp.jpg" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment