This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Feature: Automation ( timer )

Tags: None
(comma "," separated)
revenant
Registered Member
Posts
12
Karma
0

Feature: Automation ( timer )

Wed Feb 15, 2006 4:01 am
First, I would like to thank you all for your great efforts. Currently, I am using Ktorrent as my main torrent client and since I am living in students dorm, I have a limited bandwidth during the day time. However, the bandwidth is free of charge during specific hours (e.g 2-5 am). So I thought it would be a nice feature to have in the next release version a timer. The timer will provide the user flexibility to choose a specific period of time to download the torrent files.

I hope it will be useful for the others as well.

Thanks
lazx
Registered Member
Posts
5
Karma
0

Wed Feb 15, 2006 5:36 am
Bandwidth throttling and metering based on a time schedule would be a good addition IMO.
George
Moderator
Posts
5421
Karma
1

Wed Feb 15, 2006 5:33 pm
It is not the first time somebody has asked for this and we are planning to add it. But I'm currently busy on other things (DHT and after that protocol encryption), Ivan is working on splitting the up and download in to separate tabs.

So we will see after that.
Knut
Registered Member
Posts
79
Karma
0

Thu Feb 16, 2006 11:02 pm
But it's not like you can't have it today:-) I'd guess it will require a little amount of work.

As an example, take a look at this link:
http://bram85.blogspot.com/2006/02/ktorrent.html

Not only the accounts of another happy user:-) But it includes this little gem in the text: "Setting the upload rate limit with DCOP (probably my favourite feature)." I had the suspicion that it was possible in KTorrent, but had not tried it myself:-)

And the homework is to create the timer yourself, with the use of DCOP and cron/at or similar. And you may earn extra points over at apps-kde.org if you make a simple GUI for it, using KDialog or Kommander:-)

Have fun
George
Moderator
Posts
5421
Karma
1

Fri Feb 17, 2006 11:30 am
You know DCOP is such a nice thing, maybe we should expand the interface some more. We haven't done anything to it in the past 6 months.
Knut
Registered Member
Posts
79
Karma
0

Fri Feb 17, 2006 5:34 pm
DCOP is indeed nice, but it always seem underutilized. I think it's because people forget it exist or don't know the power of it. Never done anything with it myself either:-) Perhasps some documentation or examples of the usage of KTorrent with DCOP had been a nice idea.

Anyway I just fired up Kdcop to take a look at the possibilities with KTorrent, I think at least one function is missing. I fond these:
void startAll()
void stopAll()
void setMaxDownloads(int max)
void setMaxSeeds(int max)
void setKeepSeeding(bool ks)
void setMaxUploadSpeed(int kbytes_per_sec)
void setMaxConnectionsPerDownload(int max)
void setShowSysTrayIcon(bool yes)
bool changeDataDir(QString new_dir)
void openTorrent(QString file)

Shouldn't there be a setMaxDownloadSpeed in there too?

As for expanding, I don't know what could be usefull. Perhaps ability to get the list of torrents, with some info about individual torrents status. And a way to start/stop single torrents. That would give possibilities to script things like: stop torrent when finished downloaded and sharing > 2 etc.
George
Moderator
Posts
5421
Karma
1

Fri Feb 17, 2006 6:48 pm
Knut wrote:DCOP is indeed nice, but it always seem underutilized. I think it's because people forget it exist or don't know the power of it. Never done anything with it myself either:-) Perhasps some documentation or examples of the usage of KTorrent with DCOP had been a nice idea.

Anyway I just fired up Kdcop to take a look at the possibilities with KTorrent, I think at least one function is missing. I fond these:
void startAll()
void stopAll()
void setMaxDownloads(int max)
void setMaxSeeds(int max)
void setKeepSeeding(bool ks)
void setMaxUploadSpeed(int kbytes_per_sec)
void setMaxConnectionsPerDownload(int max)
void setShowSysTrayIcon(bool yes)
bool changeDataDir(QString new_dir)
void openTorrent(QString file)

Shouldn't there be a setMaxDownloadSpeed in there too?


The last time I added something to dcop, we didn't have that feature.

We will see after I finish DHT.
Knut
Registered Member
Posts
79
Karma
0

Fri Feb 17, 2006 8:51 pm
George wrote:The last time I added something to dcop, we didn't have that feature.


:wink: Kind of meant like a hint....

Anyway, looking at the code it was really simple. Just added it myself, patch in your mailbox.
George
Moderator
Posts
5421
Karma
1

Sat Feb 18, 2006 10:22 am
I will check it out when my current download finishes (I need to figure out a way to have 2 separate instance of KT running, without them messing with each others data ...)
Knut
Registered Member
Posts
79
Karma
0

Sat Feb 18, 2006 12:29 pm
Use the brute force approach, run the other KTorrent instance as as another user. :D
George
Moderator
Posts
5421
Karma
1

Sat Feb 18, 2006 3:42 pm
Indeed, will work but installing stuff can cause problems in this case, unless you use a different prefix to install. But that has some other problems.

Btw, I committed the patch in case you haven't received the mail from the commit.


Bookmarks



Who is online

Registered users: abc72656, Bing [Bot], daret, Google [Bot], lockheed, Sogou [Bot], Yahoo [Bot]