PDA

View Full Version : [ubuntu] Conky



elmnas
August 28th, 2009, 03:49 PM
Hi Guys I have installed im-sensors also conky but what need I to write go get the information of my fans in the conky?
I tried. Please help me out.

Fan1: $alignr${execi 300 /usr/bin/sensors | grep fan1 | cut -c11-18}
Fan2: $alignr${execi 300 /usr/bin/sensors | grep fan2 | cut -c11-18}
HD Temp: $alignr${execi 60 hddtemp /dev/hda | cut -c28-29}C
CPU Temp: $alignr${execi 60 /usr/bin/sensors | grep 'CPU Temp' | cut -c15-16}
MB Temp: $alignr${execi 60 /usr/bin/sensors | grep 'M/B Temp' | cut -c15-16}C


if I wrote sensors in terminal I get.




root@Dapeamel:~# sensors
w83627dhg-isa-0290
Adapter: ISA adapter
VCore: +1.11 V (min = +0.00 V, max = +1.74 V)
in1: +11.30 V (min = +0.53 V, max = +3.38 V) ALARM
AVCC: +3.30 V (min = +1.57 V, max = +2.30 V) ALARM
3VCC: +3.30 V (min = +0.14 V, max = +0.77 V) ALARM
in4: +1.42 V (min = +0.00 V, max = +0.26 V) ALARM
in5: +1.70 V (min = +1.42 V, max = +0.58 V) ALARM
in6: +4.61 V (min = +3.69 V, max = +1.74 V) ALARM
VSB: +3.30 V (min = +2.30 V, max = +0.03 V) ALARM
VBAT: +3.30 V (min = +2.34 V, max = +3.36 V)
Case Fan: 1776 RPM (min = 2636 RPM, div = 8) ALARM
CPU Fan: 1016 RPM (min = 649 RPM, div = 16)
Aux Fan: 1061 RPM (min = 5113 RPM, div = 8) ALARM
fan5: 1016 RPM (min = 0 RPM, div = 8) ALARM
Sys Temp: +41.0C (high = +1.0C, hyst = +78.0C) sensor = thermistor
CPU Temp: +41.0C (high = +80.0C, hyst = +75.0C) sensor = diode
AUX Temp: +124.5C (high = +80.0C, hyst = +75.0C) ALARM sensor = thermistor
cpu0_vid: +1.163 V

coretemp-isa-0000
Adapter: ISA adapter
Core 0: +51.0C (high = +82.0C, crit = +100.0C)

coretemp-isa-0001
Adapter: ISA adapter
Core 1: +51.0C (high = +82.0C, crit = +100.0C)

coretemp-isa-0002
Adapter: ISA adapter
Core 2: +49.0C (high = +82.0C, crit = +100.0C)

coretemp-isa-0003
Adapter: ISA adapter
Core 3: +49.0C (high = +82.0C, crit = +100.0C)



please help me.

tgeer43
August 28th, 2009, 05:47 PM
One way to do it would be to direct the output of the 'sensors' command to a file:

${execi 300 /usr/bin/sensors > /tmp/sensors.data}Then use an awk script or some other method to parse out the values you want, format them, and print them. The output of your script will go right back to conky to be displayed.

tgeer