first picture script

This commit is contained in:
Bachir Soussi Chiadmi
2016-06-10 16:09:22 +02:00
parent a4682d42d9
commit cd024030da
4 changed files with 15 additions and 8 deletions
Executable
+11
View File
@@ -0,0 +1,11 @@
#!/bin/sh
# author : bachir soussi chiadmi
# date : 10/06/2016
if [ ! -d "~/hehe-rover-pictures" ]; then
mkdir ~/hehe-rover-pictures
fi
date=date +"%Y-%m-%d"
/opt/vc/raspistill -q 100 -o "~/hehe-rover-pictures/$date.jpg"