When running this piece of code:
#timestamp, capture, and tweet an image
def stamp_cap_tweet():
timestamp = time.strftime("%d%m%Y-%H%M%S")
os.system("fswebcam -r 960x720 -d /dev/video0 " + timestamp + ".jpg") #save image to disk
twit.update_status_with_media(timestamp + ".jpg", status = "@shahidrogers " + timestamp) #tweet image @username
print "Tweeted image at " + timestamp #make a record in the Python output
I get the error
File "tweetpicture.py", line 17
os.system("fswebcam -r 960x720 -d /dev/video0 " + timestamp + ".jpg") ^ IndentationError:
unindent does not match any outer indentation level
What could this possibly mean? I have searched around and people have said that there's a mix of tab and spaces, but I do not understand this at all as I am still very new to Python and this is my first few lines of coding.
Thanks!