On Sat, 2010-06-26 at 23:58 +0100, Ralph Corderoy wrote:
> Hi Peter,
> 
> > Core 1 Temp: ${execi 8 sensors | grep -A 1 'temp2' | cut -c14-18 | sed
> > '/^$/d'} C $alignr Core 2 Temp: ${execi 8 sensors | grep -A 1 'temp3'
> > | cut -c14-18 | sed '/^$/d'} C
> > 
> > What it does is display  like:
> > 
> > Core 1 temp: +36.0
> > +12.0  C             core 2 Temp: +12.0
> >                              0.0000 C
> 
> That's the correct output for the code above by my reading.  Not the
> Conky bit, I don't know that, but the shell pipeline.
> 
> > The sensors output is as follows: 
> > 
> > acpitz-virtual-0
> > Adapter: Virtual device
> > temp1:       +44.0°C  (crit = +70.0°C)                  
> > 
> > it8712-isa-0290
> > Adapter: ISA adapter
> > in0:         +1.39 V  (min =  +0.00 V, max =  +4.08 V)   
> > in1:         +2.62 V  (min =  +0.00 V, max =  +4.08 V)   
> > in2:         +3.20 V  (min =  +0.00 V, max =  +4.08 V)   
> > in3:         +2.96 V  (min =  +0.00 V, max =  +4.08 V)   
> > in4:         +3.01 V  (min =  +0.00 V, max =  +4.08 V)   
> > in5:         +3.02 V  (min =  +0.00 V, max =  +4.08 V)   
> > in6:         +1.41 V  (min =  +0.00 V, max =  +4.08 V)   
> > in7:         +2.91 V  (min =  +0.00 V, max =  +4.08 V)   
> > Vbat:        +3.17 V
> > fan1:       5400 RPM  (min =    0 RPM)
> > fan2:          0 RPM  (min =    0 RPM)
> > fan3:          0 RPM  (min =    0 RPM)
> > temp1:       +44.0°C  (low  = +65.0°C, high = +70.0°C)  sensor = thermal 
> > diode
> > temp2:       +36.0°C  (low  = +127.0°C, high = +70.0°C)  sensor = thermistor
> > temp3:       +12.0°C  (low  = +127.0°C, high = +70.0°C)  sensor = thermistor
> > cpu0_vid:   +0.000 V
> 
> I don't know why the code is interested in the `temp2' line and the line
> that follows it for "Core 1 Temp", and similarly `temp3' and the line
> after that for "Core 2 Temp".
> 
> Perhaps
> 
>     Core 1 Temp: ${execi 8 sensors | sed -n '/^temp2:  */{s///; s/ .*//p;}'}
>     $alignr
>     Core 2 Temp: ${execi 8 sensors | sed -n '/^temp3:  */{s///; s/ .*//p;}'}
> 
> formatted as Conky demands.
> 
> Cheers,
> Ralph.

Well, I don't understand the last dozen or so characters, but it works. 

Thanks. What a wonderful bunch of gguys you all are.

Peter


-- 
Next meeting: Blandford Forum, Tuesday 2010-07-06 20:00
http://dorset.lug.org.uk/     http://www.linkedin.com/groups?gid=2645413
   Chat: http://www.mibbit.com/?server=irc.blitzed.org&channel=%23dorset
           List info: https://mailman.lug.org.uk/mailman/listinfo/dorset

Reply via email to