RPi Node-Red: Uploading pictures to Google Photos


Upload pictures from a  node-red flow into a Google Photos folder.

What you will learn:

How to install and configure the easybotics-gphoto-upload node, and use it in your flow.

What you need to know:

Getting started with node-red


Parts List:

  • A raspberry pi setup with node-red
  • Raspberry pi camera


Getting Started:

The first step is to install the gphoto-upload node, because of some peculiarities with dependencies this node has to be installed manually, the procedure follows:
in a terminal enter

cd ~/.node-red
sudo node-red-stop
sudo npm i node-red-contrib-easybotics-gphoto-upload
sudo npm i axios@^0.16.2


and wait for all the installs to finish.

Node usage:

Drag the upload-photo node in from the palette, and enter the setup menu by double clicking on it.

It’s definitely a good idea to setup an entirely separate google account for use with node-red, rather than pasting your actual username and password into nodes; no matter how trusted. To ensure that node-red can login to gphotos without two factor authentication, it’s also best to setup unsecured access here: https://support.google.com/accounts/answer/6010255


In the settings page, the filename and album can be set. Usually you would inject a filename, but if you inject an empty message it takes the defaults set here.


To setup the camera node, just make sure it’s set to output the filename.
And that the Image Resolution is set to anything other than the maximum.


If you take pictures at the rate of once every 2 minutes here are the days you can expect before the 8GB of free space on the SD card is filled up:

Quality = 80

  • 2592×1944 – 2.7MB per photo = 3.5 days
  • 1920×1080 – 1.2MB per photo = 7 days
  • 1024×768 – 546KB per photo = 17 days
  • 320×240 – 96KB per photo = 98 days
image_pdfGenerate PDFimage_printPrint
Posted in Camera, Flows - Experiments, Raspberry Pi.

Comments are not currently available for this post.