HappyZ / dpt-tools

dpt systems study and enhancement
MIT License
565 stars 130 forks source link

Locally Loading PDF into Digital Paper PDF Reader #135

Closed wart-github closed 2 years ago

wart-github commented 5 years ago

Hi,

First things first, excellent work!

Has anyone figured out how to load a pdf into the digital paper pdf reader locally? For instance, if I download a pdf on the DPT RP1 itself in Fennic Firefox or in a Mail App on the DPT RP1, how can I "share" it over to the PDF reader on the DPT RP1? I did some digging and the file structure is pretty opaque. (One option I thought of was installing dpt-rpt-py on the DPT RPT itself, but I thought I'd ask if anyone has implemented something first.)

Thanks for any tips

HappyZ commented 5 years ago

One way is you write an Android app/plugin on some PDF app for DPT that supports to download/upload files based on DPT app's API.. it's the most intuitive workaround I can think of

aluex commented 4 years ago

Maybe the official android app will work?

JoeKays commented 4 years ago

The official android app does not work because it requires Android version >6 and the DPT has only 5. Also it doesn't seem possible to use dpt-rp1-py with qpython because the crypto packages do not install on the DPT.

So that means that there is only one solution: rewriting dpt-rp1-py in javascript and using it from the browser (or package it into an apk with WebView). I am currently working on this port. So far I am able to authenticate and list documents from my computer. Next step is uploading pdfs and somehow hosting the page on the DPT so I can access the page from the browser there.

JoeKays commented 4 years ago

Update: I succeeded in uploading and downloading pdfs from my chrome browser! Only thing that is left for now is to try hosting the site on the DPT. Because so far I accessed the page from the DPT but I hosted it on my computer. But I guess that's not gonna be the biggest problem and soon we will be able to locally load pdfs to the device! :D

HappyZ commented 4 years ago

Pretty coooool

On Wed, May 20, 2020, 3:43 PM Sir Pilcrow notifications@github.com wrote:

Update: I succeeded in uploading and downloading pdfs from my chrome browser! Only thing that is left for now is to try hosting the site on the DPT. Because so far I accessed the page from the DPT but I hosted it on my computer. But I guess that's not gonna be the biggest problem and soon we will be able to locally load pdfs to the device! :D

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/HappyZ/dpt-tools/issues/135#issuecomment-631767587, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABDVEKRQ5EQLDVMFRNRWKS3RSRMJVANCNFSM4IVS55ZQ .

JoeKays commented 4 years ago

Update: check out the initial release on https://github.com/JoeKays/dpts

Hope it works :)

JoeKays commented 4 years ago

Update: There is an update available, check it out! :D

This update removes most of the limitations and makes the tool quite usable I would say. You can upload and download documents, create folders and delete them. All from the DPT and also from your computer if you like. You only need a browser and some patience for the setup.

Only real problem is that USB only works on Linux. You have to use WiFi on Windows and Mac. I would love it if someone could help me with making it work on these platforms. I don't have any such device available at the moment...