DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2007-10-13 14:01:23

ZilverZurfarn
Member
Registered: 2007-09-08
Posts: 18

cTorrent Dashboard

I've written a small PHP script to control ctorrent on my DSM-G600
It lets you upload .torrent files, start and stop torrents.
Requires a working lighttpd with PHP install, + nohup & ctorrent executables.
ctdb.php has some configuration variables at the top, you must edit to reflect your preferences, file locations and such.
I have some ideas for more features - and will eagerly listen to Your ideas.

Update: Already found a bug! The list of running torrents only shows last torrent.
New fixed version in the zip.

/Zilver

Last edited by ZilverZurfarn (2007-10-13 15:58:46)

Offline

 

#2 2007-10-14 18:34:17

ZilverZurfarn
Member
Registered: 2007-09-08
Posts: 18

Re: cTorrent Dashboard

A feature update.
Added the feature to download a .torrent file directly from the web. Just paste the web URL for the .torrent file to add it to your torrents directory.
Moved the config variables to a separate file (to make version updates simpler).

/Zilver

Offline

 

#3 2007-10-17 21:41:28

medlatek
Member
From: Clamart (France)
Registered: 2007-05-19
Posts: 21

Re: cTorrent Dashboard

I'm trying to use your script. And I have some troubles.
I join a screenshot:
http://i17.servimg.com/u/f17/10/08/28/89/wxwx10.jpg
I've no feedback from the started downloads.
Tank you.

Sorry for my english. ^^

Offline

 

#4 2007-10-17 22:24:52

ZilverZurfarn
Member
Registered: 2007-09-08
Posts: 18

Re: cTorrent Dashboard

I can't get the screenshot, but I maybe have to make it clear that there is no interactivity with started torrents. ctdb is just a simple way to start and stop torrents "remotely".
All you can see in the "Running torrents" is basically just a list of what's running at the moment - nothing about their state.

However, I am working on a standalone Windows version of ctcs, where you can follow the status of all running torrents, and maybe in some distant future even control the running torrents.

/Zilver

Offline

 

#5 2007-10-17 22:49:44

medlatek
Member
From: Clamart (France)
Registered: 2007-05-19
Posts: 21

Re: cTorrent Dashboard

ok, ty.
How to know if a download is done?

Last edited by medlatek (2007-10-17 22:49:54)

Offline

 

#6 2007-10-17 22:58:02

ZilverZurfarn
Member
Registered: 2007-09-08
Posts: 18

Re: cTorrent Dashboard

Refresh the page, and see if it's gone from the "Running Torrents" list.
...or telnet into the DSM-G600, and type ps (basically what the ctdb does to produce the Running Torrents list) to see if there are any ctorrent processes running.
Unfortunately, the ps list lines are truncated at 80 characters, so there is no way (afaics) to find out what torrent file is handled by the torrent processes.

/Zilver

Offline

 

#7 2007-10-18 01:49:17

medlatek
Member
From: Clamart (France)
Registered: 2007-05-19
Posts: 21

Re: cTorrent Dashboard

ok ty

Offline

 

#8 2007-10-18 09:41:08

ZilverZurfarn
Member
Registered: 2007-09-08
Posts: 18

Re: cTorrent Dashboard

Ah - Now I can see the screen shot. It looks as expected to me. I was initially hoping to at least show what torrent file each ctorrent instance was downloading, but as, like I said, the ps list is truncated, I can't find it. None of the usual ps switches seems to work to produce more than 80 characters.

/Zilver

Last edited by ZilverZurfarn (2007-10-18 09:45:18)

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB