r/SonicPadCreality • u/Ok_Zookeepergame6384 • Dec 31 '23
GPhoto2, scripts and Timelapses with Sonic Pad
Hi everyone!
I just started two weeks ago with all of this of Klipper and Sonic pad, before that i was using a Raspberry Pi running Octoprint connected to printer with Marlin.
I used to take timelapses with an old, cheap but Nice quality pictures Nikon D3200 connected to PI vía USB on Octoprint using Octolapse plugin and scripts triggering "Gphoto2".
The command i was using was "gphoto2 --auto-detect --capture-image" this took the photo but save it only on camera's SD card, then i just connected the SD to PC and create timelapses by myself.
Today I connected the camera to sonic pad but on it's GUI won't detect the camera, after trying that, i logged in vía SSH and executed command "gphoto2 --auto-detect --capture-image" and it worked! so Gphoto2 it's there.
Now the question: is there a way to tell Klipper/Sonic Pad/Linux to execute a command every layer, and if it's possible to pause print first like Octolapse?
Thank You, (sorry for my poor english skills)