Strange numbers on my Conky display

Add functionality to your desktop
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
jedi-jinx

Strange numbers on my Conky display

Post by jedi-jinx »

Hi everyone,

I recently installed Mint 9 and am learning my way around. I added Conky and after tinkering with it a bit, got it working the way I wanted. Part of it displays my CPU and Motherboard temperatures. It worked like a charm the day I was tinkering with it--even through full reboots. However, the next day I noticed some additional numbers displayed with the temperature readings. I didn't make any adjustments to the configurations and haven't seen anything that would cause this display. Perhaps one of you might share some insight.

Here's what my display looked like before when I was taking screenshots:
Image

Here's what my display looks like now:
Image

Here is my Conky code from the .conkyrc file:

Code: Select all

######################
# - Conky settings - #
######################
update_interval 1
total_run_times 0
net_avg_samples 1
cpu_avg_samples 1

imlib_cache_size 0
double_buffer yes
no_buffers yes

#####################
# - Text settings - #
#####################
use_xft yes
xftfont Liberation Sans:size=8
override_utf8_locale yes
text_buffer_size 2048

#############################
# - Window specifications - #
#############################
own_window_class Conky
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

alignment top_right
gap_x 20
gap_y 0
minimum_size 180 1200
maximum_width 250

default_bar_size 60 8

#########################
# - Graphics settings - #
#########################
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
stippled_borders 0
border_width 0

default_color 008000

color0 green
color1 FF7F50
color2 white
color3 B22222

# Add spaces to keep things from moving about?  This only affects certain objects.
use_spacer none

TEXT
############
# - DATE - #
############

${alignc}${font :size=30}${color2}${time %H:%M}${font}${color}
${font :size=10:style=bold}${color3}${alignr}${time %d %B %Y}       
${alignr}${time %A}${color}${font}       


##############
# - SYSTEM - #
##############
${font :size=10:style=bold}SYSTEM${font} ${hr 2}
${voffset 8}${font Poky:size=16}${color3}p${color}${font}   ${voffset -6}User:  ${alignr 20}${color2}${exec users | cut -d " " -f1}@${nodename}${color}
${voffset 3}	    Release:${alignr 20}${color2}${pre_exec lsb_release -i -s} ${pre_exec lsb_release -r -s} (${pre_exec lsb_release -c -s})${color}
${voffset 3}	    Kernel:  ${alignr 20}${color2}${kernel}${color}
${voffset 3}	    Uptime: ${alignr 20}${color2}${uptime}${color}
${voffset 3}	    Desktop: ${alignr 20}${color2}${desktop_name}${color}
${voffset 8}${font Weather:size=18}${color3}xyz${color}${font}   ${color white}CPU Temperature: ${exec sensors |grep temp | cut -c13-40}
${voffset 3}          ${color FF0000}${exec sensors | grep 'MB' | cut -c1-50}
${voffset 8}${font Poky:size=16}${color3}u${color}${font}   ${color FFA500}CPU1 ${alignc}${cpu cpu1}%${alignr}${cpubar cpu1 10,60}
${voffset 3}           ${color FFFF00}CPU2 ${alignc}${cpu cpu2}%${alignr}${cpubar cpu2 10,60}
${voffset 3}           ${color 008000}CPU3 ${alignc}${cpu cpu3}%${alignr}${cpubar cpu3 10,60}
${voffset 3}           ${color 0000FF}CPU4 ${alignc}${cpu cpu4}%${alignr}${cpubar cpu4 10,60}
${voffset 3}           ${color 4B0082}RAM    ${alignc}${mem}/${memmax}${alignr}${membar 10,60}
${voffset 3}           ${color EE82EE}SWAP   ${alignc}$swap / $swapmax ($swapperc%)${alignr}${swapbar 10,60}${color}

##############
# - DRIVES - #
##############
${font :size=10:style=bold}DISK DRIVES${font} ${hr 2}
${voffset 8}${font Poky:size=15}${color3}y${color}${font}${offset 6}${voffset -7}Root: ${color3}${voffset 2}${fs_bar 4,20}${alignr}${color2}${fs_used} / ${fs_size} (${fs_used_perc}%)${color}
${voffset 3}           Storage: ${color3}${voffset 2}${fs_bar 4,20 /media/storage}${alignr}${color2}${fs_used /media/storage} / ${fs_size /media/storage} (${fs_used_perc /media/storage}%)${color}
${voffset 3}           2nd OS: ${color3}${voffset 2}${fs_bar 4,20 /media/b049b9e6-aa56-4e56-8361-8b9a9182a024}${alignr}${color2}${fs_used /media/b049b9e6-aa56-4e56-8361-8b9a9182a024} / ${fs_size /media/b049b9e6-aa56-4e56-8361-8b9a9182a024} (${fs_used_perc /media/b049b9e6-aa56-4e56-8361-8b9a9182a024}%)${color}
${voffset 3}           SSD: ${color3}${voffset 2}${fs_bar 4,20 /media/5E80C03A80C01B03}${alignr}${color2}${fs_used /media/5E80C03A80C01B03} / ${fs_size /media/5E80C03A80C01B03} (${fs_used_perc /media/5E80C03A80C01B03}%)${color}
${voffset 3}           Think_Bank: ${color3}${voffset 2}${fs_bar 4,20 /media/Think_Bank}${alignr}${color2}${fs_used /media/Think_Bank} / ${fs_size /media/Think_Bank} (${fs_used_perc /media/Think_Bank}%)${color}
${voffset 3}           8GB Stick: ${color3}${voffset 2}${fs_bar 4,20 /media/8GBJUMPER}${alignr}${color2}${fs_used /media/8GBJUMPER} / ${fs_size /media/8GBJUMPER} (${fs_used_perc /media/8GBJUMPER}%)${color}

