Here is one approach. I don't use CoreTemp, so I did my example with Speedfan. The approach would be the same though.
Code: Select all
[Rainmeter]
Update=1000
[Variables]
MyTemp0=4
TempUnit=C
[MeasureMyTemp0]
Measure=Plugin
Plugin=SpeedFanPlugin
SpeedFanType=TEMPERATURE
SpeedFanNumber=#MyTemp0#
SpeedFanScale=#TempUnit#
UpdateDivider=10
[MeasureCounter]
Measure=Calc
Formula=(MeasureCounter % 10) + 1
IfEqualValue=1
IfEqualAction=!WriteKeyValue "CPUTemp" "CurrentTemp" "[MeasureMyTemp0]" "#CURRENTPATH#TempOutput.txt"
DynamicVariables=1
[MeterOne]
Meter=Image
W=25
H=25
SolidColor=101,196,96,255
What we are doing is getting the temperature every 10 seconds with the Speedfan plugin measure, using an Update of 1000 and an UpdateDivider of 10. (side note: I'm not sure it makes sense in your code to have an Update of 100, as it seems to me that having the skin check the temperature every 100 milliseconds is a bit of overkill)
Then we need a way to have the !WriteKeyValue bang triggered to write the value to the local file. So we create a Calc measure using a "counter" to execute the bang every 10 seconds (to be more or less in sync with the result of the Speedfan measure).
Then we just use the !WriteKeyValue bang to output the current value of [MeasureMyTemp0] to a text file in the same folder as the skin. Note that the file must already exist (TempOutput.txt) and be either somewhere in the \Skins path or %APPDATA%\Rainmeter path.
TempOutput.txt will look like this, with the CurrentTemp= line updated to the current value every 10 seconds.