It is currently April 18th, 2024, 11:57 pm

[solved]Is this utorrent code out of date?

Get help with creating, editing & fixing problems with skins
b1ackjosh
Posts: 2
Joined: May 11th, 2010, 9:20 am

[solved]Is this utorrent code out of date?

Post by b1ackjosh »

Hey everybody,

So I am new to Rainmeter, and love it so far, but right now I'm having trouble with this utorrent meter code.

Code: Select all

;*****************************************************
; Example Skin
;Metadata added by RainBrowser
;http://rainmeter.net/RainWiki/index.php?title=Rainmeter_101#.5BMetadata.5D

[Metadata]
Name=
Config=
Description=
Instructions=
Version=
Tags=
License=
Variant=
Preview=

;End of added Metadata

;*****************************************************
[Variables]
	URL=http://user:password@120.0.0.1:8080/gui/?list=1
	Update=3
	REGEX1=(\[.+\],?\n|)
	REGEX2=\[\".*?\",\d{3},\"(.*?)\",\d*?,(\d*?),
[Rainmeter]
	Author=Kenz0 (mail2kenz0@gmail.com)
	BackgroundMode=2
	SolidColor=00000055
	DynamicWindowSize=1
	BackgroundMargins=10,10,10,10
[SOURCE]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	UpdateRate=#Update#
	Url=#URL#
	RegExp="(?siU)\"torrents\": \[\n\n(\[.+\],?\n|\])

#REGEX1##REGEX1##REGEX1##REGEX1#"
	Debug=1
[ITEM1]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[SOURCE]
	RegExp="#REGEX2#"
	StringIndex=1
	StringIndex2=1
[DL1]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[ITEM1]
	StringIndex=2
	MaxValue=1000
[ITEM2]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[SOURCE]
	RegExp="#REGEX2#"
	StringIndex=2
	StringIndex2=1
[DL2]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[ITEM2]
	StringIndex=2
	MaxValue=1000
[ITEM3]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[SOURCE]
	RegExp="#REGEX2#"
	StringIndex=3
	StringIndex2=1
[DL3]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[ITEM3]
	StringIndex=2
	MaxValue=1000
[ITEM4]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[SOURCE]
	RegExp="#REGEX2#"
	StringIndex=4
	StringIndex2=1
[DL4]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[ITEM4]
	StringIndex=2
	MaxValue=1000
[ITEM5]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[SOURCE]
	RegExp="#REGEX2#"
	StringIndex=5
	StringIndex2=1
[DL5]
	Measure=Plugin
	Plugin=Plugins\WebParser.dll
	Url=[ITEM5]
	StringIndex=2
	MaxValue=1000
[(title1)]
	MeasureName=ITEM1
	Meter=String
	X=10
	Y=10
	W=200
	H=16
	FontColor=FFFFFF
	FontSize=9
	Antialias=1
	ClipString=1
[(title2)]
	MeasureName=ITEM2
	Meter=String
	X=0r
	Y=16r
	W=200
	H=16
	FontColor=FFFFFF
	FontSize=9
	Antialias=1
	ClipString=1
[(title3)]
	MeasureName=ITEM3
	Meter=String
	X=0r
	Y=16r
	W=200
	H=16
	FontColor=FFFFFF
	FontSize=9
	Antialias=1
	ClipString=1
[(title4)]
	MeasureName=ITEM4
	Meter=String
	X=0r
	Y=16r
	W=200
	H=16
	FontColor=FFFFFF
	FontSize=9
	Antialias=1
	ClipString=1
[(title5)]
	MeasureName=ITEM5
	Meter=String
	X=0r
	Y=16r
	W=200
	H=16
	FontColor=FFFFFF
	FontSize=9
	Antialias=1
	ClipString=1
[(download1)]
	MeasureName=DL1
	Meter=Bar
	X=10
	Y=10
	W=200
	H=15
	BarColor=FFFFFF55
	BarOrientation=HORIZONTAL
[(download2)]
	MeasureName=DL2
	Meter=Bar
	X=0r
	Y=16r
	W=200
	H=15
	BarColor=FFFFFF55
	BarOrientation=HORIZONTAL
[(download3)]
	MeasureName=DL3
	Meter=Bar
	X=0r
	Y=16r
	W=200
	H=15
	BarColor=FFFFFF55
	BarOrientation=HORIZONTAL
[(download4)]
	MeasureName=DL4
	Meter=Bar
	X=0r
	Y=16r
	W=200
	H=15
	BarColor=FFFFFF55
	BarOrientation=HORIZONTAL
[(download5)]
	MeasureName=DL5
	Meter=Bar
	X=0r
	Y=16r
	W=200
	H=15
My issue is that I cannot get it to connect properly. I know that the "?list=1" in the url is supposed to be where the parser can grab data from, but even when I try to go there in a browser I get a white page that says "invalid request".

Also here's the error log:

Code: Select all

DEBUG: (00:12:57.540) Refreshing (Name: "utorrent" Ini: "utorrentwhite.ini")
DEBUG: (00:12:57.681) WebParser: Fetching URL: http://user:123456@127.0.0.1:8080/gui/?list=1
DEBUG: (00:12:57.681) Initialization successful.
DEBUG: (00:12:57.696) WebParser: Finished URL: http://user:123456@127.0.0.1:8080/gui/?list=1
DEBUG: (00:12:57.696) WebParser: Matching error! (-1)
any help would be greatly appreciated. thx guys.

edit: could this code be out of date due to the fact I'm using 2.0.1 utorrent? everyone else seems to be using an older utorrent.
Last edited by b1ackjosh on May 11th, 2010, 11:26 am, edited 1 time in total.
poiru
Developer
Posts: 2872
Joined: April 17th, 2009, 12:18 pm

Re: Is this utorrent code out of date?

Post by poiru »

Try this http://koti.welho.com/legace/gnometer/ (the utorrent guide is on last page). Skip step 6 as it's not relevant for your skin.
b1ackjosh
Posts: 2
Joined: May 11th, 2010, 9:20 am

[solved] Is this utorrent code out of date?

Post by b1ackjosh »

OMG! I can't believe I was just missing that extra switch in uTorrent to get that crap to connect! This is fantastic thanks sooo much for your help, I really appreciate it. :)