gphoto2 icon indicating copy to clipboard operation
gphoto2 copied to clipboard

Pisugar3 photos being overwritten

Open Mikem124 opened this issue 1 year ago • 0 comments

Apologies if this is the wrong place to post this message.

I have a PiSugar3 mounted to a Pi Zero 2 W taking photos on a Canon400D (and a Canon60D) using gphoto2.

If I run the script (as below) direct from a terminal the photos are taken and added sequentially to the card in the camera.

If I use the Single Tap function on the PiSugar to run the script (as below) the photos taken overwrite the photos on the camera card. sh /home/pi/run1.sh

This is the text of the script:

#!/bin/bash gphoto2 --auto-detect #detects the camera model sleep 2 gphoto2 --set-config capturetarget=1 #sets the storage location of the photos to be on the camera card sleep 2 gphoto2 --capture-image --interval=2 --frames=15

The PiSugar3 is a small UPS module that mounts directly on the Pi Zero and includes a power on button switch and another programmable button switch that can be associated with a script (single-tap, double-tap and long-tap)

This might be an issue with the PiSugar3 and I have asked the question of them.

I am aware of the gphoto2 --force-overwrite command, I'm guessing there isn't a similar "--force-sequential" command? Thanks Mike

Mikem124 avatar Oct 24 '22 09:10 Mikem124