This guide walks you through having your pi synchronize to your OSX machine over ssh. After that, you can set Lightroom Classic to auto-import your synchronized directory.
Note that there is no "watch folder" feature for the new, cloud-based Lightroom.
First, you should enable ssh access on OSX.
To do this:
- Open System Preferences
- Click Sharing
- On the left, check the box next to Remote Login
- On the right, select Only these users
- Click the + sign
- Select your user
Note that the dialogue shows you how to access your machine. It will say:
To login to this computer remotely, type "ssh user@machine"
Take note of the user and machine ip.
From your pi, verify that you can indeed access the machine:
ssh user@machine
It will ask you for your OSX password. If successful, you'll see your terminal from your OSX machine.
💡 Note: you may need to replace the machine name in the ssh command with the OSX machine's IP address.
Next, we'll setup ssh keys between the pi and your osx machine so it can ssh without a password.
- First, generate a key on the pi machine:
ssh-keygen -t ecdsa
(if you're not sure what the prompts mean, just leave them as default and don't enter a passphrase)
- And copy it to your osx machine:
ssh-copy-id user@machine
(you will be asked for your osx password again)
Now, you should be able to ssh from your pi to your OSX machine without a password:
ssh user@machine
Next, you should pick a location on your remote machine that you'll copy the images to. For this demonstration, I've selected ~/Pictures/incoming
.
- Next, open Lightoom Classic, and navigate to Choose File > Auto Import > Auto Import Settings.
- Click the Choose button next to Watched Folder.
- Select the folder that you made.
Finally, setup your PiPhoto to use rsync
to copy the images to your OSX machine. In your piphoto.conf
file:
sync_command="rsync -rav -e shh $mount_point user@machine:./Pictures/incoming/"
Note that this setup assumes that your camera names the images continuously. If it restarts at 1 each time you erase your card, then the rsync
command will overwrite images on your OSX machine. I am not sure if/what Lightroom Classic will do in that case.
If you want the remote folder to organize images by date, check out the Copying and Organizing over SSH setup.