Overclock.net - An Overclocking Community - View Single Post - HFM Rainmeter Config

View Single Post
post #88 of (permalink) Old 02-10-2012, 01:29 PM
gceclifton
New to Overclock.net
 
gceclifton's Avatar
 
Join Date: Jan 2012
Location: Hadleigh, Essex, UK
Posts: 168
Rep: 6 (Unique: 6)
Yeah, I encountered the same kinda problem with yours. Copying the code from Notepad into here adds new lines in the RegExp rather than it being one long chunk of characters... I have added styles, renamed the sections and generally made it a touch shorter.

Edit: Changed the summary.html to your location again. Also, I have added URL3 - when you click on HFM Stats in the skin, it now opens HFM so long as it was installed in the same place. Change the link if needs be smile.gif

Edit 2: The splitting of the RegExp is from having word wrap on in Notepad
Warning: Spoiler! (Click to show)
Code:
[Rainmeter]


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

;End of added Metadata

[Variables]
;replace NUMBER with your user number
URL=http://folding.extremeoverclocking.com/user_summary.php?s=&u=485295
Font=Century Gothic
;replace URL location with your summary.html location
URL2=file://C:\\Users\\Dranas\\Documents\\Folding\\summary.html
;Location of HFM.net
URL3=file://C:\Program Files (x86)\HFM.NET\HFM.exe
Font=Century Gothic
TextColor=255,255,255,180

------------------------------------MEASURES-------------------------------------------

[MeasureFoldStats]
Measure=Plugin
Plugin=Plugins\\WebParser.dll
UpdateRate=120
Url=#URL#
RegExp="(?siU)<td align='right'>(.*)</td>(.*)<td align='right'>(.*)</td>(.*)<td align='right'>(.*)</td>(.*)<td align='right'>(.*)</td>(.*)<td align='right'>(.*)</td>(.*)<td align='right'>(.*)</td>(.*)<td align='right' bgcolor='#EFEFEF'>(.*)</td>(.*)<td align='right' bgcolor='#EFEFEF'>(.*)</td>(.*)<th>WUs</th>(.*)</tr>(.*)<td align='right'>(.*)</td>"
Debug=1

[MeasureFoldRank]
Measure=Plugin
Plugin=Plugins\\WebParser.dll
Url=[MeasureFoldStats]
StringIndex=1

[MeasureLast24]
Measure=Plugin
Plugin=Plugins\\WebParser.dll
Url=[MeasureFoldStats]
StringIndex=5

[Measure24Avg]
Measure=Plugin
Plugin=Plugins\\WebParser.dll
Url=[MeasureFoldStats]
StringIndex=7

[MeasureToday]
Measure=Plugin
Plugin=Plugins\\WebParser.dll
Url=[MeasureFoldStats]
StringIndex=9

[MeasureWeek]
Measure=Plugin
Plugin=Plugins\\WebParser.dll
Url=[MeasureFoldStats]
StringIndex=11

[MeasureFoldPoints]
Measure=Plugin
Plugin=Plugins\\WebParser.dll
Url=[MeasureFoldStats]
StringIndex=13

[MeasureWU]
Measure=Plugin
Plugin=Plugins\\WebParser.dll
Url=[MeasureFoldStats]
StringIndex=15

[MeasureMonth]
Measure=Plugin
Plugin=Plugins\\WebParser.dll
Url=[MeasureFoldStats]
StringIndex=19


[MeasureTotal]
Measure=Plugin
Plugin=Plugins\\WebParser.dll
UpdateRate=120
Url=#URL2#
RegExp="(?siU)<td class=".*" colspan=".*">Totals</td>.*<td class=".*" colspan=".*">.*</td>.*<td class=".*" colspan=".*">.*</td>.*</tr>.*<tr>.*<td class=".*" colspan=".*">(.*)</td>.*<td class=".*" colspan=".*">(.*)&nbsp;"
Debug=1

