Conky setup thread

Message
Author
rokytnji

Re: Conky setup thread

#121 Postby rokytnji » Mon Mar 14, 2011 12:26 am

http://i51.tinypic.com/2m4d0nb.jpg

http://i56.tinypic.com/14183lt.jpg

Gotta keep things to a minimum on this old IBM a22m Laptop. Notice ram available and ram usage.

Code: Select all

#avoid flicker
double_buffer yes

#own window to run simultanious 2 or more conkys
own_window  yes
own_window_transparent yes
own_window_type normal
own_window_hints undecorate,sticky,skip_taskbar,skip_pager

#borders
draw_borders no
border_margin 3

#shades
draw_shades no

#position
gap_x 0
gap_y 4
alignment top_left

#behaviour
update_interval 1

#colour
default_color 8f8f8f
#default_shade_color 000000
own_window_colour 262729

#font
use_xft yes
xftfont sans:size=7

# Force UTF8? note that UTF8 support required XFT
override_utf8_locale yes

#to prevent window from moving
use_spacer none
minimum_size 1024 0

#mpd
#mpd_host localhost
#mpd_port 6600
#e0e0e0 color
TEXT
${alignc}Date: ${color 8f8f8f}${time %d/%m/%y}${color}  Time: ${color 8f8f8f}${time %H:%M}${color}  |  Kernel: ${color 8f8f8f}$kernel${color}  Uptime: ${color 8f8f8f}${uptime_short}${color}  |  Cpu: ${color 8f8f8f}${cpu}%${color}  Ram: ${color 8f8f8f}${memperc}%${color}  Swap: ${color 8f8f8f}${swapperc}%${color}  Disk: ${color 8f8f8f}${fs_used_perc /}%${color} Home: ${color 8f8f8f}${fs_used_perc /home}%${color} | Cpu: ${color 8f8f8f}${acpitemp}°C${color}  Disk: ${color 8f8f8f}${acpitemp}°C${color}  |  ${if_existing /proc/net/route wlan0}Signal: ${color 8f8f8f}${wireless_link_qual wlan0}%${color}  Up: ${color 8f8f8f}${upspeed wlan0} kb/s${color}  Down: ${color 8f8f8f}${downspeed wlan0} kb/s${color}${else}${if_existing /proc/net/route eth0}Up: ${color 8f8f8f}${upspeed eth0} kb/s${color}  Down: ${color 8f8f8f}${downspeed eth0} kb/s${color}${endif}${else}Network Unavailable${endif}${alignc}


Simple keeps the ram usage down.

User avatar
smilliken
Forum Guide
Forum Guide
Posts: 2020
Age: 57
Joined: Tue Feb 06, 2007 11:47 pm

Re: Conky setup thread

#122 Postby smilliken » Sat Apr 09, 2011 1:43 am

I came across these sports conkys that created with python. I seem to be only getting some of the information and just wonder what I might be missing. Any help appreciated.

baseball.py
#!/usr/bin/env python

import os

filename = "http://scores.espn.go.com/mlb/standings | egrep -A17 'American League'"
cmd = os.popen("lynx -nonumbers -dump %s" % filename)

output = cmd.read()
cmd.close()
print output


Conky file
# --- Window Layout & Options --- #
own_window yes
own_window_colour brown
own_window_transparent yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
use_xft yes
alignment bottom_right
gap_x 14
gap_y 350
# --- Window Layout & Options --- #
own_window yes
own_window_colour brown
own_window_transparent yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
use_xft yes
alignment bottom_right
gap_x 14
gap_y 350
# --- Colours, Sizes, Fonts & Margins --- #
update_interval 1
maximum_width 350
stippled_borders 3
border_inner_margin 9
border_width 9
default_color grey

# --- Text --- #
draw_outline no
draw_borders no
font Monospace:size=8:weight=bold
uppercase no
draw_shades no

TEXT
${texeci 3600 feh --bg-scale "/usr/share/wallpapers/MEPIS11.0-wallpaper.jpg"}


${color lightblue}NHL ${hr 2}$color
${font freemono:size=10}${color white}${execi 30 python ~/.conky/conkyparts/hockey.py}
You do not have the required permissions to view the files attached to this post.
There is no "Ctrl+Z" in life!
Acer 7551G MX-15
Dell 1525, MX15 XFCE4 & Win 10
HP DV4-1118 Mepis 12 4.14 & Win 10
HP CP1215/Brother DCP-7065DN
Linux User# 4523410

User avatar
Stevo
Forum Veteran
Forum Veteran
Posts: 11476
Age: 58
Joined: Fri Dec 15, 2006 8:07 pm

Re: Conky setup thread

#123 Postby Stevo » Sat Apr 09, 2011 5:02 pm

Where's the origin of these conky files? I see that the python file needs at least the "lynx" browser installed, probably other python-modules also.

User avatar
smilliken
Forum Guide
Forum Guide
Posts: 2020
Age: 57
Joined: Tue Feb 06, 2007 11:47 pm

Re: Conky setup thread

#124 Postby smilliken » Sat Apr 09, 2011 5:19 pm

