It is currently April 20th, 2024, 9:38 am
Get help with creating, editing & fixing problems with skins
nmdelrio
Posts: 74 Joined: June 28th, 2015, 12:51 pm
Location: Paranaque City, Philippines
Post
by nmdelrio » September 15th, 2017, 4:02 pm
Can some please help debug this?
I am trying to change the Formula in [MeasureDiffFP3] from
Code: Select all
[MeasureThen:Timestamp]-[MeasureNow:Timestamp]-(27 * 60 * 60)
to
Code: Select all
[MeasureThen:Timestamp]-[MeasureNow:Timestamp]-(26 * 60 * 60)
.
I know the the IfCondition6=(#FP3# = 2) is TRUE, because [meterTEST] changes its color from 255,255,255,255 to 255,0,0,255.
Here is part of the code.
Code: Select all
[Rainmeter]
Update=1000
AccurateText=1
RightMouseDownAction=!Execute
[Variables]
QR=2
FP3=2
FP2=2
FP1=2
Target=9/17/2017 20:00:00
[MeasureNow]
Measure=Time
Format=%A, %B %#d, %Y %#I:%M %p
[MeasureThen]
Measure=Time
TimeStamp=#Target#
TimeStampFormat=%m/%d/%Y %H:%M:%S
Format=%A, %B %#d, %Y %#I:%M %p
IfConditionMode=1
...
IfCondition6=(#FP3# = 2)
IfTrueAction6=[!SetOption MeasureDiffFP3 Formula "([MeasureThen:Timestamp]-[MeasureNow:Timestamp]-(26 * 60 * 60))"][!SetOption meterTEST FontColor "255,0,0,255"]
IfFalseAction6=[!SetOption MeasureDiffFP3 Formula "([MeasureThen:Timestamp]-[MeasureNow:Timestamp]-(27 * 60 * 60))"]
...
[MeasureDiffFP3]
Measure=Calc
Formula=[MeasureThen:Timestamp]-[MeasureNow:Timestamp]-(27 * 60 * 60)
DynamicVariables=1
IfBelowValue=86400
IfBelowAction=[!SetOption MeasureFormatSecondsFP3 Format "%3!02i!h %2!02i!m %1!02i!s"]
...
[meterTEST]
Meter=STRING
StringStyle=NORMAL
StringAlign=CENTERCENTER
StringCase=UPPER
X=(#SCREENAREAWIDTH#/2)
Y=260
FontColor=255,255,255,255
FontSize=14
FontFace=MicraC
AntiAlias=1
Text=WHITE
Thanks in advance.
jsmorley
Developer
Posts: 22629 Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA
Post
by jsmorley » September 15th, 2017, 4:16 pm
I don't follow the problem you are having. The actions change the Formula fine for me.
nmdelrio
Posts: 74 Joined: June 28th, 2015, 12:51 pm
Location: Paranaque City, Philippines
Post
by nmdelrio » September 15th, 2017, 4:40 pm
Ok, thanks.
Then the syntax is correct.
There is a maze of !SetOptions in IfConditions following it so there must be a !SetOption that reverts it to the original one. I need to comb through them and try to find where it is.
Thanks again.
nmdelrio
Posts: 74 Joined: June 28th, 2015, 12:51 pm
Location: Paranaque City, Philippines
Post
by nmdelrio » September 15th, 2017, 6:52 pm
Eureka!
It was stupid of me. I had IfFalseAction's that reverted the condition back.
I should had posted the full code so that the mistake would have been obvious to fresh eyes.
So from this...
Code: Select all
IfCondition5=(#FP3# = 1)
IfTrueAction5=[!SetOption MeasureDiffFP3 Formula "([MeasureThen:Timestamp]-[MeasureNow:Timestamp]-(28 * 60 * 60))"]
IfFalseAction5=[!SetOption MeasureDiffFP3 Formula "([MeasureThen:Timestamp]-[MeasureNow:Timestamp]-(27 * 60 * 60))"]
IfCondition6=(#FP3# = 2)
IfTrueAction6=[!SetOption MeasureDiffFP3 Formula "([MeasureThen:Timestamp]-[MeasureNow:Timestamp]-(26 * 60 * 60))"]
IfFalseAction6=[!SetOption MeasureDiffFP3 Formula "([MeasureThen:Timestamp]-[MeasureNow:Timestamp]-(27 * 60 * 60))"]
IfCondition7=(#FP3# = 3)
IfTrueAction7=[!SetOption MeasureDiffFP3 Formula "([MeasureThen:Timestamp]-[MeasureNow:Timestamp]-(25 * 60 * 60))"]
IfFalseAction7=[!SetOption MeasureDiffFP3 Formula "([MeasureThen:Timestamp]-[MeasureNow:Timestamp]-(27 * 60 * 60))"]
IfCondition8=(#FP3# = 0)
IfTrueAction8=[!SetOption MeasureDiffFP3 Formula "([MeasureThen:Timestamp]-[MeasureNow:Timestamp]-(27 * 60 * 60))"]
I corrected it to this.
Code: Select all
IfCondition5=(#FP3# = 1)
IfTrueAction5=[!SetOption MeasureDiffFP3 Formula "([MeasureThen:Timestamp]-[MeasureNow:Timestamp]-(28 * 60 * 60))"]
IfCondition6=(#FP3# = 2)
IfTrueAction6=[!SetOption MeasureDiffFP3 Formula "([MeasureThen:Timestamp]-[MeasureNow:Timestamp]-(26 * 60 * 60))"]
IfCondition7=(#FP3# = 3)
IfTrueAction7=[!SetOption MeasureDiffFP3 Formula "([MeasureThen:Timestamp]-[MeasureNow:Timestamp]-(25 * 60 * 60))"]
IfCondition8=(#FP3# = 0)
IfTrueAction8=[!SetOption MeasureDiffFP3 Formula "([MeasureThen:Timestamp]-[MeasureNow:Timestamp]-(27 * 60 * 60))"]