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

Go Back   MobileRead Forums > E-Book Readers > More E-Book Readers > iRex

Notices

Reply
 
Thread Tools Search this Thread
Old 07-06-2008, 03:01 PM   #1
-Thomas-
Addict
-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.
 
-Thomas-'s Avatar
 
Posts: 325
Karma: 1725
Join Date: Dec 2007
Location: Münster, Germany
Device: iRex iLiad v2
Arrow Automatic Downloaders Framework

Hi folks,

I've created a framework for automatic content downloaders like the Guardian24 or the comic strip downloader. It allows users to control which content they want to retrieve automatically while connecting to the iDS (yes, that's correct - no connection scripts etc., just hit the button at the upper left ). Downloaders are handled as plug-ins and can be developed easily.

Attached are two packages: The autodl-v0.2.zip contains an installer for the framework itself, including a dummy plugin. The guardian.zip is a converted Guardian24 downloader to show you how a simple plugin might look like.

Here's how to install the framework:
  1. Unzip the autodl-v0.2.zip to your internal memory, CF card or SD card - it doesn't matter
  2. Install the framework by selecting the newly created item. After the installation you have a new item in the "documents" folder on the internal memory: "Automatic Downloaders". It contains the control scripts for the plugins
  3. To install the Guardian24 downloader, unzip the guardian.zip to /mnt/free/download/.
  4. Connect to the iDS by hitting the iDS hardware button; the iDS software says "No new files" (or something similar) - this is intended behaviour and can be ignored.
  5. Afterwards you have the newest Guardian24 issue in your news directory.

Available plugins:
Here's how to develop your own plug-in:
  1. Copy the /mnt/free/download/dummy/ directory to your PC
  2. Modify the manifest.xml and edit the name of your downloader
  3. Modify the scripts/main.sh, this is the script that will be executed when connecting
  4. Rename the "dummy" directory to something else...
  5. Copy the directory back to /mnt/free/download/... that's it!
It's really awesome to have content downloaded with just one click, so hopefully there will be many plug-ins available in the future

EDIT: v0.2: fixed a bug during installation which prevented the script from working
Attached Files
File Type: zip guardian.zip (54.8 KB, 735 views)
File Type: zip autodl-v0.2.zip (61.4 KB, 735 views)

Last edited by -Thomas-; 01-11-2009 at 09:32 AM. Reason: Added an overview of available plugins
-Thomas- is offline   Reply With Quote
Old 07-06-2008, 03:45 PM   #2
Adam B.
Addicted to Porting
Adam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the rough
 
Adam B.'s Avatar
 
Posts: 1,697
Karma: 7194
Join Date: Oct 2006
Location: Indianapolis, IN
Device: iRex iLiad, Nokia 770, Samsung i760
This is a really good idea. Great Job!
Adam B. is offline   Reply With Quote
Advert
Old 07-06-2008, 10:24 PM   #3
fargo
Virtual Books Reader :)
fargo began at the beginning.
 
Posts: 26
Karma: 37
Join Date: Sep 2007
Device: iLiad, Kindle DX, iPhone
WoW! This is excellent
fargo is offline   Reply With Quote
Old 07-07-2008, 10:09 AM   #4
-Thomas-
Addict
-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.
 
-Thomas-'s Avatar
 
Posts: 325
Karma: 1725
Join Date: Dec 2007
Location: Münster, Germany
Device: iRex iLiad v2
Here are two more downloaders: Adam's Daily Comic Strip and sinman's 20minutos.es. Simply extract them to /mnt/free/download/.

Edit: There's an update on the 20minutos script from Gregory, check out his post for details.
Attached Files
File Type: zip comics.zip (161.2 KB, 675 views)
File Type: zip 20minutos.zip (49.1 KB, 609 views)

Last edited by -Thomas-; 09-19-2008 at 09:07 AM.
-Thomas- is offline   Reply With Quote
Old 07-07-2008, 10:33 AM   #5
Hadrien
Feedbooks.com Co-Founder
Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.
 
Hadrien's Avatar
 
Posts: 2,263
Karma: 145123
Join Date: Nov 2006
Location: Paris, France
Device: Sony PRS-t-1/350/300/500/505/600/700, Nexus S, iPad
Without any parsing you could also directly link to feeds or newspaper on Feedbooks. For example: http://www.feedbooks.com/feed/743.mobi will download the RSS feeds for Mobileread in Mobipocket.
Hadrien is offline   Reply With Quote
Advert
Old 07-08-2008, 02:50 PM   #6
-Thomas-
Addict
-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.
 
-Thomas-'s Avatar
 
Posts: 325
Karma: 1725
Join Date: Dec 2007
Location: Münster, Germany
Device: iRex iLiad v2
I've just completed a very cool script...

The attached plugin allows you to download newly purchased books from Fictionwise.com directly to your device. Simply unzip it into /mnt/free/download/ and add your username/password to the scripts/config.sh file. Works like a charm

A plugin for Feedbooks.com RSS subscriptions is coming in the near future...
Attached Files
File Type: zip fictionwise-v0.1.zip (124.1 KB, 630 views)
-Thomas- is offline   Reply With Quote
Old 07-08-2008, 05:42 PM   #7
bennoblumenthal
Junior Member
bennoblumenthal began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Oct 2007
Device: iLiad
Note that this comics script currently goes to /mnt/cf/books and the Guardian24 script goes to /mnt/cf/newspapers -- reasonable choices but had me searching a bit.
bennoblumenthal is offline   Reply With Quote
Old 07-08-2008, 06:34 PM   #8
-Thomas-
Addict
-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.
 
