compact / mobile friendly version of rtgui - looking for help

4 views
Skip to first unread message

floe

unread,
Jan 2, 2010, 10:07:04 AM1/2/10
to rtGui
Hi there,

first of all: I love rtgui. Great way to control rtorrent over network
and internet. Thanks for this program!

one problem though: I'd like to control rtorrent from my mobile phone
(local network and mobile internet). I use a htc diamond with windows
mobile and a 2,8" touchscreen. rtgui is hard to use on that device
because of the popups, relatively wide layout und small buttons for
interaction (problematic if you're trying to click with your finger).
That's why I started to write a program that would be usable on small
screen, even when using your finger and another goal was to minimize
data transfer between server and client (Don't have a flatrate for
mobile internet). I used Simons code for interaction with rtorrent,
especially functions.php.

Right now it works for me and I use it on mentioned mobile phone, but
there are still bugs I can't fix and I'm pretty sure there are lots of
things that can be added and, for I am a rather chaotic programmer,
there are lots of things that can be optimized.
Why I ask for help: For my personal use I consider this program
finished, which means I will try and improve it only when I have too
much free time on my hands, which probably won't happen too often in
the near future. The idea itself could be of use to some people,
especially regarding how many people use pda-like mobiles. But to make
it work for different phones/browsers (naturally comes with problems)
there's still work to be done which I, as mentioned, probably won't
find time for.

So if any of you know your way around javascript and php and are
interested in making a really usable program / project out of this
idea let me know and I will send you the source code along with some
instructions. If you just wanna give it a try I can send you the files
too, but as mentioned: there are bugs and it is definitely no
substitute for rtgui due to lack of functionality (i.e. add torrent).
Note: Tested only on Firefox 3.5.5 (Ubuntu 9.10) and on Windows Mobile
6.1 with Opera Mobile (NOT opera mini) Versions 9.5 and 10 beta
(wouldn't even load on Mobile Internet Explorer, but I never use it
anyway)

What it does right now:
- You can see all your torrents and control them (start,stop,delete -
single or multiple torrents) in a html table + total up-/down rates
(information + control)
- For each torrent you have: Name,Progress(percentage),Status,Total
down-/uploaded + total size,ratio,current down- and upload rate
- it can autoupdate data in specified interval and only for specified
torrents(no need to update an inactive torrent)
- For each torrent you can get detailed information on trackers, peers
and files (a new table row is inserted below the torrent and filled
with this information). You can also modify file priorities.

How it works (short version):
The Program consists of two javascript-files (main-program and
retrieve-torrent-details) and a php file (uses functions.php to
interact with rtorrent and processes data).
Browser loads an index.html which is empty except for body.onload
function which retrieves an initial package of data via xmlhttp
request from the php file. The php file returns plain text seperated
by special characters. This text can be split into arrays by
javascript. From there on javascript code processes the received data
and outputs it by adding only basic html elements like
table,div,checkbox and links to the document
(document.createElement...). Interaction with rtorrent is always a
xmlhttp request which opens the php file with parameters and gets
plaintext as response.
That way initially your browser will load only about 35KB of
Javascript code and about 800 Bytes of data for each torrent that is
displayed.

In conclusion:
Single Page (no popups), only textlinks for interaction, no images or
anything like it -> only plain text, standard html-colors and html-
elements, page construction and interaction completely based on
javascript

So if anyone is interested in helping: let me know.

Best regards
floe000

P.S. I apologize for strange sentences and such. English is not my
native language. Hope you got what I was trying to say anyway.

Reply all
Reply to author
Forward
0 new messages