I am attempting to make a rainmeter skin that pulls user profile information from reddit using the default illustro skin, here is what I have currently:
Code: Select all
[Rainmeter]
; This section contains general settings that can be used to change how Rainmeter behaves.
Author=jonathan
AppVersion=1003000
Update=1000
[Metadata]
; Contains basic information of the skin
Name=Reddit
Description=Shows reddit user info
License=Creative Commons BY-NC-SA 3.0
Version=1.0.0
[Variables]
; Variables declared here can be used later on between two # characters (e.g. #MyVariable#).
fontName=Trebuchet MS
textSize=8
colorBar=235,170,0,255
colorText=255,255,255,205
; ----------------------------------
; MEASURES return some kind of value
; ----------------------------------
[measureFeed]
Measure=Plugin
Plugin=Plugins\WebParser.dll
RegExp=(?siU)has_mail": (.*),.*name": "(.*)".*created_utc":(.*),.*link_karma": (.*),.*comment_karma": (.*),
Url="http://www.reddit.com/user/Jonno_FTW/about.json?feed=MYSUPERSECRETHASH&user=Jonno_FTW&mark=false"
UpdateRate=1000
Substitute="":"N/A"
[styleTitle]
StringAlign=CENTER
StringCase=UPPER
StringStyle=BOLD
StringEffect=SHADOW
FontEffectColor=0,0,0,50
FontColor=#colorText#
FontFace=#fontName#
FontSize=10
AntiAlias=1
ClipString=0
[styleLeftText]
StringAlign=LEFT
; Meters using styleLeftText will be left-aligned.
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
[styleSeperator]
SolidColor=255,255,255,15
; ----------------------------------
; METERS display images, text, bars, etc.
; ----------------------------------
[meterBackground]
Meter=IMAGE
ImageName=#SKINSPATH#\illustro\SHARED\Background5Line.png
; #SKINSPATH# is a global variable that stands for your skin path. It is
; usually Documents\Rainmeter\Skins.
X=0
Y=0
[MeasureName]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=[measureFeed]
StringIndex=2
[MeasureComment]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=[measureFeed]
StringIndex=5
[MeasureLink]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=[measureFeed]
StringIndex=4
[MeasureAge]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=[measureFeed]
StringIndex=3
[MeasureMail]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=[measureFeed]
StringIndex=1
[MeasureCreatedImageChoice]
Measure=Calc
Formula=MeasureMail > 0 ? 1 : 0
IfAboveValue=0
IfAboveAction=!SetOption MeterCreateYesNo ImageName #SKINSPATH#\junk\mail.png
IfBelowValue=1
IfBelowAction=!SetOption MeterCreateYesNo ImageName #SKINSPATH#\junk\mailgray.png
[MeterCreateYesNo]
;Show the mail link
Meter=Image
LeftMouseUpAction=!Execute ["http://www.reddit.com/message/inbox/"]
Y=120
X=180
[meterTitle]
Meter=STRING
MeterStyle=styleTitle
X=100
Y=12
W=190
H=18
Text="Reddit"
[meterNameLabel]
Meter=STRING
MeterStyle=styleLeftText
MeasureName=MeasureName
X=10
Y=40
W=75
H=14
Text="Name"
[MeterName]
Meter=String
MeterStyle=styleRightText
MeasureName=MeasureName
Y=40
X=200
W=240
[MeterLink]
Meter=String
MeterStyle=styleRightText
MeasureName=MeasureLink
Y=80
X=200
W=190
[MeterComment]
Meter=String
MeterStyle=styleRightText
MeasureName=MeasureComment
Y=60
X=200
W=190
[MeterAge]
Meter=String
MeterStyle=styleRightText
MeasureName=MeasureAge
X=200
Y=100
W=100
[meterSeperator1]
Meter=IMAGE
MeterStyle=styleSeperator
X=10
Y=52
W=190
H=1
[meterCommentLabel]
Meter=STRING
MeterStyle=styleLeftText
MeasureName=measureFeed
X=10
Y=60
W=150
H=14
Text="Comment Karma"
[meterSeperator2]
Meter=IMAGE
MeterStyle=styleSeperator
X=10
Y=72
W=190
H=1
[meterLinkLabel]
Meter=STRING
MeterStyle=styleLeftText
X=10
Y=80
W=150
H=14
Text="Link Karma"
[meterSeperator3]
Meter=IMAGE
MeterStyle=styleSeperator
X=10
Y=92
W=190
H=1
[meterAgeLabel]
Meter=STRING
MeterStyle=styleLeftText
MeasureName=
X=10
Y=100
W=100
H=14
Text="Age"
[meterSeperator4]
Meter=IMAGE
MeterStyle=styleSeperator
X=10
Y=112
W=190
H=1
[meterMailLabel]
Meter=STRING
MeterStyle=styleLeftText
MeasureName=
X=10
Y=120
W=190
H=14
Text="Mail"
Edit: fixed that problem using ClipString=0 in the right style.
I would like to calculate the age from the UTC seconds, to show age in years,months,days. Also, I would like the reddit mail link to go to http://www.reddit.com/message/inbox/ when there is no mail (this happens already) and to http://www.reddit.com/message/unread/ when there is mail.
Those 2 last points are the things I couldn't get and any help would be appreciated.
Thankyou