Manuel Koller 10 роки тому
коміт
be65749e7e
1 змінених файлів з 12 додано та 0 видалено
  1. 12 0
      capture

+ 12 - 0
capture

@@ -0,0 +1,12 @@
+#!/bin/bash
+
+# set working dir to script's base dir
+cd ${0%/*}
+
+DATE=$(date +"%Y-%m-%d_%H%M%S")
+
+dir_path="./slides/`date -I`"
+
+mkdir -p $dir_path
+
+raspistill -vf -hf -o "$dir_path/$DATE.jpg"