(Solved)Conky Configurations

Forum rules
Before you post please read how to get help

(Solved)Conky Configurations

Postby willie42 on Tue Mar 08, 2011 7:46 pm

I am trying to get a nice looking conky set up and I am working on the weather. I am having some issues with it and if someone can shed some light on what I might be doing wrong. I have been working on this for several weeks and I have come up empty on how to get my weather working. If someone would be kind enough to look at it and tell me where I am going wrong or what I am forgetting to do it would be much appreciated. I have installed Conky forcast and I have looked at other threads and just can't see where I am going wrong at. here is my Conky Script.
Code: Select all
background no
use_xft yes
xftfont 123:size=8
xftalpha 0.1
update_interval 0.5
total_run_times 0
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 250 5
maximum_width 400
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color gray
default_shade_color green
default_outline_color green
alignment top_right
gap_x 10
gap_y 10
no_buffers no
uppercase no
cpu_avg_samples 2
net_avg_samples 1
override_utf8_locale yes
use_spacer yes
text_buffer_size 256

TEXT

${font openlogos:size=20}${font Arial:size=20}${color Green}Linux Mint
${color red}Debian Edition${font openlogos:size=20}

${voffset -90}
${color white}
${font}
${font Arial:bold:size=10}${color green}SYSTEM ${color white} ${hr 2}
$font${color white}$sysname $kernel $alignr $machine
${color white}${execi 1000 cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'}

Uptime $alignr${uptime}
File System $alignr${fs_type}

${font Arial:bold:size=10}${color green}PROCESSORS ${color white}${hr 2}
$font${color white}CPU1  ${cpu cpu1}% ${cpubar cpu1}
CPU2  ${cpu cpu2}% ${cpubar cpu2}

${font Arial:bold:size=10}${color Green}MEMORY ${color white}${hr 2}
$font${color white}MEM $alignc $mem / $memmax $alignr $memperc%
$membar

${font Arial:bold:size=10}${color green}HDD ${color white}${hr 2}
$font${color white}/home $alignc ${fs_used /home} / ${fs_size /home} $alignr ${fs_free_perc /home}%
${fs_bar /home}
/data $alignc ${fs_used /media/data} / ${fs_size /media/data} $alignr ${fs_free_perc /media/data}%
${fs_bar /media/data}
/Backup-Data $alignc ${fs_used /media/Backup-Data} / ${fs_size /media/Backup-Data} $alignr ${fs_free_perc /media/Backup-Data}%
${fs_bar /media/Backup-Data}
/backup-home $alignc ${fs_used /media/backup-home} / ${fs_size /media/backup-home} $alignr ${fs_free_perc /media/backup-home}%
${fs_bar /media/backup-home}

${font Arial:bold:size=10}${color green}TOP PROCESSES ${color white}${hr 2}
${color white}$font${top_mem name 2}${alignr}${top mem 2} %
$font${top_mem name 3}${alignr}${top mem 3} %
$font${top_mem name 4}${alignr}${top mem 4} %
$font${top_mem name 5}${alignr}${top mem 5} %

${font Arial:bold:size=10}${color Green}NETWORK ${color white}${hr 2}
$font${color white}IP on eth0 $alignr ${addr eth1}

Down $alignr ${downspeed eth1} kb/s
Up $alignr ${upspeed eth1} kb/s

Downloaded: $alignr  ${totaldown eth1}
Uploaded: $alignr  ${totalup eth1}

${font Arial:bold:size=10}${color Green}WEATHER ${color white}${hr 2}
${font}${color white}

${voffset -25}${font Weather:size=45}${execi 1800 conkyForecast –location=37830:4:US –datatype=WF}
${alignc 22}${voffset -60}${font Arial:bold:size=10}${color DimGray}${execi 1800 conkyForecast –location=37830:4:US –datatype=HT}
$font${voffset -55}${alignr}${color white}Wind: ${execi 1800 conkyForecast –location=37830:4:US –datatype=WS}
${alignr}${color white}Humidity: ${execi 1800 conkyForecast –location=37830:4:US –datatype=HM}
${alignr}${color white}Precipitation: ${execi 1800 conkyForecast –location=37830:4:US –datatype=PC}

${color white}Sunrise: $alignr${execi 1800 conkyForecast –location=37830:4:US –datatype=SR}${alignr}
Sunset: $alignr${execi 1800 conkyForecast –location=37830:4:US –datatype=SS}$color




Thank you in advance. :D
Attachments
Screenshot.png
Screenshot.png (114.48 KiB) Viewed 701 times
Last edited by willie42 on Wed Mar 09, 2011 2:45 pm, edited 1 time in total.
Comptia A+ Certified Technician
Comptia Network + Certified Technician
You can not have Success without Failures.
User avatar
willie42
Level 7
Level 7
 
Posts: 1975
Joined: Tue Jun 22, 2010 7:52 pm
Location: Oak Ridge, TN USA

Linux Mint is funded by ads and donations.
 

Re: Conky Configurations

Postby Habitual on Tue Mar 08, 2011 9:06 pm

I got this.

Check your PMs.
If you can't find an answer at Google, you must be typing in Braille.
User avatar
Habitual
Level 10
Level 10
 
Posts: 3467
Joined: Sun Nov 21, 2010 8:31 pm
Location: Youngstown, Ohio

Re: Conky Configurations

Postby edwardr on Tue Mar 08, 2011 9:49 pm

I'm putting the kids to bed so don't have time to look through your code, but here's mine that works pretty good for me. Maybe you can find a hint here: http://forums.linuxmint.com/viewtopic.php?f=60&t=30209&start=60#p326232
The optimist proclaims that we live in the best of all possible worlds; and the pessimist fears this is true
User avatar
edwardr
Level 4
Level 4
 
Posts: 240
Joined: Thu Jun 03, 2010 1:09 pm
Location: USA - Texas

Re: Conky Configurations

Postby Habitual on Tue Mar 08, 2011 10:28 pm

willie:

The last 7 lines of your code should read like this:
Code: Select all
${voffset -25}${font ConkyWeather:size=45}${execi 1800 conkyForecast –location=USTN0370 --datatype=WF --imperial}
${alignc 22}${voffset -60}${font Arial:bold:size=10}${color DimGray}${execi 1800 conkyForecast --location=USTN0370 --datatype=HT --imperial}
$font${voffset -55}${alignr}${color white}Wind: ${execi 1800 conkyForecast –location=USTN0370 --datatype=WS --imperial}
${alignr}${color white}Humidity: ${execi 1800 conkyForecast –location=USTN0370 --datatype=HM --imperial}
${alignr}${color white}Precipitation: ${execi 1800 conkyForecast –location=USTN0370 --datatype=PC --imperial}

${color white}Sunrise: $alignr${execi 1800 conkyForecast –location=USTN0370 --datatype=SR}${alignr}
Sunset: $alignr${execi 1800 conkyForecast –location=USTN0370 --datatype=SS}$color


Code: Select all
use_spacer right

above TEXT is correct.

Lemme know...

JJ
If you can't find an answer at Google, you must be typing in Braille.
User avatar
Habitual
Level 10
Level 10
 
Posts: 3467
Joined: Sun Nov 21, 2010 8:31 pm
Location: Youngstown, Ohio

Re: Conky Configurations

Postby Habitual on Wed Mar 09, 2011 1:18 am

willie42:
I hope this does the job for you.

Code: Select all
background no
use_xft yes
xftfont 123:size=8
xftalpha 0.1
update_interval 0.5
total_run_times 0
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 250 5
maximum_width 400
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color gray
default_shade_color green
default_outline_color green
alignment top_right
gap_x 10
gap_y 10
no_buffers no
uppercase no
cpu_avg_samples 2
net_avg_samples 1
override_utf8_locale yes
use_spacer right
text_buffer_size 256

TEXT

${font openlogos:size=20}${font Arial:size=20}${color Green}Linux Mint
${color red}Debian Edition${font openlogos:size=20}

${voffset -90}
${color white}
${font}
${font Arial:bold:size=10}${color green}SYSTEM ${color white} ${hr 2}
$font${color white}$sysname $kernel $alignr $machine
${color white}${execi 1000 cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'}

Uptime $alignr${uptime}
File System $alignr${fs_type}

${font Arial:bold:size=10}${color green}PROCESSORS ${color white}${hr 2}
$font${color white}CPU1  ${cpu cpu1}% ${cpubar cpu1}
CPU2  ${cpu cpu2}% ${cpubar cpu2}

${font Arial:bold:size=10}${color Green}MEMORY ${color white}${hr 2}
$font${color white}MEM $alignc $mem / $memmax $alignr $memperc%
$membar

${font Arial:bold:size=10}${color green}HDD ${color white}${hr 2}
$font${color white}/home $alignc ${fs_used /home} / ${fs_size /home} $alignr ${fs_free_perc /home}%
${fs_bar /home}
/data $alignc ${fs_used /media/data} / ${fs_size /media/data} $alignr ${fs_free_perc /media/data}%
${fs_bar /media/data}
/Backup-Data $alignc ${fs_used /media/Backup-Data} / ${fs_size /media/Backup-Data} $alignr ${fs_free_perc /media/Backup-Data}%
${fs_bar /media/Backup-Data}
/backup-home $alignc ${fs_used /media/backup-home} / ${fs_size /media/backup-home} $alignr ${fs_free_perc /media/backup-home}%
${fs_bar /media/backup-home}

${font Arial:bold:size=10}${color green}TOP PROCESSES ${color white}${hr 2}
${color white}$font${top_mem name 2}${alignr}${top mem 2} %
$font${top_mem name 3}${alignr}${top mem 3} %
$font${top_mem name 4}${alignr}${top mem 4} %
$font${top_mem name 5}${alignr}${top mem 5} %

${font Arial:bold:size=10}${color Green}NETWORK
${color white}${hr 2}
$font${color white}IP on eth0 $alignr ${addr eth1}

Down $alignr ${downspeed eth1} kb/s
Up $alignr ${upspeed eth1} kb/s

Downloaded: $alignr  ${totaldown eth1}
Uploaded: $alignr  ${totalup eth1}

${font Arial:bold:size=10}${color Green}WEATHER ${color white}${hr 2}
${font}${color white}

${voffset -25}${font ConkyWeather:size=45}${execi 1800 conkyForecast –location=USTN0370 --datatype=WF --imperial}
${alignc 22}${voffset -60}${font Arial:bold:size=10}${color DimGray}${execi 1800 conkyForecast --location=USTN0370 --datatype=HT --imperial}
$font${voffset -55}${alignr}${color white}Wind: ${execi 1800 conkyForecast –location=USTN0370 --datatype=WS --imperial}
${alignr}${color white}Humidity: ${execi 1800 conkyForecast –location=USTN0370 --datatype=HM --imperial}
${alignr}${color white}Precipitation: ${execi 1800 conkyForecast –location=USTN0370 --datatype=PC --imperial}

${color white}Sunrise: $alignr${execi 1800 conkyForecast –location=USTN0370 --datatype=SR}${alignr}
Sunset: $alignr${execi 1800 conkyForecast –location=USTN0370 --datatype=SS}$color


and here's what it looks like
If you can't find an answer at Google, you must be typing in Braille.
User avatar
Habitual
Level 10
Level 10
 
Posts: 3467
Joined: Sun Nov 21, 2010 8:31 pm
Location: Youngstown, Ohio


Return to Compiz, Conky, Docks, & Widgets

Who is online

Users browsing this forum: No registered users and 2 guests