Helper scripts to repackage iCloud Photos Downloader Python library as a Synology DSM package for easy installation throught Package Station
.
Ready made package is available:
icloudpd-1.17.3 icloud_photo_station-0.4.1.spk
Or follow instructions below how to package SPK yourself from code with the latest available icloudpd library
# Clone the repo somewhere
git clone https://github.com/skarppi/icloud_photo_station.git
cd icloud_photo_station
# Create a SPK installation package containing virtualenv, python scripts and all necessary dependencies.
cd spk
sh build.sh
Manually install the spk in your DSM Package Station
. After installation is complete you can set up User-defined script
into Task Scheduler
and set up scheduling. Notification emails for script output are handy to get notified when two-factor authentication has expired.
# temporary fix for permissions denied errors
# https://github.com/icloud-photos-downloader/icloud_photos_downloader/issues/764
sudo mount /tmp -o remount,exec
source /volume1/@appstore/icloud_photo_station/env/bin/activate
icloudpd \
--username '<YOUR ICLOUD USERNAME>' \
--password '<YOUR ICLOUD PASSWORD>' \
--auto-delete \
--until-found 10 \
--directory ./output/
If your iCloud account has two-factor authentication enabled, SSH to Synology box and run the script manually first time in order to input the verification code. This step needs to be repeated every once in a while when the authentication expires.
For more documentation, issues, or bugs go to https://github.com/icloud-photos-downloader/icloud_photos_downloader