Code: Select all
[MeasureGPUTemp]
Measure=Plugin
Plugin=MSIAfterburner.dll
DataSource=GPU temperature
[MeasureGPUTemp45To85]
Measure=Calc
Formula=Abs(MeasureGPUTemp-45)
[MeasureAverageLast64Values1]
Measure=Calc
Formula=MeasureGPUTemp45To85
AverageSize=64
[MeasureAverageLast64Values2]
Measure=Calc
Formula=MeasureAverageLast64Values1
AverageSize=64
[MeasureAverageLast64Values3]
Measure=Calc
Formula=MeasureAverageLast64Values2
AverageSize=64
MinValue=0
MaxValue=40
Basically, you would draw the (MeasureGPUTemp-45) values in the graph (hence the additional Calc measure named MeasureGPUTemp45To85). 45 Celsius will be drawn at 0 in the graph and 85 Celsius will be drawn at 40, thus a MinValue=0 and MaxValue=40 is good to have in MeasureAverageLast64Values3 (i.e. the measure you will actually use as a "data source" for the Line meter, just like in the previous case), in order to instruct Rainmeter to see 40 as the 100% point when drawing the graph line.
NOTE: You can replace the MeasureGPUTemp45To85 formula with Clamp((MeasureGPUTemp-45), 0, 40) so that the measure's value doesn't exceed 40 right from the start. Of course, the Line meter will draw the values that exceed the maximum at the 100% point anyway, as far as I know ... but, well, it doesn't hurt to set things right from the beginning.