Skip to content

Instantly share code, notes, and snippets.

@ibanezmatt13
Last active July 1, 2021 18:01
Show Gist options
  • Save ibanezmatt13/5318252 to your computer and use it in GitHub Desktop.
Save ibanezmatt13/5318252 to your computer and use it in GitHub Desktop.
# import libraries
import time
import os
while True: # do forever
os.system('fswebcam -r 320x240 -S 3 --jpeg 50 --save /home/pi/to_transmit/%H%M%S.jpg') # uses Fswebcam to take picture
time.sleep(15) # this line creates a 15 second delay before repeating the loop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment