I'm trying to make a Digital Clock for my work. My job is a very time-based field (from second-to-second), so it is critical for me to make sure I get this right.
I tried creating a clock that changes colors from xx:xx:00 to xx:xx:15. From #00ff00(green), to it's lightest tint variation of #ebffeb. Then from xx:xx:16 to xx:xx:46, it'll be white, aka #ffffff. From xx:xx:47 to xx:xx:59, to make the clock go from #ffebeb to #ff0000(red).
Color hex references(seek 'shades and tints of #xxxxxx') of green to white and white to red:
https://www.colorhexa.com/00ff00
https://www.colorhexa.com/ff0000
I am trying to make it so that only the SECONDS ( %s string) changes color, and not the entire time (%H and %M). I'd like for the hour and minute to remain ffffff white.
I also am trying to make one for the 5 minute increments, but only from 30 to 45 minutes being green, while 45 to 0 is yellow, and 1 to 15 is red, similar tinting to the hex colors above.
The code I currently am running seems to work for only a second. I'm not sure what I did wrong here. After a minute, it changes to the last TrueAction / TrueCondition (28), and doesn't seem to change.
Here's the code:
Code: Select all
[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1
[Variables]
[MeasureSecond]
Measure=Time
Format=%#S
IfCondition=(MeasureSecond >= 1) || (MeasureSecond < 2)
IfTrueAction=[!SetVariable TextColor "20,255,20,255"][!UpdateMeter *][!Redraw]
IfCondition2=(MeasureSecond >= 2) || (MeasureSecond < 3)
IfTrueAction2=[!SetVariable TextColor "39,255,39,255][!UpdateMeter *][!Redraw]
IfCondition3=(MeasureSecond >= 3) || (MeasureSecond < 4)
IfTrueAction3=[!SetVariable TextColor "59,255,59,255"][!UpdateMeter *][!Redraw]
IfCondition4=(MeasureSecond >= 4) || (MeasureSecond < 5)
IfTrueAction4=[!SetVariable TextColor "78,255,78,255"][!UpdateMeter *][!Redraw]
IfCondition5=(MeasureSecond >= 5) || (MeasureSecond < 6)
IfTrueAction5=[!SetVariable TextColor "98,255,98,255"][!UpdateMeter *][!Redraw]
IfCondition6=(MeasureSecond >= 6) || (MeasureSecond < 7)
IfTrueAction6=[!SetVariable TextColor "118,255,118,255"][!UpdateMeter *][!Redraw]
IfCondition7=(MeasureSecond >= 7) || (MeasureSecond < 8)
IfTrueAction7=[!SetVariable TextColor "137,255,137,255"][!UpdateMeter *][!Redraw]
IfCondition8=(MeasureSecond >= 8) || (MeasureSecond < 9)
IfTrueAction8=[!SetVariable TextColor "157,255,157,255"][!UpdateMeter *][!Redraw]
IfCondition9=(MeasureSecond >= 9) || (MeasureSecond < 10)
IfTrueAction9=[!SetVariable TextColor "177,255,177,255"][!UpdateMeter *][!Redraw]
IfCondition10=(MeasureSecond >= 10) || (MeasureSecond < 11)
IfTrueAction10=[!SetVariable TextColor "196,255,196,255"][!UpdateMeter *][!Redraw]
IfCondition11=(MeasureSecond >= 11) || (MeasureSecond < 12)
IfTrueAction11=[!SetVariable TextColor "216,255,216,255"][!UpdateMeter *][!Redraw]
IfCondition12=(MeasureSecond >= 12) || (MeasureSecond < 13)
IfTrueAction12=[!SetVariable TextColor "235,255,235,255"][!UpdateMeter *][!Redraw]
IfCondition13=(MeasureSecond >= 13) || (MeasureSecond < 14)
IfTrueAction13=[!SetVariable TextColor "255,255,255,255"][!UpdateMeter *][!Redraw]
IfCondition14=(MeasureSecond >= 14) || (MeasureSecond < 15)
IfTrueAction14=[!SetVariable TextColor "255,255,255,255"][!UpdateMeter *][!Redraw]
IfCondition15=(MeasureSecond >= 15) || (MeasureSecond < 45)
IfTrueAction15=[!SetVariable TextColor "255,255,255,255"][!UpdateMeter *][!Redraw]
IfCondition16=(MeasureSecond >= 47) || (MeasureSecond < 48)
IfTrueAction16=[!SetVariable TextColor "255,235,235,255"][!UpdateMeter *][!Redraw]
IfCondition17=(MeasureSecond >= 48) || (MeasureSecond < 49)
IfTrueAction17=[!SetVariable TextColor "255,216,216,255"][!UpdateMeter *][!Redraw]
IfCondition18=(MeasureSecond >= 49) || (MeasureSecond < 50)
IfTrueAction18=[!SetVariable TextColor "255,196,196,255"][!UpdateMeter *][!Redraw]
IfCondition19=(MeasureSecond >= 50) || (MeasureSecond < 51)
IfTrueAction19=[!SetVariable TextColor "255,177,177,255"][!UpdateMeter *][!Redraw]
IfCondition20=(MeasureSecond >= 51) || (MeasureSecond < 52)
IfTrueAction20=[!SetVariable TextColor "255,157,157,255"][!UpdateMeter *][!Redraw]
IfCondition21=(MeasureSecond >= 52) || (MeasureSecond < 53)
IfTrueAction21=[!SetVariable TextColor "255,137,137,255"][!UpdateMeter *][!Redraw]
IfCondition22=(MeasureSecond >= 53) || (MeasureSecond < 54)
IfTrueAction22=[!SetVariable TextColor "255,118,118,255"][!UpdateMeter *][!Redraw]
IfCondition23=(MeasureSecond >= 54) || (MeasureSecond < 55)
IfTrueAction23=[!SetVariable TextColor "255,98,98,255"][!UpdateMeter *][!Redraw]
IfCondition24=(MeasureSecond >= 55) || (MeasureSecond < 56)
IfTrueAction24=[!SetVariable TextColor "255,78,78,255"][!UpdateMeter *][!Redraw]
IfCondition25=(MeasureSecond >= 56) || (MeasureSecond < 57)
IfTrueAction25=[!SetVariable TextColor "255,59,59,255"][!UpdateMeter *][!Redraw]
IfCondition26=(MeasureSecond >= 57) || (MeasureSecond < 58)
IfTrueAction26=[!SetVariable TextColor "255,39,39,255"][!UpdateMeter *][!Redraw]
IfCondition27=(MeasureSecond >= 58) || (MeasureSecond < 59)
IfTrueAction27=[!SetVariable TextColor "255,20,20,255"][!UpdateMeter *][!Redraw]
IfCondition28=(MeasureSecond >= 59) || (MeasureSecond < 0)
IfTrueAction28=[!SetVariable TextColor "255,255,255,255"][!UpdateMeter *][!Redraw]
DynamicVariables=1
[MeasureTime]
Measure=Time
Format=%#I:%M:%S
[MeterTime]
Meter=String
MeasureName=MeasureTime
Y=0R
FontSize=30
FontColor=#TextColor#
SolidColor=0,0,0,1
AntiAlias=1
DynamicVariables=1
Any advice, I'd be ever so grateful!
Thank you so much in advance!