[MeasureOverview]
Measure=Plugin
Plugin=Plugins\\WebParser.dll
UpdateRate=120
Url=#URL2#
RegExp="(?siU)<tr>.*<td width=".*" class=".*" bgcolor=".*">.*<font color=".*">(.*)</font>.*</td>.*<td width=".*" class=".*">(.*)</td>.*<td width=".*" class=".*"><a href=".*">(.*)</a>.*</td>.*<td width=".*" class=".*">(.*)</td>.*<td width=".*" class=".*">(.*)</td>.*<td width=".*" class=".*">(.*)</td>.*<td width=".*" class=".*">(.*)</td>.*<td width=".*" class=".*">(.*)</td>.*<td width=".*" class=".*">(.*)</td>.*<td width=".*" class=".*">(.*)</td>.*<td width=".*" class=".*">(.*)</td>.*<td width=".*" class=".*">(.*)</td>.*<td width=".*" class=".*">(.*)</td>.*</tr>.*<tr>.*<td width=".*" class=".*" bgcolor=".*">.*<font color=".*">(.*)</font>.*</td>.*<td width=".*" class=".*">(.*)</td>.*<td width=".*" class=".*"><a href=".*">(.*)</a>.*</td>.*<td width=".*" class=".*">(.*)</td>.*<td width=".*" class=".*">(.*)</td>.*<td width=".*" class=".*">(.*)</td>.*<td width=".*" class=".*">(.*)</td>.*<td width=".*" class=".*">(.*)</td>.*<td width=".*" class=".*">(.*)</td>.*<td width=".*" class=".*">(.*)</td>.*<td width=".*" class=".*">(.*)</td>.*<td width=".*" class=".*">(.*)</td>.*<td width=".*" class=".*">(.*)</td>.*</tr>.*<tr>.*<td width=".*" class=".*" bgcolor=".*">.*<font color=".*">(.*)</font>.*</td>.*<td width=".*" class=".*">(.*)</td>.*<td width=".*" class=".*"><a href=".*">(.*)</a>.*</td>.*<td width=".*" class=".*">(.*)</td>.*<td width=".*" class=".*">(.*)</td>.*<td width=".*" class=".*">(.*)</td>.*<td width=".*" class=".*">(.*)</td>.*<td width=".*" class=".*">(.*)</td>.*<td width=".*" class=".*">(.*)</td>.*<td width=".*" class=".*">(.*)</td>.*<td width=".*" class=".*">(.*)</td>.*<td width=".*" class=".*">(.*)</td>.*<td width=".*" class=".*">(.*)</td>.*</tr>"
Debug=1


[MeasureTotalClients]
Measure=Plugin
Plugin=Plugins\\WebParser.dll
Url=[MeasureTotal]
StringIndex=1
Substitute="&nbsp;":" "

[MeasureTotalPPD]
Measure=Plugin
Plugin=Plugins\\WebParser.dll
Url=[MeasureTotal]
StringIndex=2
Substitute="&nbsp;":" "
     


---Client1--- 
     
[MeasureStatus1]
Measure=Plugin
Plugin=Plugins\\WebParser.dll
Url=[MeasureOverview]
StringIndex=1

[MeasurePercent1]
Measure=Plugin
Plugin=Plugins\\WebParser.dll
Url=[MeasureOverview]
MaxValue=100
StringIndex=2

[MeasureClientName1]
Measure=Plugin
Plugin=Plugins\\WebParser.dll
Url=[MeasureOverview]
StringIndex=3

[MeasureTPF1]
Measure=Plugin
Plugin=Plugins\\WebParser.dll
Url=[MeasureOverview]
StringIndex=5

[MeasurePPD1]
Measure=Plugin
Plugin=Plugins\\WebParser.dll
Url=[MeasureOverview]
StringIndex=6

[MeasureETA1]
Measure=Plugin
Plugin=Plugins\\WebParser.dll
Url=[MeasureOverview]
StringIndex=9

