Utorrent plugin

All your questions about LcdStudio 2.0 Plugins

Moderator: LcdStudio2 Experts

Utorrent plugin

Postby vinzzz » Mon Apr 21, 2008 9:15 am

first you have to configure plugin webui of utorrent
Image
and after copy utorrent.dll & utorrent.plugin to lcdstudio directorie

utorrent_plugin.rar
save as to download
an update: utorrent_plugin1.rar
Image
Last edited by vinzzz on Fri Apr 25, 2008 9:36 am, edited 2 times in total.
vinzzz
 
Posts: 28
Joined: Sat Nov 04, 2006 8:54 am

Congratulations

Postby Mostly Harmless » Wed Apr 23, 2008 11:04 pm

thank you very much, this is a long awaited plugin by many i think...
looks promising, but i would expect some more data, like azureus plugin does.
if that's possible, i will replace azureus with utorrent at once.
Mostly Harmless
 
Posts: 115
Joined: Thu Jan 25, 2007 3:49 pm
Location: Budapest, Hungary

Postby vinzzz » Thu Apr 24, 2008 8:32 am

thank you Mostly harmless
this is the code if someone wants to help me to do a better plugin
[code]Imports System
Imports LcdStudio.CoreInterfaces
Imports System.Net
Imports System.IO
Imports System.Math
Imports System.Drawing


Public Class Plugin
Inherits AbstractDataPlugin

Public upspeed As String = 0
Public downspeed As String = 0

Public Overrides Sub RegisterData(ByVal ds As IDataService)
ds.RegisterVariable(Group, "utorrent.torrents", "utorrent\torrent")
ds.RegisterVariable(Group, "utorrent.downspeed", "utorrent\downspeed")
ds.RegisterVariable(Group, "utorrent.upspeed", "utorrent\upspeed")
'ds.RegisterVariable(Group, "utorrent.Settings.PORT", "utorrent\Settings\PORT")
Me.UpdateInterval = 10000
'Update every 300000ms (5 min)
End Sub

Public Overrides Sub UpdateData(ByVal ds As IDataService)


ds.SetValue("utorrent.torrents", webrequesting())
ds.SetValue("utorrent.downspeed", downspeed & "kb/s")
ds.SetValue("utorrent.upspeed", upspeed & "kb/s")
End Sub

Public Function webrequesting() As String
' Create a request for the URL.
Dim request As WebRequest = WebRequest.Create("http://localhost:29230/gui/?list=1")
' If required by the server, set the credentials.
request.Credentials = New System.Net.NetworkCredential("admin", "")
' Get the response.
Dim response As HttpWebResponse = CType(request.GetResponse(), HttpWebResponse)
' Get the stream containing content returned by the server.
Dim dataStream As Stream = response.GetResponseStream()
' Open the stream using a StreamReader for easy access.
Dim reader As New StreamReader(dataStream)
' Read the content.
Dim responseFromServer As String = reader.ReadToEnd()
' Display the content.
Dim test As String = extractionMots(responseFromServer)
' Cleanup the streams and the response.
reader.Close()
dataStream.Close()
response.Close()
Return (test)
End Function

Public Function extractionMots(ByVal mots As String) As String
Dim Tableau() As String
Dim tableau1() As String
Dim i As Integer
Dim j As Integer

Dim torrent As String = ""
downspeed = 0
upspeed = 0

'd
vinzzz
 
Posts: 28
Joined: Sat Nov 04, 2006 8:54 am

Postby Henry_MO » Fri Apr 25, 2008 5:45 am

ahhh nice... I use uTorrent all the time.
Henry Jakl
President
Matrix Orbital
Henry_MO
OMNIPRESENT
OMNIPRESENT
 
Posts: 36
Joined: Mon Mar 26, 2007 9:13 pm

Postby vinzzz » Fri Apr 25, 2008 9:34 am

This is an update with more data
total down speed
total up speed
utorrent status
torrents downspeed
torrents upspeed
torrents name
torrents downloaded size
torrents remaining size
torrents percent
torrents status
http://membres.lycos.fr/rmullens4/utorrent_plugin1.rar
File save as to download

