Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > PocketBook

Notices

Reply
 
Thread Tools Search this Thread
Old 01-15-2012, 07:45 PM   #1
rkomar
Wizard
rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.
 
Posts: 2,728
Karma: 10600090
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840
New program for getting web-based files on E-Ink readers

I wrote a program for downloading files from the web directly to the PocketBook E-Ink devices. Get a copy from http://www3.telus.net/rkomar/pbdownload/ and install it as /mnt/ext1/applications/pbdownload.app. You can start it from the Applications tab and then enter the URL and output file name via dialogs, or you can put it into a script and pass in the arguments directly. Cookies are currently not supported.
rkomar is offline   Reply With Quote
Old 01-16-2012, 05:32 PM   #2
paola
Wizard
paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.
 
paola's Avatar
 
Posts: 2,824
Karma: 5843878
Join Date: Oct 2010
Location: UK
Device: Pocketbook Pro 903, (beloved Pocketbook 360 RIP), Kobo Mini, Kobo Aura
great app Rob, thank you!
paola is offline   Reply With Quote
Advert
Old 01-19-2012, 04:45 PM   #3
abijah
Enthusiast
abijah plays well with othersabijah plays well with othersabijah plays well with othersabijah plays well with othersabijah plays well with othersabijah plays well with othersabijah plays well with othersabijah plays well with othersabijah plays well with othersabijah plays well with othersabijah plays well with others
 
Posts: 28
Karma: 2692
Join Date: Jul 2011
Device: kobo aura h2o
The app is so great. I use this nice app to download files from my ftp server.

But it is pretty difficult to type all these urls and files locations with pro 902 and I would rather typing them from a computer and then upload these information to the device.

Therefore, I am currently using your app in the following way:
1). [a file to be uploaded and a "pbdownload.cfg" that contains the url and location of the file] placed in a ftp server.
2).two pbdownload app, one of which (call it download_pre) modified to accept a fixed cfg file that contains the url of the "pbdownload.cfg".
3). use the download_pre to download "pbdownload.cfg" and then use the other download app to get the file.


In short, one app with fixed cfg is used to get another cfg that contains the information of the file I want to download. Then I will use the other app and the received cfg to download the file.

This simple idea really saved me some time.
I believe this can be done further. How about merging the two app together and delete those pop-ups so that one click on the app will allow us to download the file?

unfortunately, I am not familiar with linux while the pro sdk is only in linux. I wish rkomar, who is so professional, could do me a favor.
abijah is offline   Reply With Quote
Old 01-19-2012, 05:04 PM   #4
rkomar
Wizard
rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.
 
Posts: 2,728
Karma: 10600090
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840
Believe me, I know how hard it is to type the URLs on the 902! That's why I wrote the code to save the last URL and output file name in the config file. Every bit less typing helps. This is an interesting idea. The simplest way to do this is probably to write a shell script to download the URL source file first from a fixed location, then read that file and run pbdownload.app for each pair of URL/output file inside it. It should be pretty easy to do, but I won't have time to work on it until the weekend. Does that sound like it would do what you want, or do you want to be able to input the name of the URL source file every time?
rkomar is offline   Reply With Quote
Old 01-19-2012, 06:24 PM   #5
abijah
Enthusiast
abijah plays well with othersabijah plays well with othersabijah plays well with othersabijah plays well with othersabijah plays well with othersabijah plays well with othersabijah plays well with othersabijah plays well with othersabijah plays well with othersabijah plays well with othersabijah plays well with others
 
Posts: 28
Karma: 2692
Join Date: Jul 2011
Device: kobo aura h2o
Quote:
The simplest way to do this is probably to write a shell script to download the URL source file first from a fixed location, then read that file and run pbdownload.app for each pair of URL/output file inside it.
Yeah, you are right. A shell script should be enough.

But, but I don't even know how to write a script and run on the device. I tried an app:
"pbdown.app":
#!/bin/sh

/mnt/ext1/applications/pbdownload.app \
-u "ftp://192.168.0.5/1.txt"
-f "/mnt/ext1/1.txt"

And just as I expected it --failed.

Oh, how much I need your enlightenment on writting script.
abijah is offline   Reply With Quote
Advert
Old 01-19-2012, 06:45 PM   #6
rkomar
Wizard
rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.
 
Posts: 2,728
Karma: 10600090
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840
You were close: you just needed the '\' character at the end of the line that starts with '-u' (so that the script knows to include the following line as part of the same command).

Anyway, I came up with a script that works pretty well for me. I've attached it as pbdl.app.bin because MobileRead won't allow .app uploads. Just rename to pbdl.app (or something-else.app), edit the line that starts with "SRC_URL=..." to point to your source URL file, and copy the script to /mnt/ext1/applications/.
Attached Files
File Type: bin pbdl.app.bin (446 Bytes, 165 views)
rkomar is offline   Reply With Quote
Old 01-19-2012, 08:01 PM   #7
abijah
Enthusiast
abijah plays well with othersabijah plays well with othersabijah plays well with othersabijah plays well with othersabijah plays well with othersabijah plays well with othersabijah plays well with othersabijah plays well with othersabijah plays well with othersabijah plays well with othersabijah plays well with others
 
Posts: 28
Karma: 2692
Join Date: Jul 2011
Device: kobo aura h2o
Quote:
Originally Posted by rkomar View Post
Anyway, I came up with a script that works pretty well for me. I've attached it as pbdl.app.bin because MobileRead won't allow .app uploads. Just rename to pbdl.app (or something-else.app), edit the line that starts with "SRC_URL=..." to point to your source URL file, and copy the script to /mnt/ext1/applications/.
This script is perfect. It does everything in a single click even if you have more than one file to download.


abijah is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kindle Fire Web Browser will likely allow for web based games. sirmaru Kindle Fire 10 11-15-2011 02:55 PM
Proof of Concept: TeX-based ebook program in iPad frabjous General Discussions 2 07-09-2010 08:46 AM
And we Thought E-ink Based Readers were $$$... brecklundin News 4 03-20-2008 12:38 PM
What e-Ink based readers are actually available as of right now? coleman Which one should I buy? 6 07-13-2007 08:32 PM


All times are GMT -4. The time now is 04:23 AM.


MobileRead.com is a privately owned, operated and funded community.