-Thomas-'s Avatar
 
Posts: 325
Karma: 1725
Join Date: Dec 2007
Location: Münster, Germany
Device: iRex iLiad v2
Sorry, I forgot to point that out, this can be changed in the scripts/main.sh files. I've found a nice way to automate things: For the attached tagesschau.de plugin I used Mathijs' regutil to determine the correct storage type for news...

Please, could someone stop me? I have to write a seminar paper until next tuesday, but this project prevents me from doing so
Attached Files
File Type: zip tagesschau.zip (171.8 KB, 695 views)
-Thomas- is offline   Reply With Quote
Old 07-09-2008, 06:07 AM   #9
lochutus
Junior Member
lochutus has a complete set of Star Wars action figures.lochutus has a complete set of Star Wars action figures.lochutus has a complete set of Star Wars action figures.lochutus has a complete set of Star Wars action figures.lochutus has a complete set of Star Wars action figures.
 
Posts: 5
Karma: 444
Join Date: Jun 2008
Location: Australia
Device: iRex iLiad, iRex DR1000S
sorry, I'm not going to be the one who stops you
lochutus is offline   Reply With Quote
Old 07-09-2008, 09:16 PM   #10
bennoblumenthal
Junior Member
bennoblumenthal began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Oct 2007
Device: iLiad
still having a problem

Sorry, but I am still having a problem. The downloading scripts work run manually, but not by pressing the IDS button.

I looked at my /usr/bin/pre_download.sh and it was still only the original

I added

run-parts /mnt/free/download

as my best guess at what is supposed to be there, but it did not help.
I don't have run-parts in /usr/bin, one possible problem.

Any hints?

Benno
bennoblumenthal is offline   Reply With Quote
Old 07-10-2008, 08:09 AM   #11
-Thomas-
Addict
-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.
 
-Thomas-'s Avatar
 
Posts: 325
Karma: 1725
Join Date: Dec 2007
Location: Münster, Germany
Device: iRex iLiad v2
Mmh, looks like the patch during installation didn't work... Which Firmware version are you running? Could you post your /usr/bin/pre_download.sh?

To get things working you have to add "run-parts /etc/download" to your /usr/bin/pre_download.sh, as the main script is /etc/download/framework.
-Thomas- is offline   Reply With Quote
Old 07-10-2008, 05:34 PM   #12
bennoblumenthal
Junior Member
bennoblumenthal began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Oct 2007
Device: iLiad
Yes, that change to pre_download.sh makes it work perfectly.

I am running version 2.12, original iLiad. I don't think iRex would be thrilled about me posting their code here. However, there is a comment line in it

Code:
# No implementation yet
after which is where new code is supposed to go -- perhaps they changed it slightly in v2?
bennoblumenthal is offline   Reply With Quote
Old 07-11-2008, 08:17 AM   #13
-Thomas-
Addict
-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.
 
-Thomas-'s Avatar
 
Posts: 325
Karma: 1725
Join Date: Dec 2007
Location: Münster, Germany
Device: iRex iLiad v2
Nice to hear that it works now, although I would like to know why the installation didn't work... I've got 2.12 running on a v2 machine too. Maybe you could PM me your pre_download.sh?
-Thomas- is offline   Reply With Quote
Old 07-11-2008, 12:24 PM   #14
andyleus
Junior Member
andyleus began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jul 2008
Location: Wien (Vienna, Austria)
Device: iRex iLiad v1
Smile

Dear Thomas,

since my pre_download.sh remained as well unchanged after installation I took the liberty to PM it as well for your information.

Meanwhile best greetings to you and all iLiad warriors.
andyleus is offline   Reply With Quote
Old 07-11-2008, 01:47 PM   #15
-Thomas-
Addict
-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.
 
-Thomas-'s Avatar
 
Posts: 325
Karma: 1725
Join Date: Dec 2007
Location: Münster, Germany
Device: iRex iLiad v2
D'oh , /usr/bin/patch is only included in Adam B.'s new busybox and not on a "virgin" Iliad... Shame on me, and thanks to your bug report. I will think of an alternative and update the installation package soon.

Last edited by -Thomas-; 07-11-2008 at 02:23 PM. Reason: I've found a smiley to express my feelings...
-Thomas- is offline   Reply With Quote
Reply

Tags
autodl, automatic, content, downloader, framework

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bible Framework ProDigit Workshop 46 12-18-2015 04:39 AM
Hacks unbricking a Kindle (framework won't start) marchello2000 Amazon Kindle 7 04-19-2012 11:11 AM
[HELP! Kindle DX] request Framework.mario.conf. hata1234 Kindle Developer's Corner 5 08-18-2009 10:53 AM
Framework for integrating applications mkaluza Sony Reader Dev Corner 4 09-16-2008 02:50 AM
iLiad "Automatic Downloaders" framework -Thomas- iRex Developer's Corner 2 07-06-2008 03:04 PM


All times are GMT -4. The time now is 07:30 AM.


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