Skip to content

Instantly share code, notes, and snippets.

@Bouni
Last active December 22, 2020 09:16
Show Gist options
  • Select an option

  • Save Bouni/dfee80064922459284122ab889c01e00 to your computer and use it in GitHub Desktop.

Select an option

Save Bouni/dfee80064922459284122ab889c01e00 to your computer and use it in GitHub Desktop.
use raspistill to take a picture from the RaspberryPi camera, then call processing script
#!/bin/bash
now=$(date +"%Y-%m-%dT%H-%M-%S")
file="/home/pi/bwt-${now}.jpg"
raspistill -vf -hf -t 1000 -o $file
python3 /home/pi/status.py $file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment