Note that that will create one or more non-fatal errors in the log when the skin is first loaded or when refreshed, due to there not being any value yet in [MeasureWidth], and us using that in formulas.
This can be corrected like this:
Code: Select all
[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1
[Variables]
ImageWidth=0
[MeasureDate]
Measure=Time
Format=%Y-%m-%d
[MeasureSite]
Measure=WebParser
URL=http://bible.faithlife.com/verseoftheday/[&MeasureDate]
RegExp=(?siU)<link rel="image_src" href="(.*)\?width=(.*)".*<meta property="og:title" content="(.*)"
DynamicVariables=1
FinishAction=[!SetVariable ImageWidth "[MeasureWidth]"]
[MeasureImage]
Measure=WebParser
URL=[MeasureSite]
StringIndex=1
Download=1
DownloadFile=TodayVerse.jpg
FinishAction=[!ShowMeterGroup Verse][!UpdateMeterGroup Verse][!Redraw]
[MeasureReferenceFromImage]
Measure=WebParser
URL=[MeasureSite]
StringIndex=1
RegExpSubstitute=1
Substitute="http://bible.faithlife.com/verseoftheday/image/(.*)$":"\1"
[MeasureWidth]
Measure=WebParser
URL=[MeasureSite]
StringIndex=2
[MeasureVerse]
Measure=WebParser
URL=[MeasureSite]
StringIndex=3
[MeterImage]
Meter=Image
Group=Verse
MeasureName=MeasureImage
W=#ImageWidth#
PreserveAspectRatio=1
DynamicVariables=1
Hidden=1
[MeterVerse]
Meter=String
Group=Verse
MeasureName=MeasureVerse
X=(#ImageWidth#/2)
Y=5R
StringAlign=Center
FontSize=15
FontWeight=400
FontColor=255,255,255,255
SolidColor=47,47,47,255
Padding=5,5,5,5
AntiAlias=1
DynamicVariables=1
Hidden=1
[MeterReference]
Meter=String
Group=Verse
MeasureName=MeasureReferenceFromImage
X=(#ImageWidth#/2)
Y=5R
StringAlign=Center
FontSize=15
FontWeight=400
FontColor=255,255,255,255
SolidColor=47,47,47,255
Padding=5,5,5,5
AntiAlias=1
DynamicVariables=1
Hidden=1
That is because the string value of [MeasureWidth] will initially be "" or an empty string, and you can't use strings in formulas. Once it has the width, the string value will be 700, or 500, or whatever it is, and that can be recognized and used as a number in formulas.