View Single Post
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, 738 views)
File Type: zip autodl-v0.2.zip (61.4 KB, 736 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