###############
# - NETWORK - #
###############
${voffset 8}${font :size=10:style=bold}NETWORK${font} ${hr 2}
${voffset 2}${color3}${voffset 2}${font PizzaDude Bullets:size=14}O${color}${font}   ${voffset -2}Up: ${upspeed eth0} kb/s ${alignr}${color2}${upspeedgraph eth0 10,60}${color}
${voffset 2}${color3}${voffset 4}${font PizzaDude Bullets:size=14}U${color}${font}   ${voffset -2}Down: ${downspeed eth0} kb/s ${alignr}${color2}${downspeedgraph eth0 10,60}${color}
${voffset 2}${color3}${voffset 6}${font Poky:size=14}w${color}${font}   ${voffset -8}Local IP: ${color2}${alignr}${addr eth0}${color}
${voffset 4}          External IP: ${color2}$alignr${execi 3600wget -O - http://whatismyip.org/ | tail}${color}

#################
# - PROCESSES - #
#################
${voffset 8}${font :size=10:style=bold}PROCESS${font} ${hr 2}
${voffset 5}${font StyleBats:size=16}${color3}q${color}${font}   ${voffset -5}${color2}Highest CPU $alignr CPU%     MEM%
          ${color FF0000}${top name 1}$alignr${top cpu 1}       ${top mem 1}  
          ${color FFA500}${top name 2}$alignr${top cpu 2}       ${top mem 2}  
          ${color FFFF00}${top name 3}$alignr${top cpu 3}       ${top mem 3}  
          ${color 008000}${top name 4}$alignr${top cpu 4}       ${top mem 4}  
          ${color 0000FF}${top name 5}$alignr${top cpu 5}       ${top mem 5}  
          ${color 4B0082}${top name 6}$alignr${top cpu 6}       ${top mem 6}  
          ${color EE82EE}${top name 7}$alignr${top cpu 7}       ${top mem 7}  ${color}
${voffset 5}${font StyleBats:size=16}${color3}k${color}${font}   ${voffset -5}${color2}Highest MEM $alignr CPU%     MEM%
          ${color FF0000}${top_mem name 1}$alignr${top_mem cpu 1}       ${top_mem mem 1}  
          ${color FFA500}${top_mem name 2}$alignr${top_mem cpu 2}       ${top_mem mem 2}  
          ${color FFFF00}${top_mem name 3}$alignr${top_mem cpu 3}       ${top_mem mem 3}  
          ${color 008000}${top_mem name 4}$alignr${top_mem cpu 4}       ${top_mem mem 4}  
          ${color 0000FF}${top_mem name 5}$alignr${top_mem cpu 5}       ${top_mem mem 5}  
          ${color 4B0082}${top_mem name 6}$alignr${top_mem cpu 6}       ${top_mem mem 6}  
          ${color EE82EE}${top_mem name 7}$alignr${top_mem cpu 7}       ${top_mem mem 7}  ${color}

Thanks. I appreciate any feedback and help.
~Shawn
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
RedWagon

Re: Strange numbers on my Conky display

Post by RedWagon »

I think this line is your problem:

Code: Select all

${voffset 8}${font Weather:size=18}${color3}xyz${color}${font}   ${color white}CPU Temperature: ${exec sensors |grep temp | cut -c13-40}
try running this:

Code: Select all

sensors |grep temp | cut -c13-40
in a terminal window and see if those numbers show up.
RedWagon

Re: Strange numbers on my Conky display

Post by RedWagon »

I did a few tests to try and it looks like I would have a similar issue if I had that command in my .conkyrc. If you add an extra | grep crit to the end of the command getting your temps it should fix it. (see the last command I ran)

Code: Select all

verdow@techcage-07 ~ $ sensors
acpitz-virtual-0
Adapter: Virtual device
temp1:       +30.0°C  (crit = +75.0°C)                  

k8temp-pci-00c3
Adapter: PCI adapter
Core0 Temp:  +47.0°C                                    
Core0 Temp:  +55.0°C                                    
Core1 Temp:  +48.0°C                                    
Core1 Temp:  +55.0°C                                    

verdow@techcage-07 ~ $ sensors | grep temp
temp1:       +30.0°C  (crit = +75.0°C)                  
k8temp-pci-00c3
verdow@techcage-07 ~ $ sensors | grep temp | cut -c13-40
 +30.0°C  (crit = +75.0°C)
0c3
verdow@techcage-07 ~ $ sensors | grep temp | cut -c13-40 | grep crit
 +30.0°C  (crit = +75.0°C)
verdow@techcage-07 ~ $ 
jedi-jinx

[SOLVED]--Re: Strange numbers on my Conky display

Post by jedi-jinx »

Thanks Red Wagon!

Your solution to add |grep crit to the end of that line worked like a charm. A bit confusing as the crit level was listed at part of the original code, but I'm glad it works nicely now! Thanks much.
RedWagon

Re: Strange numbers on my Conky display

Post by RedWagon »

A bit confusing as the crit level was listed at part of the original code,
If you have any questions, this is the place to ask.
What grep crit does is look at the output from the last command and then filters out all lines except ones that contain crit.
Locked

Return to “Compiz, Conky, Docks & Widgets”