Sync a Nextcloud / Ownclowd / Dropbox / Google Drive folder with reMarkable automagically [2]
Needed:
For rmapy ( https://github.com/juruen/rmapi ) i think better for pdf preview in reMarkable
- golang installed ( apt install golang )
For reMarkable API ( Splitbrain )
- php7 minimum
- composer [1]
- API used by the reMarkable Paper Tablet for syncing documents between the device, the desktop and mobile clients and the cloud service https://github.com/splitbrain/ReMarkableAPI
(select rmapy or reMakable in reMarkableSync.sh, comment ad uncomment)
- rclone ( apt install rclone )
- nextcloud (or other service compatible with rclone)
Create a nextcloud / ownlcloud / dropbox / gdrive directory for import (/invia_a_marco in the example) and one for export (/scartati_da_marco in the example) Create a cron in /etc/cron.d: "* * * * * user /home/user/remarkable/reMarkableSync.sh" (here, every minute)
You'll have in /home/user/remarkable those files and dir /Sincronizza (host rclone files) /src and /vendor (from ReMarkableAPI or rmapy) auth.token (token from remarkable, generated by one-time-password, if you use ReMarkableAPI) remarkable.php (if ypou use ReMarkableAPI) reMarkableSync.sh (chown +x)
Every pdf file saved into /invia_a_marco will be synced with reMarkable, also the pdf in zip archives. Other files will be moved to /scartati_da_marco.
in the future:
- doc to pdf
- mobi to pdf
- xls to pdf
[1] composer follow this one https://www.digitalocean.com/community/tutorials/how-to-install-and-use-composer-on-debian-9
sudo apt update
sudo apt install curl php-cli php-mbstring git unzip
curl -sS https://getcomposer.org/installer -o composer-setup.php
sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer
Works with:
1Fichier
Alibaba Cloud (Aliyun) Object Storage System (OSS)
Amazon Drive (See note)
Amazon S3
Backblaze B2
Box
Ceph
Citrix ShareFile
C14
DigitalOcean Spaces
Dreamhost
Dropbox
FTP
Google Cloud Storage
Google Drive
Google Photos
HTTP
Hubic
Jottacloud
IBM COS S3
Koofr
Mail.ru Cloud
Memset Memstore
Mega
Memory
Microsoft Azure Blob Storage
Microsoft OneDrive
Minio
Nextcloud
OVH
OpenDrive
Openstack Swift
Oracle Cloud Storage
ownCloud
pCloud
premiumize.me
put.io
QingStor
Rackspace Cloud Files
rsync.net
Scaleway
SFTP
StackPath
SugarSync
Wasabi
WebDAV
Yandex Disk
The local filesystem