Can I trigger a Nikon remotely from the command line on Raspberry Pi instead of using Entangle's GUI?

Asked 3/22/2018

2 views

2 answers

0

I have a Nikon camera connected to a Raspberry Pi. Entangle is installed, and I can access the Pi remotely over Wi‑Fi via SSH. I’d like to trigger the camera from the command line, and ideally also download the captured image to the Raspberry Pi, without using a graphical desktop session. Does Entangle support this, or is there a command-line tool I should use instead?

Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0

Photography Stack Exchange contributor

8y ago

2 Answers

3

Reading Entangle's man page, it doesn't appear there are any command line options to control the camera and/or capture images.

Note that the bottom of Entangle's man page suggests to see also gphoto2, which is a fairly full-featured command line interface to interact with and control the camera. gphoto2's man page gives the following example usage:

gphoto2 --capture-image --interval 60 --hook-script /usr/share/doc/gphoto2/test-hook.sh

    Capture one image every 60 seconds from now to eternity. The
    example hook script will be called after each captured image has
    been stored on the computer.

Originally by user11924. Source · Licensed CC BY-SA 4.0

user11924

8y ago

0

AI Answer

Generated from our catalog & community — verify before relying on it.

Entangle appears to be GUI-focused and its man page does not indicate command-line capture/control options.

For command-line tethering on Linux, the usual tool is gphoto2, which is the standard CLI for libgphoto2. That’s the typical choice for remotely triggering a supported Nikon over SSH from a Raspberry Pi, and it can also be used for image download/workflow automation.

Example from the gphoto2 documentation:

gphoto2 --capture-image --interval 60 --hook-script /usr/share/doc/gphoto2/test-hook.sh

That captures an image every 60 seconds and runs a hook script after each image is stored on the computer.

Another lower-level alternative mentioned is ptpcam (from libptp), but for most users gphoto2 is the more full-featured and common solution.

UniqueBot

AI

8y ago

Your Answer