The "py" file is located in /.conky/conkyparts/. The actual conky file is in /home. as .conkyrc1

I have installed lynx.

I got the info from the Ubuntu forums and the image that was displayed with the file info, exactly the same as mine, showed all of the teams in the eastern division. Mine only shows a portion of them.

I tried the same layout for the NHL and again only got the first couple of lines in the standings.
There is no "Ctrl+Z" in life!
Acer 7551G MX-15
Dell 1525, MX15 XFCE4 & Win 10
HP DV4-1118 Mepis 12 4.14 & Win 10
HP CP1215/Brother DCP-7065DN
Linux User# 4523410

User avatar
Stevo
Forum Veteran
Forum Veteran
Posts: 11476
Age: 58
Joined: Fri Dec 15, 2006 8:07 pm

Re: Conky setup thread

#125 Postby Stevo » Sat Apr 09, 2011 6:26 pm

smilliken wrote:The "py" file is located in /.conky/conkyparts/. The actual conky file is in /home. as .conkyrc1

I have installed lynx.

I got the info from the Ubuntu forums and the image that was displayed with the file info, exactly the same as mine, showed all of the teams in the eastern division. Mine only shows a portion of them.

I tried the same layout for the NHL and again only got the first couple of lines in the standings.



Try running your python file on the command line:

python baseball.py

If you get the correct display, then it's something in the conky window settings.

User avatar
smilliken
Forum Guide
Forum Guide
Posts: 2020
Age: 57
Joined: Tue Feb 06, 2007 11:47 pm

Re: Conky setup thread

#126 Postby smilliken » Sat Apr 09, 2011 11:25 pm

Stevo wrote:
smilliken wrote:The "py" file is located in /.conky/conkyparts/. The actual conky file is in /home. as .conkyrc1

I have installed lynx.

I got the info from the Ubuntu forums and the image that was displayed with the file info, exactly the same as mine, showed all of the teams in the eastern division. Mine only shows a portion of them.

I tried the same layout for the NHL and again only got the first couple of lines in the standings.



Try running your python file on the command line:

python baseball.py

If you get the correct display, then it's something in the conky window settings.


Yup, that works just as it should. Must be the conky file.

Edit: don't see anything in the file to stop it from displaying everything.
There is no "Ctrl+Z" in life!
Acer 7551G MX-15
Dell 1525, MX15 XFCE4 & Win 10
HP DV4-1118 Mepis 12 4.14 & Win 10
HP CP1215/Brother DCP-7065DN
Linux User# 4523410

User avatar
Kent88
Posts: 133
Joined: Wed Oct 24, 2007 2:04 am

Re: Conky setup thread

#127 Postby Kent88 » Tue Apr 12, 2011 2:10 am

Just what I was looking for, that baseball script looks nifty. I haven't worked with python at all, is there anyone out there that could modify it to not only show standings, but display a team's scoreboard too? for the MN twins in the american league central division.

I'd also like the same thing in an nfl flavor. NFC north, mn vikings.

Stevo was nice enough to find this link: http://ubuntuforums.org/showthread.php? ... b&t=765763
What would be ideal would be to have the teams in the division & their records above a simple scoreboard that showed points scored each inning/quarter. Like this (roughly, delete 'INN' and replace with whitespace):

KC 3-1
CWS 2-1
MIN 1-3
CLE 1-2
DET 1-2
INN 1 2 3 4 5 6 7 8 9 R H E
MIN 0 0 1 0 2 0 0 0 1 4 10 2
TOR 0 0 0 1 0 1 0 0 1 3 8 2

But anything close to that would be nice. If anyone could build this or point me in the right direction to make this up myself, I'd appreciate it. I would do it myself but I haven't dealt with python or inserting this kind of thing into conky.

User avatar
smilliken
Forum Guide
Forum Guide
Posts: 2020
Age: 57
Joined: Tue Feb 06, 2007 11:47 pm

Re: Conky setup thread

#128 Postby smilliken » Tue Apr 12, 2011 3:06 pm

I copied the lines into a new conky I'm working and it work perfectly.

Yes, the Unbuntu forums have a ton of posts with conky info. There are some very elaborate scripts and wild looking conky's. Sky seems to be the limit.
There is no "Ctrl+Z" in life!
Acer 7551G MX-15
Dell 1525, MX15 XFCE4 & Win 10
HP DV4-1118 Mepis 12 4.14 & Win 10
HP CP1215/Brother DCP-7065DN
Linux User# 4523410

User avatar
smilliken
Forum Guide
Forum Guide
Posts: 2020
Age: 57
Joined: Tue Feb 06, 2007 11:47 pm

Re: Conky setup thread

#129 Postby smilliken » Sat Dec 03, 2011 4:13 pm

Looking for some help with the temp of the CPU's in conky. It was working, did some changes and now it just shows 0 degrees Celsius. lm-sensors is installed and has been run:

Code: Select all

Scott@Mepis11:~$ sensors
radeon-pci-0100
Adapter: PCI adapter
temp1:       +51.5°C                                   

