It is currently May 1st, 2024, 7:13 am

Measure cannot be bound with meter[simple problem]

Get help with creating, editing & fixing problems with skins
fcfc
Posts: 2
Joined: March 24th, 2012, 4:10 pm

Measure cannot be bound with meter[simple problem]

Post by fcfc »

Hey hey people!

Im trying to make a rainmeter skin that tracks your youtube stats(subscribers, total amount of views. etc)

However i get the correct value in in the "About Rainmeter" > Measures


As you can se in the lower pic there. (21 is the correct value)

Althought i get that problem you can see above, "Metersubcribers cannot be bound with measuresubscribers". i dont really know what the problem is. please take a look at my code below and point it out so i can learn!

Code: Select all

[Rainmeter]
Update=1000
Author=fcfc
BackgroundMode=2
SolidColor=#Color1#

[Variables]
Color1=0,0,32,128
Color2=255,255,255,255
Color3=0,0,0,128

[MeasureSubscribers]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=1800
Url="http://socialblade.com/youtube/user/feelingcontemptuous"
RegExp="(?siU)Current # of subscribers: (.*) :: Gaining.*"
StringIndex=1

[MeterSubscribers]
MeasureName=MeasureSubcribers
Meter=STRING
X=5
Y=5
W=105
H=15
FontColor=#Color2#
AntiAlias=1
Prefix="Subscribers: "
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Measure cannot be bound with meter[simple problem]

Post by jsmorley »

Check the spelling of the MeasureName= value. It is wrong... ;-)

MeasureSubscribers
MeasureSubcribers
fcfc
Posts: 2
Joined: March 24th, 2012, 4:10 pm

Re: Measure cannot be bound with meter[simple problem]

Post by fcfc »

jsmorley wrote:Check the spelling of the MeasureName= value. It is wrong... ;-)

MeasureSubscribers
MeasureSubcribers
So typical... :handtohead:

Thanks!
kabott
Posts: 39
Joined: March 28th, 2012, 10:18 pm
Location: Argentina

Re: Measure cannot be bound with meter[simple problem]

Post by kabott »

Hello, im trying to download the thumbnails of RTnews videos on Youtube channel, maybe after ill try adding the names but im stuck with the thumbnails :/

the parser returns all thumbnail/.jpg addresses and that would be cool if i knew how to separate them in to different measures / meters.. ive looked into other configs but i feeling they r too advanced for me, im having a hard time understanding the Regular Expression part, i've completed the online tutorial and made a couple of working RSS's but this too trickier for me.
TEST.png
TEST2.png
[Rainmeter]
BackgroundMode=0
Update=544000
MiddleMouseUpAction=!RainmeterDeactivateConfig
DynamicWindowSize=1



[Variables]

YouTubeChannel=RussiaToday

PicSizeW=118
PicSizeH=88


[Style]
FontFace= Century Gothic
FontColor= 255,255,255,200
FontSize=8
StringAlign= LEFT
AntiAlias=1

[BK]
Meter=Image
SolidColor=200,200,200,60
X=0
Y=0
W=230
H=200

[WebParserA]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=3600
Url=http://www.youtube.com/user/RussiaToday/videos
RegExp="(?siU)<span class="yt-thumb-clip-inner"><img src="(.*)" alt="Thumbnail" width="234"
StringIndex=1
Download=1
FinishAction=!Update "#CURRENTCONFIG#"



[paper]
Meter=Image
MeasureName=WebParserA
X=0
Y=0
W=230
H=200
PreserveAspectRatio=1
AntiAlias=1
ImageAlpha= 220
StringIndex=1
This is what RainRegEx returns:

01=> //i1.ytimg.com/vi/hZz1JPhaDTc/mqdefault.jpg
02=> //i3.ytimg.com/vi/RLPM5VnOjHY/mqdefault.jpg
03=> //i4.ytimg.com/vi/7OXwCzL6j0E/mqdefault.jpg
04=> //i4.ytimg.com/vi/GugYLDc2JM0/mqdefault.jpg
05=> //i1.ytimg.com/vi/d_E21Y4VUCw/mqdefault.jpg
06=> //i4.ytimg.com/vi/Oj9LGloZAk0/mqdefault.jpg
07=> //i3.ytimg.com/vi/BT_lj_0smgA/mqdefault.jpg
08=> //i1.ytimg.com/vi/d1TDf4d8VnA/mqdefault.jpg
09=> //i3.ytimg.com/vi/Z73tZkxR6NI/mqdefault.jpg
10=> //i3.ytimg.com/vi/FseNaJa0zH4/mqdefault.jpg
11=> //i3.ytimg.com/vi/rFADaYecRY0/mqdefault.jpg
12=> //i3.ytimg.com/vi/VeifJzu3oeo/mqdefault.jpg
13=> //i4.ytimg.com/vi/wJEIAR-76A0/mqdefault.jpg




help? :)
You do not have the required permissions to view the files attached to this post.