[MeasureProject1]
Measure=Plugin
Plugin=Plugins\\WebParser.dll
Url=[MeasureOverview]
StringIndex=12

[MeasureCredit1]
Measure=Plugin
Plugin=Plugins\\WebParser.dll
Url=[MeasureOverview]
StringIndex=13



---Client2---

[MeasureStatus2]
Measure=Plugin
Plugin=Plugins\\WebParser.dll
Url=[MeasureOverview]
StringIndex=14

[MeasurePercent2]
Measure=Plugin
Plugin=Plugins\\WebParser.dll
Url=[MeasureOverview]
MaxValue=100
StringIndex=15

[MeasureClientName2]
Measure=Plugin
Plugin=Plugins\\WebParser.dll
Url=[MeasureOverview]
StringIndex=16

[MeasureTPF2]
Measure=Plugin
Plugin=Plugins\\WebParser.dll
Url=[MeasureOverview]
StringIndex=18

[MeasurePPD2]
Measure=Plugin
Plugin=Plugins\\WebParser.dll
Url=[MeasureOverview]
StringIndex=21

[MeasureETA2]
Measure=Plugin
Plugin=Plugins\\WebParser.dll
Url=[MeasureOverview]
StringIndex=22

[MeasureProject2]
Measure=Plugin
Plugin=Plugins\\WebParser.dll
Url=[MeasureOverview]
StringIndex=25

[MeasureCredit2]
Measure=Plugin
Plugin=Plugins\\WebParser.dll
Url=[MeasureOverview]
StringIndex=26



---Client3---

[MeasureStatus3]
Measure=Plugin
Plugin=Plugins\\WebParser.dll
Url=[MeasureOverview]
StringIndex=27

[MeasurePercent3]
Measure=Plugin
Plugin=Plugins\\WebParser.dll
Url=[MeasureOverview]
MaxValue=100
StringIndex=28

[MeasureClientName3]
Measure=Plugin
Plugin=Plugins\\WebParser.dll
Url=[MeasureOverview]
StringIndex=29

[MeasureTPF3]
Measure=Plugin
Plugin=Plugins\\WebParser.dll
Url=[MeasureOverview]
StringIndex=31

[MeasurePPD3]
Measure=Plugin
Plugin=Plugins\\WebParser.dll
Url=[MeasureOverview]
StringIndex=34

[MeasureETA3]
Measure=Plugin
Plugin=Plugins\\WebParser.dll
Url=[MeasureOverview]
StringIndex=35

[MeasureProject3]
Measure=Plugin
Plugin=Plugins\\WebParser.dll
Url=[MeasureOverview]
StringIndex=38

[MeasureCredit3]
Measure=Plugin
Plugin=Plugins\\WebParser.dll
Url=[MeasureOverview]
StringIndex=39



----------------------------------STYLES--------------------------------------

[styleHeader]
FontColor=255,255,255,255
StringStyle=Bold
FontSize=10
StringAlign=Left
FontFace=Century Gothic
Antialias=1


[styleText]
FontColor=#TextColor#
StringStyle=Bold
FontSize=8
StringAlign=Left
FontFace=#Font#
Antialias=1


[styleTitle]
FontColor=255,255,255,255
StringStyle=Bold
FontSize=10
StringAlign=Left
FontFace=#Font#
Antialias=1



----------------------------------METERS--------------------------------------------


[MeterBG]
Meter=IMAGE
X=0
Y=0
W=450
H=600
SolidColor=0, 0, 0, 1

----------------------------------EOC--------------------------------------

[AwesomeImage]
Meter=IMAGE
ImageName=EOC.gif
LeftMouseDownAction=!Execute ["#URL#"]
X=0
Y=-1


[Header]
Meter=STRING
MeterStyle=styleHeader
Text="Extreme Overclocking Stats"
LeftMouseDownAction=!Execute ["#URL#"]
X=1R
Y=0


[Underline]
Meter=IMAGE
SolidColor=255,255,255,90
X=0r
Y=14
W=180
H=2



