lib/tlapse/capture.rb in tlapse-0.3.1 vs lib/tlapse/capture.rb in tlapse-0.3.2
- old
+ new
@@ -44,10 +44,14 @@
captures = self.captures_needed(
start_time: from,
end_time: to,
interval: interval
)
- "gphoto2 --capture-image-and-download -I #{interval} -F #{captures}"
+
+ command = "gphoto2 --capture-image-and-download"
+ command += " -I #{interval}"
+ command += " -F #{captures}"
+ command += ' --filename "%Y-%m-%d_%H-%M-%S.jpg"'
end
##
# Capture a timelapse image once per interval while the sun is up.
#