Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature custom snapshot_cmd implemented #154

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

boecko
Copy link

@boecko boecko commented Feb 24, 2024

This PR introduces 4 new timelapse-options .
It allows making timelapses via invocation of a custom shellscript.
In my case i'm using gphoto2 to control a Canon EOS70D camara.
It use_snapshot_cmd is False or snapshot_cmd_check fails, the normal configuration is used.

[timelapse]
    use_snapshot_cmd: True
    snapshot_cmd: /home/pi/bin/gphoto2_capture.sh
    snapshot_cmd_check: /home/pi/bin/gphoto2_check.sh
    snapshot_cmd_waittime: 10.0

example:
[webcam canon]
location: printer
icon:
enabled: False
stream_url: /webcam/stream
snapshot_url: cmd:/home/pi/bin/canoncaptureframe

--- canoncaptureframe ---
BASEFILE=${1%%.jpg}
gphoto2 --quiet --capture-image-and-download --filename="$BASEFILE.%C"
--force-overwrite
rm -f "$BASEFILE.cr3"
---
example for DSLR via gphoto
[timelapse]
park_time: 0.6
snapshot_cmd: /home/pi/bin/gphoto2_capture.sh
snapshot_cmd_check: /home/pi/bin/gphoto2_check.sh #optional
use_snapshot_cmd: True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant