This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
raspberry_lcd_nexa [2015/01/16 11:48] ekorre |
raspberry_lcd_nexa [2015/01/16 11:53] ekorre |
||
---|---|---|---|
Line 275: | Line 275: | ||
+ | </ | ||
+ | |||
+ | **Kamera scriptet** | ||
+ | Det den gör är ta en bild med " | ||
+ | |||
+ | <file python selfi.sh> | ||
+ | #!/bin/bash | ||
+ | |||
+ | PICTURE=$(date +" | ||
+ | SOURCE=/tmp | ||
+ | DESTINATION=/ | ||
+ | |||
+ | GETCOUNT=$(ps aux | grep raspistill | grep -v grep | wc -l) | ||
+ | |||
+ | if [ " | ||
+ | then | ||
+ | echo inga raspistill processer kors.. fortsatter... | ||
+ | raspistill -vf -hf -w 640 -h 480 -q 75 -o $SOURCE/ | ||
+ | mount -t cifs -o " | ||
+ | cp $SOURCE/ | ||
+ | rm $SOURCE/ | ||
+ | sync;sync | ||
+ | umount /mnt | ||
+ | echo allt verkar i sin ordning... | ||
+ | else | ||
+ | echo RASPISTILL ALREADY RUNNING! | ||
+ | fi | ||
</ | </ |