[UserName]
Meter=STRING
MeterStyle=styleText
X=0
Y=16
Prefix="Name: "
Text="Dranas"

[MeterRank]
MeasureName=MeasureFoldRank
Meter=STRING
MeterStyle=styleText
X=0
Y=30
Prefix="Team Rank: "


[MeterLast24]
MeasureName=MeasureLast24
Meter=STRING
MeterStyle=styleText
X=0
Y=44
Prefix="Last 24hrs: "


[Meter24Avg]
MeasureName=Measure24Avg
Meter=STRING
MeterStyle=styleText
X=0
Y=58
Prefix="24hr Average: "

[MeterToday]
MeasureName=MeasureToday
Meter=STRING
MeterStyle=styleText
X=0
Y=72
Prefix="Today: "

[MeterWeek]
MeasureName=MeasureWeek
Meter=STRING
MeterStyle=styleText
X=0
Y=86
Prefix="Week: "

[MeterMonth]
MeasureName=MeasureMonth
Meter=STRING
MeterStyle=styleText
X=0
Y=100
Prefix="Month: "


[MeterPoints]
MeasureName=MeasureFoldPoints
Meter=STRING
MeterStyle=styleText
X=0
Y=114
Prefix="Total Points: "

[MeterWU]
MeasureName=MeasureWU
Meter=STRING
MeterStyle=styleText
X=0
Y=128
Prefix="Total WUs: "

-----------------------------------HFM STATS-----------------------------

[AwesomeImage2]
Meter=IMAGE
ImageName=HFM.png
LeftMouseDownAction=!Execute ["#URL3#"]
X=0
Y=170


[Header2]
Meter=STRING
MeterStyle=styleHeader
Text="HFM Stats"
LeftMouseDownAction=!Execute ["#URL3#"]
X=1R
Y=173

[Underline2]
Meter=IMAGE
SolidColor=255,255,255,90
X=0r
Y=187
W=71
H=2


[TotalClients]
MeasureName=MeasureTotalClients
Meter=STRING
MeterStyle=styleText
Text="Total Clients: %1"
ClipString=0
W=240
H=13
X=0
Y=190

[TotalPPD]
MeasureName=MeasureTotalPPD
Meter=STRING
MeterStyle=styleText
Text="Total PPD: %1"
ClipString=0
W=240
H=20
X=0
Y=0R


---------------HFM Entry 1------------------------------------------


[Client1Name]
MeasureName=MeasureClientName1
Meter=STRING
MeterStyle=styleTitle
Text="%1 "
ClipString=0
W=40
H=16
X=85
Y=0R

[AwesomeImage3]
Meter=Image
ImageName=intel.png
X=120
Y=0r

[Client1Status]
MeasureName=MeasureStatus1
Meter=STRING
MeterStyle=styleText
ClipString=0
W=240
H=13
Text="Status: %1"
X=0
Y=0R

[Client1Percent]
MeasureName=MeasurePercent1
Meter=STRING
MeterStyle=styleText
Text="Progress: %1"
ClipString=0
W=240
H=13
X=0
Y=OR

[MeterProgress1]
MeasureName=MeasurePercent1
Meter=BAR
X=78
Y=3r
W=75
H=8
Text=%1% 
BarColor=85,85,85,225
SolidColor=255,255,255,200
BarOrientation=HORIZONTAL


[Client1PPD]
MeasureName=MeasurePPD1
Meter=STRING
MeterStyle=styleText
Text="PPD: %1"
ClipString=0
W=240
H=13
X=0
Y=4R

[Client1ETA]
MeasureName=MeasureETA1
Meter=STRING
MeterStyle=styleText
Text="ETA: %1"
ClipString=0
W=240
H=13
X=0
Y=0R


[Client1Credit]
MeasureName=MeasureCredit1
MeasureName2=MeasureTPF1
Meter=STRING
MeterStyle=styleText
Text="TPF: %2     Credit: %1pts"
ClipString=0
W=240
H=13
X=0
Y=0R


