diff --git a/main.py b/main.py index d3c9fdb..ad506b4 100644 --- a/main.py +++ b/main.py @@ -11,7 +11,7 @@ camera = PiCamera() #Camera Initialization GPIO.setwarnings(False) GPIO.setmode(GPIO.BCM) #Setting the GPIO Mode GPIO.setup(22, GPIO.OUT) #LED Flash Output -GPIO.setup(27, GPIO.OUT) #LED indicator output +GPIO.setup(27, GPIO.OUT) #LED indicator output cwd = os.getcwd() #Sets the Current Working Directory @@ -47,7 +47,7 @@ def bugmotion(): # Grab the current time filePath = cwd + "/Pictures/" currentTime = datetime.now() - picTime = currentTime.strftime("%Y.%m.%d-%H%M") + picTime = currentTime.strftime("%Y-%m-%d-%H-%M-%S") picName = "Capture-" + picTime + '.jpg' completeFilePath = filePath + picName #file_name = cwd + "/Pictures/Capture_" + str(time.time()) + ".jpg"