|
Post by omega on Feb 6, 2007 4:54:49 GMT 7
Hi everybody, user Cere wrote in the Thecus Wiki wishlist that he wants to see N5200 supporting the Python programming language. So here it is (no, it was not so much work). I've compiled the current version 2.5 and created a module for it. Please check out the Thecus Wiki for more information and for the download link (here: onbeat.dk/thecus/index.php/N5200_Module:_PYTHON). I've done only a quick test as I'm not a experienced Python user. Enjoy it, Andreas
|
|
|
Post by N2100Owner on Feb 6, 2007 15:53:16 GMT 7
So, will someone create a BT module?
|
|
cere
New Member
Posts: 1
|
Post by cere on Feb 6, 2007 20:32:29 GMT 7
cool, i'm gonna check it out.
thnx
|
|
|
Post by omega on Feb 7, 2007 5:59:09 GMT 7
So, will someone create a BT module? Sorry for asking: what is a BT module? BitTorrent? And if yes, what should it do? Are there any implementations you think of which are worth looking at? Andreas
|
|
|
Post by loloke on Mar 1, 2007 9:39:27 GMT 7
Please, if you can, make a new version of python with curses module enabled. If you do this, i make a bittorrent (bittornado) module for n5200. (I'm not experienced python user, sorry)
Thanks a lot.
|
|
|
Post by omega on Mar 1, 2007 9:49:32 GMT 7
Hi loloke, welcome to the forum I'm on a business trip at the moment for another week or so. I'll try to check this out when I'm back but at the moment I cannot tell you when this will be, sorry..... But one question: why do you need curses? You shouldn't assume that the users of the BT client will logon to the N5200 in order to use the client. The interface should be done in HTML and accessable with a web browser. In this case I needn't create a new Phyton module... Andreas
|
|
|
Post by loloke on Mar 1, 2007 9:55:06 GMT 7
You must see btlaunchmanycurses.py... It runs on a terminal (probably a screen , and watch a directory, if you put in a .torrent, the download starts, when you delete the .torrent, the download stops. I think, this is the best client in a embedded device. But this client need python module curses... ps: I'm working on a screen module yet...
|
|
|
Post by omega on Mar 1, 2007 10:25:24 GMT 7
I've just checked out btlaunchmanycurses.py..... So throw away the whole curses stuff and create just a deamon which doen't do any output. It just watches a directory for torrent files and then starts the download to a predefined place. Then you only need to create a web page which provides the functionality to add or remove torrent files from the watched directory and maybe shows the status of the downloads. You don't need the whole curses or screen stuff..... Thecus was already writing such a beast, but it doen't work out of the box for the N5200 and needs some tweaking though. I was just too lazy to adjust that code.... Andreas
|
|
|
Post by loloke on Mar 1, 2007 10:57:27 GMT 7
Good idea... I found btlaunchmany, that not uses curses, just print some data to stdout (or a log file)... This is great... And sorry for my very bad english...
|
|
|
Post by omega on Mar 1, 2007 11:08:05 GMT 7
Happy you got the idea.... btlaunchmany seems to be the thing I was talking about and the right way to go.... The main work will be the web page for that module. I'm curious what you'll create.... Andreas
|
|
|
Post by loloke on Mar 1, 2007 11:52:32 GMT 7
have you any idea, when i start a script, and the output forwarded to file, like:
./script > logfile.log
the logfile.log is touched, but it's empty. when the script exits, then all of output written to logfile, but not in runtime...
|
|
|
Post by quick on Mar 2, 2007 2:53:02 GMT 7
I think this is some sort of buffering of file-io done by python-interpreter.
It can be disabled.
-u => Unbuffered mode
python -u <script>
|
|
|
Post by qicric on Mar 14, 2007 16:23:11 GMT 7
Hows the BitTorrent module (With web) doing... I'm really wanting this (Almost enough to offer some $$$ ) for someone to make the web front end... (With nice bandwidth control etc) Keep us posted! ;D QR
|
|
jake
New Member
Posts: 10
|
Post by jake on Mar 14, 2007 16:50:42 GMT 7
Hows the BitTorrent module (With web) doing... I'm really wanting this (Almost enough to offer some $$$ ) for someone to make the web front end... (With nice bandwidth control etc) Keep us posted! ;D QR maybe www.torrentflux.com/ would be possible. But bt is grabbing loads of ressources. I don't know how well this will perform with 256mb.
|
|
|
Post by kniteowl on Mar 14, 2007 22:41:05 GMT 7
www.torrentflux.com/ looks great, but the back end uses too much resources for use in an appliance. I am however looking at replacing the backend. If I get it working, I will share. I have also looked at just recompiling the BT module that THECUS uses for their other NAS, but I have been unable to find the source for one of the piece. It is not pretty, but would be an easy start if I can find the source. It is just a custom Web frontend to ctorrent. Teng
|
|