I feel like an idiot for having to ask this but I have been searching for hours, looking at examples, reading FAQ's and MAN pages for and I cannot find the answer that I need.
I what I am trying to do is to add a sensor to a theme that I am creating. What I want is to see the temperature for each core for an AMD Athlon 64 X2. I have no problem getting the system temp to work in a theme. Also, I know that my sensors are working properly as exhibited below:
Code:
sqdnguns@JARHEAD ~$ sensors
k8temp-pci-00c3
Adapter: PCI adapter
Core0 Temp:
+40°C
Core1 Temp:
+38°C
it8716-isa-0290
Adapter: ISA adapter
VCore: +1.10 V (min = +0.00 V, max = +4.08 V)
VDDR: +2.48 V (min = +0.00 V, max = +4.08 V)
+3.3V: +1.78 V (min = +0.00 V, max = +4.08 V)
+5V: +5.59 V (min = +0.00 V, max = +6.85 V)
+12V: +11.97 V (min = +0.00 V, max = +16.32 V)
in5: +1.17 V (min = +0.00 V, max = +4.08 V)
in6: +2.86 V (min = +0.00 V, max = +4.08 V)
5VSB: +4.92 V (min = +0.00 V, max = +5.13 V)
VBat: +3.07 V
fan1: 1442 RPM (min = 0 RPM)
fan2: 1092 RPM (min = 0 RPM)
temp1: +35°C (low = +127°C, high = +65°C) sensor = diode
temp2: +40°C (low = +127°C, high = +127°C) sensor = thermistor
temp3: +25°C (low = +127°C, high = +127°C) sensor = thermistor
vid: +1.525 V
I have come across a few themes that have the following but I get squat for my PC.
Code:
text x=20 y=195 value="Core 0 Temp:"
text x=100 y=195 sensor=program program="sensors | grep 'Core 0' | cut -d' ' -f8 | cut -d'+' -f2" interval=1000
text x=20 y=210 value="Core 1 Temp:"
text x=100 y=210 sensor=program program="sensors | grep 'Core 1' | cut -d' ' -f8 | cut -d'+' -f2" interval=1000
Code:
text x=98 y=30 sensor=program program="sensors | grep temp2: | awk '{ print $2 }' | sed 's/+//' | line 1" align=right interval=500
text x=98 y=30 sensor=program program="sensors | grep temp1: | awk '{ print $2 }' | sed 's/+//' | line 2" align=right interval=500
I would appreciate if anyone can show me what I am doing wrong.
Thanks!!