X-Git-Url: https://git.deb.at/w?a=blobdiff_plain;f=EOSandGphoto%2Findex.mdwn;fp=EOSandGphoto%2Findex.mdwn;h=123d9c662159cc53583c7dabe04f941b72272caa;hb=ea8c87317210d15fe425d979903108b7998ba38b;hp=dccb061533a3b42e081ac2d03cd2654190a49549;hpb=bb58b440ee60e34e1c961060195598787087c131;p=debienna.git diff --git a/EOSandGphoto/index.mdwn b/EOSandGphoto/index.mdwn index dccb061..123d9c6 100644 --- a/EOSandGphoto/index.mdwn +++ b/EOSandGphoto/index.mdwn @@ -1,10 +1,12 @@ -{{{ -gphoto2 --set-config /main/camera/shutterspeed=1/20 --set-config /main/camera/resolution=1 --interval 5 --frames 5 --capture-image-and-download --hook-script ./rename_image.sh -}}} -./rename_image.sh -{{{ -#!/bin/bash -# We have to move images from gphoto2 because gphoto2 cannot move them... -PREFIX="IMG_" -[ $ACTION == "download" ] && (mv $ARGUMENT $(exif -t 0x0132 -m $ARGUMENT | sed -e's/:\| //g' -e's/$/.jpg/' -e"s/^/$PREFIX/")) || exit 0 -}}} \ No newline at end of file + + +[[!format txt """ +gphoto2 --set-config /main/camera/shutterspeed=1/20 --set-config /main/camera/resolution=1 --interval 5 --frames 5 --capture-image-and-download --hook-script ./rename_image.sh +"""]] +./rename_image.sh +[[!format txt """ +#!/bin/bash +# We have to move images from gphoto2 because gphoto2 cannot move them... +PREFIX="IMG_" +[ $ACTION == "download" ] && (mv $ARGUMENT $(exif -t 0x0132 -m $ARGUMENT | sed -e's/:\| //g' -e's/$/.jpg/' -e"s/^/$PREFIX/")) || exit 0 +"""]] \ No newline at end of file