Skip to content

Instantly share code, notes, and snippets.

@m87carlson
Created March 8, 2022 23:39
Show Gist options
  • Save m87carlson/b0855ecec607975453e7cf34d38ebf50 to your computer and use it in GitHub Desktop.
Save m87carlson/b0855ecec607975453e7cf34d38ebf50 to your computer and use it in GitHub Desktop.
simple script to take a still, over lay datetime, remove original
#!/bin/bash
DATETIME=$(printf "%(%Y-%m-%d_%H%M%S)T")
raspistill -o /data/SecurityPi/HerbsAndSpice/TMP_$DATETIME.jpg
convert -pointsize 36 -fill yellow -draw "text 20,60 \"`date`\"" /data/SecurityPi/HerbsAndSpice/TMP_$DATETIME.jpg /data/SecurityPi/HerbsAndSpice/$DATETIME.jpg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment