GjjvdBurg / paper2remarkable

Fetch an academic paper or web article and send it to the reMarkable tablet with a single command
MIT License
337 stars 27 forks source link

Upload via the USB Web API instead of using rmapi #142

Open wittmeis opened 1 year ago

wittmeis commented 1 year ago

Hi, very nice project!!!

I also use the RM2 a lot for reading and annotating scientific papers and since I do not want to use the subscription or the RM cloud I was so far uploading the PDFs to the RM using the USB web interface. However, that involves a lot of manual steps (downloading of the paper, resizing using ghostscript, etc.) that you automated already.

Hence, I was wondering whether you could consider to also support an upload of the paper using the USB web API protocol instead of rmapi. There is already a Python library for downloading files from the RM2 using the USB web API here and I already created another issue in the rmWebUiTools repo and asked whether the API could be extended to support the uploading of documents. If this would be added I could maybe contribute a PR that extends paper2remarkable and lets the user choose between rmapi and rmWebUiTools.

What do you think?

GjjvdBurg commented 1 year ago

Hi @wittmeis, thanks for opening this issue! I think that's a worthwhile addition to the project. I don't have too much time to commit to this package, but if you open a PR with the functionality (or even to discuss it while developing), I will certainly take a look!