View Single Post
Old 11-07-2017, 10:26 PM   #12
sartrism
Member
sartrism is fluent in JavaScript as well as Klingon.sartrism is fluent in JavaScript as well as Klingon.sartrism is fluent in JavaScript as well as Klingon.sartrism is fluent in JavaScript as well as Klingon.sartrism is fluent in JavaScript as well as Klingon.sartrism is fluent in JavaScript as well as Klingon.sartrism is fluent in JavaScript as well as Klingon.sartrism is fluent in JavaScript as well as Klingon.sartrism is fluent in JavaScript as well as Klingon.sartrism is fluent in JavaScript as well as Klingon.sartrism is fluent in JavaScript as well as Klingon.
 
Posts: 12
Karma: 4708
Join Date: Aug 2017
Device: Kindle Voyage, Boyue T62+, Sony DPT-RP1
Quote:
Originally Posted by cb125 View Post
So I've been working with the python script, and am reporting on my initial progress.

First: it's wonderful to have the beginnings of a way to get stuff on and off the reader under Linux!

The code is available by visiting the github site mentioned above, https://github.com/janten/dpt-rp1-py

This is far from ready for non-programmers to use.

The README.md gives clear, simple instructions on how to extract a client id and a key from the device. These two pieces of information are needed to authenticate. The key needs to be placed in a file that the python code can find, and the client id needs to replace the client id that is currently embedded in the python code.

Getting the python code to run is not trivial. It depends on formatted strings, which are new to python 3.6. Don't try to get python 3.6 running on any Ubuntu earlier than 7.10 (artful), it's not worth the hassle! (It shouldn't be too difficult to get the code to run on python 3.5.)

In order to connect to the reader, I needed to put the reader's wifi ip address into my /etc/hosts file (e.g., I put this on a new line: 198.168.1.201 digitalpaper.local).

The user interface to the python program is to... edit the code. I got the reader to deliver a screenshot over wifi by adding the line "dp.get_screenshot()" under the authentication command in the "main" block, very exiting! Still unclear what commands to use in order to get files on or off the reader---I have not yet even figured out what the directory names are on the reader. But this seems solvable with some investigation and experimentation.

As the author comments, the Sony code that runs the digital app is clean and neat. Wouldn't it be nice to get that code running under Linux?

Many thanks to Jan-Gerd Tenberge for making his python hack available!
We have the full list of files/directories on the reader. I doubt if you have an access to other directories using this method though.
sartrism is offline   Reply With Quote