Monitor a folder and automatically upload photos to Google Photos without consuming storage space.
951
This project is based on google_photos_mobile_clientβ and allows you to monitor a folder (even SMB/NAS shares) and automatically upload photos to Google Photos without consuming storage space, using a lightweight Docker container.
AUTH_DATA authentication key (see section below)Here's a sample docker-compose.yml configuration:
services:
gphotos-uploader:
image: ciuse99/gphotos-uploader:latest
container_name: gphotos-uploader
restart: unless-stopped
environment:
- WATCHED_FOLDER=/data
- AUTH_DATA=INSERT_YOUR_AUTH_DATA_HERE
volumes:
- INSERT_YOUR_PHOTO_FOLDER_HERE:/data
Replace INSERT_YOUR_AUTH_DATA_HERE with your real authentication string, and map your photo folder accordingly.
docker-compose.yml.docker-compose up -d
docker-compose logs -f
docker-compose down
AUTH_DATAYou only need to do this once to retrieve your permanent key.
Install Google Photos ReVanced on your Android device:
Connect your device to your PC via ADB.
Run the following in your terminal:
Windows:
adb logcat | FINDSTR "auth%2Fphotos.native"
Linux/macOS:
adb logcat | grep "auth%2Fphotos.native"
If you've used ReVanced before, remove your Google Account from GmsCore.
Launch Google Photos ReVanced and log into your account.
You should see logs appear in your terminal.
Copy the full line starting from androidId= to the end. Thatβs your AUTH_DATA! π
Use a rooted Android device or emulator (Android 9β13 recommended).
Connect your device to your PC via ADB.
Install HTTP Toolkitβ .
In HTTP Toolkit, go to Intercept β Android Device via ADB.
Apply the filter:
contains(https://www.googleapis.com/auth/photos.native)
Or for older versions:
contains(www.googleapis.com%2Fauth%2Fplus.photos.readwrite)
Open Google Photos and log into your account.
Look for the captured request and copy the request body as plain text.
Thatβs your AUTH_DATA! π
To update the image from Docker Hub and restart the container:
docker-compose pull
docker-compose up -d --force-recreate
WATCHED_FOLDER variable.Content type
Image
Digest
sha256:9faa67da1β¦
Size
100.6 MB
Last updated
over 1 year ago
docker pull ciuse99/gphotos-uploader