[Rainmeter]
Update=1000
Background=#@#Background.png
BackgroundMode=3
BackgroundMargins=0,34,0,14
[Variables]
fontName=Trebucht MS
textSize=8
colorBar=235,170,0,255
colorText=255,255,255,205
; =====================================
;
; MEASUREMENTS
;
; =====================================
[MeasureParse]
Measure=Plugin
Plugin=WebParser
; Be sure to replace the api key with your own, and the username with the one you want to get data on
; The api key can be accessed here https://osu.ppy.sh/p/api
URL=https://osu.ppy.sh/api/get_user?k=api_key&u=username
RegExp=(?siU)user_id":"(.*)".*username":"(.*)".*count300":"(.*)".*count100":"(.*)".*count50":"(.*)".*playcount":"(.*)".*ranked_score":"(.*)".*total_score":"(.*)".*pp_rank":"(.*)".*level":"(.*)".*pp_raw":"(.*)".*accuracy":"(.*)".*count_rank_ss":"(.*)".*count_rank_s":"(.*)".*count_rank_a":"(.*)".*country":"(.*)"
UpdateRate=60
; String index list
; This Uses the large Regular Expression above, each number retrieves the value it relates to.
;1 user_id
;2 username
;3 count300
;4 count100
;5 count50
;6 playcount
;7 ranked_score
;8 total_score
;9 pp_rank
;10 level
;11 pp_raw
;12 accuracy
;13 count_rank_ss
;14 count_rank_s
;15 count_rank_a
;16 country
[MeasureRank]
Measure=Plugin
Plugin=WebParser
URL=[MeasureParse]
StringIndex=9
[MeasurePP]
Measure=Plugin
Plugin=WebParser
URL=[MeasureParse]
StringIndex=11
[MeasureAccRaw]
Measure=Plugin
Plugin=WebParser
URL=[MeasureParse]
StringIndex=12
; Round this shit because we don't care about anything past the hundredth decimal value
[MeasureAcc]
Measure=Calc
Formula=Round(MeasureAccRaw,2)
; =====================================
;
; STYLES
;
; =====================================
[styleTitle]
StringAlign=CENTER
StringCase=UPPER
StringStyle=BOLD
StringEffect=SHADOW
FontEffectColor=0,0,0,50
FontColor=#colorText#
FontFace=#fontName#
FontSize=10
AntiAlias=1
ClipString=1
[styleLeftText]
StringAlign=LEFT
StringCase=NONE
StringStyle=BOLD
StringEffect=SHADOW
FontEffectColor=0,0,0,20
FontColor=#colorText#
FontFace=#fontName#
FontSize=#textSize#
AntiAlias=1
ClipString=1
[styleRightText]
StringAlign=RIGHT
StringCase=NONE
StringStyle=BOLD
StringEffect=SHADOW
FontEffectColor=0,0,0,20
FontColor=#colorText#
FontFace=#fontName#
FontSize=#textSize#
AntiAlias=1
ClipString=1
[styleBar]
BarColor=#colorBar#
BarOrientation=HORIZONTAL
SolidColor=255,255,255,15
[styleSeperator]
SolidColor=255,255,255,15
; =====================================
;
; Title
;
; =====================================
[meterTitle]
Meter=STRING
MeterStyle=styleTitle
X=100
Y=12
W=190
H=18
Text="osu!"
LeftMouseUpAction=[!CommandMeasure MeasureParse Update]
ToolTipText="Refresh Stats"
; =====================================
;
; Rank
;
; =====================================
[MeterRankLabel]
Meter=STRING
MeterStyle=styleLeftText
X=10
; Because This is the first in the list it has to be 28r (28 pixels relative to the title), the rest are 8r
Y=28r
W=190
H=14
Text="Rank"
[MeterRank]
Meter=STRING
MeterStyle=styleRightText
MeasureName=MeasureRank
X=200
Y=0r
W=190
H=14
Prefix="#"
[meterRankSeperator]
Meter=IMAGE
MeterStyle=styleSeperator
X=10
Y=12r
W=190
H=1
; =====================================
;
; PP
;
; =====================================
[meterPPLabel]
Meter=STRING
MeterStyle=styleLeftText
X=10
Y=8r
W=190
H=14
Text="PP"
[meterPP]
Meter=STRING
MeterStyle=styleRightText
MeasureName=MeasurePP
X=200
Y=0r
W=190
H=14
[meterPPSeperator]
Meter=IMAGE
MeterStyle=styleSeperator
X=10
Y=12r
W=190
H=1
; =====================================
;
; Accuracy
;
; =====================================
[meterAccuracyLabel]
Meter=STRING
MeterStyle=styleLeftText
X=10
Y=8r
W=190
H=14
Text="Accuracy"
[meterAccuracy]
Meter=STRING
MeterStyle=styleRightText
MeasureName=MeasureAcc
X=200
Y=0r
W=190
H=14
NumOfDecimals=2
Postfix="%"
[meterAccuracySeperator]
Meter=IMAGE
MeterStyle=styleSeperator
X=10
Y=12r
W=190
H=1