As you know I'm now on with the DSLR and got some errors there:
snapshot_script_error: The snapshot script failed with the following error message: sudo: no tty present and no askpass program specified
The snapshot was not found in the expected directory: '/home/pi/.octoprint/data/octolapse/snapshots/0fae06d7-7ea1-4611-928d-108344442015/354def78-9eea-409a-ad23-ee966dfff4ba/Lego_man_head000000.jpg'.
It seems like Octolapse is not allowed to run snapshot.sh
Did you follow this step? If so, maybe you can paste in the sudoers file? It's possible there is a typo. Or, maybe you're not running OctoPi? It's possible that I missed some steps for non-octopi installations.
It's OctoPrint 1.3.9 running on OctoPi 0.15.1
Here the sudoers file:
#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
Defaults mail_badpass
Defaults secure_path="/root/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL:ALL) ALL
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
# See sudoers(5) for more information on "#include" directives:
#includedir /etc/sudoers.d
# allow 'sudo gphoto2' to run without supplying a password
pi ALL = (root) NOPASSWD: /usr/bin/gphoto2
That looks right. I assume you've rebooted your pi (not just restarting Octoprint), correct? If so, maybe you can post tako-snapshot.sh? I know it's probably the same as is in the wiki, but just in case.
#!/bin/sh
# Put the arguments sent by Octolapse into variables for easy use
SNAPSHOT_NUMBER=$1
DELAY_SECONDS=$2
DATA_DIRECTORY=$3
SNAPSHOT_DIRECTORY=$4
SNAPSHOT_FILENAME=$5
SNAPSHOT_FULL_PATH=$6
# Check to see if the snapshot directory exists
if [ ! -d "${SNAPSHOT_DIRECTORY}" ];
then
echo "Creating directory: ${SNAPSHOT_DIRECTORY}"
mkdir -p "${SNAPSHOT_DIRECTORY}"
fi
# IMPORTANT - You must add gphoto2 to your /etc/sudoers file in order to execute gphoto2 without sudo
# otherwise the following line will fail.
sudo gphoto2 --capture-image-and-download --filename "${SNAPSHOT_FULL_PATH}"
if [ ! -f "${SNAPSHOT_FULL_PATH}" ];
then
echo "The snapshot was not found in the expected directory: '${SNAPSHOT_FULL_PATH}'." >&2
exit 1
fi