to display data in column in data text properties set autosize to true and scroll type to none


and this is an example
Image

thanks for your comment
vinzzz
 
Posts: 28
Joined: Sat Nov 04, 2006 8:54 am

Postby mingingbollock » Sun May 04, 2008 2:45 pm

Great little plugin :D been waiting for this one.
Thanks vinzzz
mingingbollock
 
Posts: 358
Joined: Wed Mar 31, 2004 9:47 am

Postby tehseano » Sat Sep 06, 2008 10:13 am

Can someone please post this file for download somewhere else? If just one person has it and can send it I'll even host it!
There are 10 kinds of people in the world: those who know binary and those who don't.
tehseano
 
Posts: 22
Joined: Sat Sep 06, 2008 9:40 am

Postby vinzzz » Wed Oct 15, 2008 7:42 pm

tehseano wrote:Can someone please post this file for download somewhere else? If just one person has it and can send it I'll even host it!

the file is working, host it if you can, to download you have to do file save as with left click
vinzzz
 
Posts: 28
Joined: Sat Nov 04, 2006 8:54 am

Postby tehseano » Wed Oct 15, 2008 8:15 pm

vinzzz wrote:
tehseano wrote:Can someone please post this file for download somewhere else? If just one person has it and can send it I'll even host it!

the file is working, host it if you can, to download you have to do file save as with left click


No, the file itself is a corrupt .rar

I'm well aware the download works.
There are 10 kinds of people in the world: those who know binary and those who don't.
tehseano
 
Posts: 22
Joined: Sat Sep 06, 2008 9:40 am

utorrent

Postby vinzzz » Thu Oct 16, 2008 11:13 am

tehseano wrote:
vinzzz wrote:
tehseano wrote:Can someone please post this file for download somewhere else? If just one person has it and can send it I'll even host it!

the file is working, host it if you can, to download you have to do file save as with left click


No, the file itself is a corrupt .rar

I'm well aware the download works.


no probleme for me the rar is working great maybe update your winrar version or give me your email and i send you the plugin
vinzzz
 
Posts: 28
Joined: Sat Nov 04, 2006 8:54 am

new utorrent plugin soon

Postby vinzzz » Fri Oct 17, 2008 12:22 am

Image
vinzzz
 
Posts: 28
Joined: Sat Nov 04, 2006 8:54 am

Postby Mostly Harmless » Thu Oct 23, 2008 5:00 pm

/me eagerly waiting for it... =}
Mostly Harmless
 
Posts: 115
Joined: Thu Jan 25, 2007 3:49 pm
Location: Budapest, Hungary

new widget version

Postby vinzzz » Fri Oct 24, 2008 4:30 pm

http://www.chez.com/vincewebsite/utorrent_widget.rar
if you want to test it, i hope you have a 240 pixel wild screen or more because i've design the plugin to work with my screen (240*320)
juste had the widget, you will see my widget in the widget list resize and please tell me how it's work
thanks you
vinzzz
 
Posts: 28
Joined: Sat Nov 04, 2006 8:54 am

Postby Mostly Harmless » Fri Oct 24, 2008 6:25 pm

well, i only have a g15, but i tried it.
what a surprise, it doesn't fit... :)
maybe with a user-definiable font...
thanks for the effort though i'm sure there will be who appreciate it...
Mostly Harmless
 
Posts: 115
Joined: Thu Jan 25, 2007 3:49 pm
Location: Budapest, Hungary

Fit

Postby spock » Fri Oct 24, 2008 11:30 pm

Mostly Harmless wrote:what a surprise, it doesn't fit...


...now you see why we were telling you to do the items text only, and let users format them on their own?
Live long and prosper...
User avatar
spock
Site Admin
 
Posts: 4540
Joined: Mon Feb 17, 2003 6:01 pm
Location: Athens, Greece

Next

Return to Plugins

Who is online

Users browsing this forum: No registered users and 0 guests