Permalink
Browse files

modified raspistill command sample

  • Loading branch information...
1 parent 5d18f54 commit 200e54fd6756cb1c35f1c600e1653684ab078ea1 @wellflat committed Oct 3, 2016
Showing with 26 additions and 12 deletions.
  1. +12 −0 aws/mosquitto_pub.sh
  2. +14 −12 camera/command_still.sh
View
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+mosquitto_pub \
+ --cafile certs/root-CA.crt \
+ --cert certs/69d2c41b2a-certificate.pem.crt \
+ --key certs/69d2c41b2a-private.pem.key \
+ -h a22m7207m8mvt4.iot.ap-northeast-1.amazonaws.com \
+ -p 8883 -q 1 -d \
+ -t topic/sns \
+ -i raspberrypi \
+ -m '{"message":"Raspberry Pi"}'
+
@@ -2,19 +2,21 @@
WIDTH=1600
HEIGHT=1200
-TIME_DELAY=1000
-#TIME_DELAY=3600000 ## 1 hour
+#TIME_DELAY=1000
+TIME_DELAY=3600000 ## 1 hour
+#TIME_DELAY=7200000 ## 2 hour
QUORITY=95
-DST_DIR=/var/www/html
-IMAGE_NAME=image.jpg
-#IMAGE_NAME=timelapse_%04d.jpg
-TIME_LAPSE=60000 ## ms
+DST_DIR=/var/www/html/timelapse
+#IMAGE_NAME=image.jpg
+IMAGE_NAME=timelapse_%04d.jpg
+#TIME_LAPSE=60000 ## ms
+TIME_LAPSE=30000 ## ms
-echo 'capture image'
-sudo raspistill -v -w $WIDTH -h $HEIGHT -t $TIME_DELAY -q $QUORITY -o $DST_DIR/$IMAGE_NAME
-echo 'end.'
+# echo 'capture image'
+# sudo raspistill -v -w $WIDTH -h $HEIGHT -t $TIME_DELAY -q $QUORITY -o $DST_DIR/$IMAGE_NAME
+# echo 'end.'
# timelapse mode
-# echo 'timelapse mode'
-# sudo raspistill -v -w $WIDTH -h $HEIGHT -t $TIME_DELAY -q $QUORITY -tl $TIME_LAPSE -o $DST_DIR/$IMAGE_NAME
-# echo 'end.'
+echo 'timelapse mode'
+sudo raspistill -v -w $WIDTH -h $HEIGHT -t $TIME_DELAY -q $QUORITY -tl $TIME_LAPSE -o $DST_DIR/$IMAGE_NAME
+echo 'end.'

0 comments on commit 200e54f

Please sign in to comment.