imagitronics.org


dream it, build it, break it, repeat.

Feb/09

7

ybox2 uTorrent download monitor

Well, it’s not very interesting (yet?) but I started working on a uTorrent download monitor using the ybox2. At the moment, it’s really nothing more than a simple hack. The ybox2 is running a slightly modified infowidget. When I say slightly modified, I mean I added one line to insert a Basic base64 authentication header for the uTorrent webserver:

 

tel.txmimeheader(string(“User-Agent”),string(“PropTCP”)) tel.txmimeheader(string(“Connection”),string(“close”)) tel.txmimeheader(string(“Authorization”),string(“Basic YWRtaW46YWRtaW4=”)) tel.str(@CR_LF)

 

I haven’t figured out how to write my own base64 encoding routine in Spin yet, so for the time being, I used python to generate the base64 encoding of the default username/password for the uTorrent web server (admin:admin).

Apart from that, I’m using a uTorrent python library on the web server to generate a properly formatted document for the infowidget and the file is updated every minute by the Windows Task Scheduler: The simple python script can be found at http://pastebin.com/f2a47b927

TODO:

  • There’s a lot that I’d like to do, but I’m currently in the midst of a hate/hate relationship with Spin.
  • Ideally, I’d like to create a base64 encoder routine, and create a set of routines in Spin that can query the uTorrent webui natively without the python proxy.
  • If/when that happens, I’d like to add remote control, scrolling, and the ability to select a download to view details. We’ll see how my relationship with Spin evolves. I’m not exactly a good programmer to begin with, and Spin is shaking me up pretty good.


RSS Feed

<<

>>

I shop at

Theme Design by devolux.nh2.me

Hosted in the cloud

To top

imagitronics.org is Digg proof thanks to caching by WP Super Cache