I am trying to make a plugin using gphoto2 to make the printer stop per completion of a layer and then use --capture-image-and-download to download the image to Raspberry Pi. The camera did take pictures but no image was downloaded.
subprocess.call(["gphoto2","--force-overwrite","--capture-image-and-download","--filename","/home/pi/.octoprint/plugins/testim.jpg"])
I am using a hook to find out if a layer is completed, then I capture images and download within the hook. Please help me find out the reason why it was not downloading and thank you!!!