As any digital picture frame aficionado will tell you, it is crucial that you can add and delete images as efficiently as possible. The higher the number of great photos on your frame, the better the overall appreciation will be.
Most photos these days are taken with a mobile phone camera, and many of them end up in the Google Photos app. Wouldn’t it be nice if you had a “Picture Frame Album” in your Google Photos app, and all your images in there automatically show up on your living room picture frame?
In this article, I will show you how to use rclone to mirror the contents of your favorite Google Photos album on your Raspberry Pi digital picture frame.
This solution is cost and advertising-free as it is an open-source development.
And since you can access Google Photos on both your mobile and from your desktop computer, you have a super-easy way to manage your photo library on your frame.
Installing rclone for Google Photos
I have written about rclone as a Dropbox access on the Raspberry Pi on this blog earlier, but this time I will focus on the Google Photos connection.
The official documentation is meticulous, but it may be a bit overwhelming for the casual user, so here is a quick summary:
If you haven’t yet installed rclone on your Raspberry Pi, open a Terminal window and enter
curl https://rclone.org/install.sh | sudo bash
Next, we’ll start the configuration process with
rclone config
- Choose “n” to create a new remote
- Call it something like “googlephotos”
- Look up and enter the corresponding number for Google Photos. This may change with a new rclone release, but at the time of writing it is “14”.
- Press Enter at “client id”
- Press Enter at “client secret”
- Enter “true” when the dialog window asks about “read-only”. We don’t want the picture frame to do anything else than read your images.
- Say “n” to Edit advanced config
- Say “n” if you are working on a remote or headless machine
- You will now see, “Please go to the following link” followed by a long URL. Copy this link and insert it into a browser window.
- You may have to choose a Google account, and then you will get two messages if you want to “Grant rclone permission?”. I allowed the first request to “view” but denied the second to view & manage”. You will then get a code, go back to your Terminal window and paste the verification code there.
- Confirm the last step with “y,” and you will see your new remote connection. Enter “q” to quit.
Choosing the album to clone
Create a new album in Google Photos, or pick your favorite one. In my example, the album will be called “myfavorites”.
I have a folder on my Raspberry Pi in /home/pi/Pictures/digitalframe where I want to have all my images from the “myfavorites” album.
The command syntax for doing this is:
rclone sync [source] [destination]
In our example, the command line would be
rclone sync googlephotos:album/myfavorites /home/pi/Pictures/digitalframe
Note that you have to put an “album/” before the name of the Google Photos album.
Your Google Photos album will be the master, and everything in this album will be cloned onto the folder on your Raspberry Pi.
Automatic sync using crontab
To automatically clone your Google Photos album onto your digital picture frame every hour, we only have to add one line in crontab.
Enter
crontab -e
and add this line at the end:
0 */1 * * * rclone sync googlephotos:album/myfavorites /home/pi/Pictures/digitalframe
Save and close.
Conclusion
As Google Photos allows you to share your albums with other people, this is also an easy way to let friends & family add their images so that they appear on the digital picture frame in the living room.
I haven’t found a way to achieve the same with Apple Photos; it only works with Google Photos for now. If any of you has found a solution, please contact me.
The Google Photos library management is probably as convenient as it can get as it covers both mobile and desktop platforms and fully integrates into the Google ecosystem.
No more excuses for letting great photos lie dormant on some memory chip on your phone!
Related Articles
- How to add photos to your Raspberry Pi digital picture frame via email
- How to get a professional and automatic aspect ratio crop for your images on your Raspberry Pi digital picture frame
- The best 24 inches displays in 16:10 aspect ratio for your DIY Raspberry Pi digital photo frame project
- Discover the complete hard- and software setup of my Raspberry Pi digital picture frame (March 2021)