Just put in anything. It gives you what you need right away. I linked to the forum post as the app URL and then the name was just like "Osu!Rank Rainmeter Skin"Dragomegak wrote:
what do u request for the api?
Just put in anything. It gives you what you need right away. I linked to the forum post as the app URL and then the name was just like "Osu!Rank Rainmeter Skin"Dragomegak wrote:
what do u request for the api?
Try using quotes (") and see if it works.[Toy] wrote:
It looks like the brackets in my name break the code. Is there a way around this?
[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
For some reason I can't make it work :/Sonicoa wrote:
I really liked the idea of an Osu!Rank for Rainmeter, so I edit the Dexus's exemple to add new functions:So how it looks like :
- Add a button to change the mode without having to edit the ini file
- Add a refresh button
- Add a variante of the Dexus's skin with other stats (You can acces to this "expand" version by clicking on the title). It includes avatar, country flag, level, scores...
ScreenshotsDexus Version that I didn't much edit Expand Version
However there are some things to improve but I don't know how to do this on Rainmeter, so if anyone could help me it's would be fine :Here's a download link : http://puu.sh/9VrIG/e6c0104a4f.rmskin
- The scores would be more readable like this : 11 063 192 198 or 11,063,192,198
- There is an Autoscale in the ToolTipText of the Level so in my case it shows 1 G instead of 1597539124. (I think it is scales by 1024 but "Autoscale=0" did nothing against that).
You just need to put your ApiKey and your username in one of the ini files then refresh two times. All informations and instructions are in both ini files too
This is awesome thank you so much!Sonicoa wrote:
I really liked the idea of an Osu!Rank for Rainmeter, so I edit the Dexus's exemple to add new functions:So how it looks like :
- Add a button to change the mode without having to edit the ini file
- Add a refresh button
- Add a variante of the Dexus's skin with other stats (You can acces to this "expand" version by clicking on the title). It includes avatar, country flag, level, scores...
ScreenshotsDexus Version that I didn't much edit Expand Version However there are some things to improve but I don't know how to do this on Rainmeter, so if anyone could help me it's would be fine :Here's a download link : http://puu.sh/9YWHN/9770740d61.rmskin
The scores would be more readable like this : 11 063 192 198 or 11,063,192,198There is an Autoscale in the ToolTipText of the Level so in my case it shows 1 G instead of 1597539124. (I think it is scales by 1024 but "Autoscale=0" did nothing against that).
You need to enter your ApiKey and Username and then, after you saved the file, you need to actualize manually the skin (right click on it -> Actualize the skin). It should load your info. Then you need to use the refresh button just one time to transfer your ApiKey and Username to the variante, so you don't need to write them again. All informations and instructions are in both ini files too
so this is pure sex <3 thank youSonicoa wrote:
I really liked the idea of an Osu!Rank for Rainmeter, so I edit the Dexus's exemple to add new functions:So how it looks like :
- Add a button to change the mode without having to edit the ini file
- Add a refresh button
- Add a variante of the Dexus's skin with other stats (You can acces to this "expand" version by clicking on the title). It includes avatar, country flag, level, scores...
ScreenshotsDexus Version that I didn't much edit Expand Version However there are some things to improve but I don't know how to do this on Rainmeter, so if anyone could help me it's would be fine :Here's a download link : http://puu.sh/9YWHN/9770740d61.rmskin
The scores would be more readable like this : 11 063 192 198 or 11,063,192,198There is an Autoscale in the ToolTipText of the Level so in my case it shows 1 G instead of 1597539124. (I think it is scales by 1024 but "Autoscale=0" did nothing against that).
You need to enter your ApiKey and Username and then, after you saved the file, you need to actualize manually the skin (right click on it -> Actualize the skin). It should load your info. Then you need to use the refresh button just one time to transfer your ApiKey and Username to the variante, so you don't need to write them again. All informations and instructions are in both ini files too
Sonicoa wrote:
Just saw that Country Ranking has been added to the API since when i've done the Rainmeter Skin, i updated it to add this and fix few things.
So here's a new download link : https://mega.nz/#!MohjXBSJ!LLWmsThnUt_T ... 1lRRKpJhmA
Instructions are the same (check .ini file or my previous post)