capture 231 B

12345678910
  1. #!/bin/bash
  2. # set working dir to script's base dir
  3. cd "$( dirname "${BASH_SOURCE[0]}" )"
  4. slide_path="./slides/$(date +"%Y-%m-%d")/$(date +"%H.%M.%S").jpg"
  5. mkdir -p "$(dirname "$slide_path")"
  6. raspistill -vf -hf -o "$slide_path"