xenium wrote:I would like to know if it is possible that when the temperature is displayed, it (the font) starts to color from bottom to top (like bar meter) and then stop
Actually it is, based on
FreeRaider's idea.
Thanks FreeRaider for that great idea!!!
First you need an ActionTimer plugin measure. Add it as you see below:
Code: Select all
[MeasureSlide]
Measure=Plugin
Plugin=ActionTimer
ActionList1=Repeat Up,20,20
Up=[!SetVariable W "(Clamp((#W#+5),0,100))"]#U#
DynamicVariables=1
This measure uses two variables, which have to be added to the [Variables] section, beside the existing variables:
Code: Select all
[Variables]
...
W=0
U=[!UpdateMeasure "MeasureSlide"][!UpdateMeter "MeterTemp"][!UpdateMeter "Uptime"][!Redraw]
Color=255,240,0
The last variable (Color) is the color code which you'd like to use to color the temperature value.
You also have to add the following option to the [MeterTemp] meter:
Code: Select all
[MeterTemp]
...
InlineSetting=GradientColor | 90 | #Color# ; 0.0 | #Color# ; (#W#/100) | [#TempColor[&MeasureColor]] ; (#W#/100) | [#TempColor[&MeasureColor]] ; 1.0
(Again, just add this option, without modifying the existing ones).
This last option colors the temperature value from its base up to a point defined by the W variable. Because the value of this variable increases from 0 to 100 (once the [MeasureTemp] WebParser measure gets the value - see below the option required to do this), the temperature value is colored progresively.
The last needed thing is to start the [MeasureSlide] measure to run, once the [MeasureTemp] measure gets the value of the temperature. For this you have to add the following option to the [MeasureTemp] measure:
Code: Select all
[MeasureTemp]
...
FinishAction=[!Delay "1000"][!CommandMeasure "MeasureSlide" "Execute 1"]
The !Delay bang above is used to postpone the coloring with one second - you can renounce to it, if you don't want it.
I just want to mention one more thing: both options used in the [Rainmeter] section are deprecated. AppVersion isn't needed any more and Author has been moved to the [Metadata] section. You also should have to move it (although leaving them there isn't a problem).