Advertisement
Guest User

GCI_Script

a guest
Dec 14th, 2015
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.58 KB | None | 0 0
  1. import picamera
  2. from time import sleep
  3. from subprocess import call
  4.  
  5. # camera instance created from PiCamera class
  6. camera = picamera.PiCamera()
  7.  
  8. for i in range(10):
  9.     # Camera warm-up
  10.     sleep(2)
  11.     # Image captured as img_i.jpg
  12.     capture.capture('img_' + str(i) + '.jpg')
  13.  
  14. call('git init', shell = True)
  15. call('git add .', shell = True)
  16. call('git commit -m "commiting..."', shell = True)
  17. call('git remote add origin https://github.com/9at8/PiCamFossasia.git', shell = True)
  18. call('git push origin master', shell = True)
  19.  
  20. # Link: https://github.com/9at8/PiCamFossasia
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement