#!!!!!!!!!!!if camera is "claimed" look for process that is using it,
#!!!!!!!!!!!possible "gvfs-gphoto2-volume-monitor" and kill it
#Some Settings are only available if you are in “M” mode on the camera
List features:
gphoto2 --list-ports
gphoto2 --auto-detect
gphoto2 --summary
gphoto2 --list-files
gphoto2 --get-all-files
gphoto2 --list-config
set shutter speed:
gphoto2 --set-config shutterspeed=1
See shutter speed settings:
gphoto2 --get-config shutterspeed
Take a photo and save it to the computer:
gphoto2 --capture-image-and-download --filename "%Y%m%d%H%M%S.jpg"
Take a Photo and save it to the Camera:
gphoto2 --capture-image
gphoto2 --trigger-capture
Save the image to the computer when taken from the camera
gphoto2 --capture-tethered
Limit it to only 10 seconds
gphoto2 --capture-tethered=10s
gphoto2 - -I 20 -F 3150 --capture-image-and-download --filename "%Y%m%d%H%M%S.jpg"
-I 20
Use a 20 seconds interval between two snapshots
-F 3150
Capture 3150 snapshots
gphoto2 --set-config capturetarget=0 #use camera’s ram to store image
gphoto2 --set-config capturetarget=1 #use SD card to store image
#ricoh theta 360
http://mimosa-pudica.net/ricoh-theta.html
# Create a command alias.
theta() { gphoto2 --port=ptpip:192.168.1.1 "--camera=PTP/IP Camera" "$@" }
# Set date/time in localtime.
# Because My THETA is a Japanese version, add JST+09 == +32400 sec.
theta --set-config datetime=$(($(date +%s) + 32400))
# Set an exposure compensation to -0.3EV.
theta --set-config exposurecompensation=7
# Take a picture.
theta --trigger-capture
# Retrieve all files (I recommended to do this with USB connection
# because of slowness).
theta --get-all-files
#!/bin/bash
case "$ACTION" in
download)
#sudo kill qiv
echo "$ARGUMENT" &
;;
"")
me=$(cd ${0%/*} && echo $PWD/${0##*/})
# gphoto2 --capture-tethered --hook-script=$me
# gphoto2 --capture-image --hook-script=$me
gphoto2 --capture-image-and-download --hook-script=$me --filename=$(date +%s).jpg
;;
esac