atk0110-acpi-0
Adapter: ACPI interface
Vcore Voltage:      +1.08 V  (min =  +0.80 V, max =  +1.60 V)
 +3.3 Voltage:      +3.36 V  (min =  +2.97 V, max =  +3.63 V)
 +5 Voltage:        +5.09 V  (min =  +4.50 V, max =  +5.50 V)
 +12 Voltage:      +12.32 V  (min = +10.20 V, max = +13.80 V)
CPU FAN Speed:      907 RPM  (min =  600 RPM)
CHASSIS1 FAN Speed:   0 RPM  (min =  600 RPM)
POWER FAN Speed:      0 RPM  (min =  600 RPM)
CPU Temperature:    +21.0°C  (high = +60.0°C, crit = +95.0°C) 
MB Temperature:     +29.0°C  (high = +45.0°C, crit = +95.0°C) 

coretemp-isa-0000
Adapter: ISA adapter
Core 0:      +28.0°C  (high = +74.0°C, crit = +100.0°C) 
Core 1:      +34.0°C  (high = +74.0°C, crit = +100.0°C) 
Core 2:      +35.0°C  (high = +74.0°C, crit = +100.0°C) 
Core 3:      +35.0°C  (high = +74.0°C, crit = +100.0°C) 

w83667hg-isa-0290
Adapter: ISA adapter
Vcore:       +1.09 V  (min =  +0.00 V, max =  +1.74 V)   
in1:         +1.76 V  (min =  +0.19 V, max =  +0.28 V)   ALARM
AVCC:        +3.38 V  (min =  +2.98 V, max =  +3.63 V)   
+3.3V:       +3.36 V  (min =  +2.98 V, max =  +3.63 V)   
in4:         +1.70 V  (min =  +0.04 V, max =  +1.15 V)   ALARM
in5:         +2.04 V  (min =  +0.02 V, max =  +0.58 V)   ALARM
3VSB:        +3.38 V  (min =  +2.98 V, max =  +3.63 V)   
Vbat:        +3.26 V  (min =  +2.70 V, max =  +3.30 V)   
fan1:          0 RPM  (min = 21093 RPM, div = 64)  ALARM
fan2:        907 RPM  (min = 21093 RPM, div = 16)  ALARM
fan3:          0 RPM  (min = 21093 RPM, div = 64)  ALARM                                                                                 
fan4:          0 RPM  (min = 42187 RPM, div = 32)  ALARM                                                                                 
fan5:          0 RPM  (min = 42187 RPM, div = 32)  ALARM
temp1:       +29.0°C  (high = +48.0°C, hyst = +100.0°C)  sensor = thermistor
temp2:       +21.0°C  (high = +80.0°C, hyst = +75.0°C)  sensor = diode
temp3:       +26.5°C  (high = +80.0°C, hyst = +75.0°C)  sensor = thermistor
cpu0_vid:   +3.100 V


Conky command:

Code: Select all

${voffset 4}${font DroidSans:bold:size=8.5}${color4}CPU${offset 8}${color8}${voffset -2}${hr 2}${font}
#
${font Arial:bold:size=8.25}${color #1676B1}${execi 99999 cat /proc/cpuinfo | grep "model name" -m1 | cut -d":" -f2 | cut -d" " -f2- | sed 's#Processor ##'}${font}
${color white}Freq:$color ${freq_g 2}GHz Cpu:${color white}${cpu}% ${color white}Pro's:$color $running_processes/ $processes
${color4}CPU1:
${color4}${cpubar cpu0 3,300} ${color #cc0033}$color
${color}CPU Temp: ${color #FFFF00}${acpitemp}${color}Celsius
${color4}CPU2:
${color4}${cpubar cpu1 3,300} ${color #cc0033}$color
${color}CPU Temp: ${color #FFFF00}${acpitemp}${color}Celsius
${color4}CPU3:
${color4}${cpubar cpu2 3,300} ${color #cc0033}$color
${color}CPU Temp: ${color #FFFF00}${acpitemp}${color}Celsius
${color4}CPU4:
${color4}${cpubar cpu3 3,300} ${color #cc0033}$color
${color}CPU Temp: ${color #FFFF00}${acpitemp}${color}Celsius


Any help much appreciated.
There is no "Ctrl+Z" in life!
Acer 7551G MX-15
Dell 1525, MX15 XFCE4 & Win 10
HP DV4-1118 Mepis 12 4.14 & Win 10
HP CP1215/Brother DCP-7065DN
Linux User# 4523410

rokytnji

Re: Conky setup thread

#130 Postby rokytnji » Sat Dec 03, 2011 5:05 pm

Try

Code: Select all

${execpi 3 sensors | grep "Core 0" | awk '{print $3}' | cut -c2-3}


for cpu temp. It works for me when acpi fails in newer kernels.

conky 1.jpg


Mine is a pentium 4 single core processor. Edit the "Core 0" part to fit your multi processors like "Core 1", "Core 2", etc......

Just another one you can try also that I use in case the above does not work for you.

Code: Select all

${color}Temp: ${color} ${hwmon temp 1}C
You do not have the required permissions to view the files attached to this post.


Return to “antiX”

Who is online

Users browsing this forum: No registered users and 0 guests