A Python script to sync Zotero papers to the ReMarkable tablet.
Inspired by https://github.com/GjjvdBurg/arxiv2remarkable/ and https://github.com/michaelmior/zotero-remarkable. The main difference with the latter is the use of collections as subdirectories and using the locally-stored PDFs instead of requiring the files be synced via Zotero Sync or a WebDAV server.
Initial integration with the remarks
package for highlight extraction, available on the remarks
branch.
Simply download the repository and run python zotrm.py
.
go
(recommended).pip
or conda
.Place a config.ini
file into $USER/.zotrm/
.
LIBRARY_ID
: Can be found here,
as the user ID for API calls.API_KEY
: Can be obtained
here.STORAGE_DIR
: Directory that Zotero uses for storing PDFs.ATTACHMENT_DIR
: Directory used for linked attachment files.SEND_TAG
: Tag to monitor for PDFs to send. Removed from item if
successfully sent or if file already existed.REPLACE_TAG
: Optional, a tag to add to sent PDFs.RMAPI_PATH
: Path to rmapi executable.BASE_DIR
: If a file is in a collection (or subcollection), it will be
placed in a folder(s) of the same name in this directory.DEFAULT_DIR
: If a file has no collection, it will be placed in this
directory.