From 7d2f91799bb904fd1b14288ea8b3cc201c9f462b Mon Sep 17 00:00:00 2001 From: Bachir Soussi Chiadmi Date: Fri, 10 Jun 2016 14:49:39 +0000 Subject: [PATCH] taking pictures is working --- .gitignore | 1 + rpi/picture.sh | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..55ff17e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +server/pictures diff --git a/rpi/picture.sh b/rpi/picture.sh index 990da8e..28d7a95 100755 --- a/rpi/picture.sh +++ b/rpi/picture.sh @@ -6,6 +6,6 @@ if [ ! -d "~/hehe-rover-pictures" ]; then mkdir ~/hehe-rover-pictures fi -date=date +"%Y-%m-%d" +now=$(date +"%Y-%m-%d--%T") -/opt/vc/raspistill -q 100 -o "~/hehe-rover-pictures/$date.jpg" +/opt/vc/bin/raspistill -e jpg -q 100 -o /home/alarm/hehe-rover-pictures/$now.jpg