[Client1Project]
MeasureName=MeasureProject1
Meter=STRING
MeterStyle=styleText
Text="Project: %1"
ClipString=0
W=240
H=13
X=0
Y=0R

--------------------------HFM Entry 2-----------------------------------


[Client2Name]
MeasureName=MeasureClientName2
Meter=STRING
MeterStyle=styleTitle
Text="%1 "
ClipString=0
W=40
H=16
X=85
Y=5R


[AwesomeImage4]
Meter=Image
ImageName=nvidia2.png
X=120
Y=0r


[Client2Status]
MeasureName=MeasureStatus2
Meter=STRING
MeterStyle=styleText
Text="Status: %1"
ClipString=0
W=240
H=13
X=0
Y=0R


[Client2Percent]
MeasureName=MeasurePercent2
Meter=STRING
MeterStyle=styleText
Text="Progress: %1"
ClipString=0
W=240
H=13
X=0
Y=OR


[MeterProgress2]
MeasureName=MeasurePercent2
Meter=BAR
X=78
Y=3r
W=75
H=8
Text=%1% 
BarColor=85,85,85,255
SolidColor=255,255,255,200
BarOrientation=HORIZONTAL


[Client2PPD]
MeasureName=MeasurePPD2
Meter=STRING
MeterStyle=styleText
Text="PPD: %1"
ClipString=0
W=240
H=13
X=0
Y=4R


[Client2ETA]
MeasureName=MeasureETA2
Meter=STRING
MeterStyle=styleText
Text="ETA: %1"
ClipString=0
W=240
H=13
X=0
Y=0R


[Client2Credit]
MeasureName=MeasureCredit2
MeasureName2=MeasureTPF2
Meter=STRING
MeterStyle=styleText
Text="TPF: %2     Credit: %1pts"
ClipString=0
W=240
H=13
X=0
Y=0R


[Client2Project]
MeasureName=MeasureProject2
Meter=STRING
MeterStyle=styleText
Text="Project: %1"
ClipString=0
W=240
H=13
X=0
Y=0R


---------------------------HFM Entry 3-----------------------------------


[Client3Name]
MeasureName=MeasureClientName3
Meter=STRING
MeterStyle=styleTitle
Text="%1 "
ClipString=0
W=40
H=16
X=85
Y=5R


[AwesomeImage5]
Meter=Image
ImageName=nvidia2.png
X=120
Y=0r


[Client3Status]
MeasureName=MeasureStatus3
Meter=STRING
MeterStyle=styleText
Text="Status: %1"
ClipString=0
W=240
H=13
X=0
Y=0R


[Client3Percent]
MeasureName=MeasurePercent3
Meter=STRING
MeterStyle=styleText
Text="Progress: %1"
ClipString=0
W=240
H=13
X=0
Y=OR


[MeterProgress3]
MeasureName=MeasurePercent3
Meter=BAR
X=78
Y=3r
W=75
H=8
Text=%1% 
BarColor=85,85,85,255
SolidColor=255,255,255,200
BarOrientation=HORIZONTAL


[Client3PPD]
MeasureName=MeasurePPD3
Meter=STRING
MeterStyle=styleText
Text="PPD: %1"
ClipString=0
W=240
H=13
X=0
Y=4R


[Client3ETA]
MeasureName=MeasureETA3
Meter=STRING
MeterStyle=styleText
Text="ETA: %1"
ClipString=0
W=240
H=13
X=0
Y=0R


[Client3Credit]
MeasureName=MeasureCredit3
MeasureName2=MeasureTPF3
Meter=STRING
MeterStyle=styleText
Text="TPF: %2     Credit: %1pts"
ClipString=0
W=240
H=13
X=0
Y=0R


[Client3Project]
MeasureName=MeasureProject3
Meter=STRING
MeterStyle=styleText
Text="Project: %1"
ClipString=0
W=240
H=13
X=0
Y=0R


gceclifton is offline