capture 192 B

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