Conky Problems

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
arminius
Level 3
Level 3
Posts: 182
Joined: Tue Nov 08, 2011 6:09 am

Conky Problems

Post by arminius »

I've moved over from ubuntu to mint, and my conky is being really weird, here's the screenshot, Image where my weather conky which is ment to be on the right side of the screen, is instead on the left side, right ontop of the memory conky, not sure why, or how to correct it. Here's the code for that conky.

Code: Select all

##################################
## VinDSL | rev. 11-02-17 01:46 ##
##################################
##   Screen res: 1280x1024x24   ##
##################################

####
## Prerequisites (required).
## conky-all 1.8.0 or 1.8.1
## conkyForecast 2.16
## weather.com XML Data Feed (XOAP)
#

####
## Use XFT? Required to Force UTF8 (see below).
#
use_xft yes
xftfont DroidSans:size=8.75
xftalpha 0.1
text_buffer_size 4096

####
## Force UTF8? Requires XFT (see above).
## Displays degree symbol, instead of °, etc.
#
override_utf8_locale yes

####
## Daemonize Conky, aka 'fork to background'.
#
background yes

####
## Update interval in seconds.
#
update_interval 1.5

####
## This is the number of times Conky will update before quitting.
## Set to zero to run forever.
#
total_run_times 0

####
## Create own window instead of using desktop (required in nautilus)?
#
own_window yes
own_window_argb_visual yes
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

####
## Force images to redraw when they change.
#
imlib_cache_size 0

####
## Use double buffering? Reduces flicker.
#
double_buffer yes

####
## Draw shades?
#
draw_shades no

####
## Draw outlines?
#
draw_outline no

####
## Draw borders around text?
#
draw_borders no

####
## Draw borders around graphs?
#
draw_graph_borders yes

####
## Print text to stdout?
## Print text in console?
#
out_to_ncurses no
out_to_console no

####
## Text alignment.
#
alignment lower_right

####
## Minimum size of text area.
#
minimum_size 0 0

####
## Gap between text and screen borders.
#
gap_x 0
gap_y 0

####
## Shorten MiB/GiB to M/G in stats.
#
short_units yes

####
## Pad % symbol spacing after numbers.
#
pad_percents 0

####
## Pad spacing between text and borders.
#
border_inner_margin 4

####
## Limit the length of names in "Top Processes".
#
top_name_width 10

####
## Subtract file system -/+buffers/cache from used memory?
## Set to yes, to produce meaningful physical memory stats.
#
no_buffers yes

####
## Set to yes, if you want all text to be in UPPERCASE.
#
uppercase no

####
## Number of cpu samples to average.
## Set to 1 to disable averaging.
#
cpu_avg_samples 2

####
## Number of net samples to average.
## Set to 1 to disable averaging.
#
net_avg_samples 2

####
## Add spaces to keep things from moving around?
## Only affects certain objects.
#
use_spacer right

####
## My colors (suit yourself).
#
color0 White
color1 Ivory
color2 Ivory2
color3 Ivory3
color4 Tan1
color5 Tan2
color6 Gray
color7 AntiqueWhite4
color8 DarkSlateGray
color9 Black



####
## Installed fonts (required).
#
# ConkyWeather (Stanko Metodiev)
# ConkyWindNESW (Stanko Metodiev)
# Cut Outs for 3D FX (Fonts & Things)
# Droid Font Family (Google Android SDK)
# Moon Phases (Curtis Clark)
# OpenLogos (Icoma)
# PizzaDude Bullets (Jakob Fischer)
# Radio Space (Iconian Fonts)
# StyleBats (Vinterstille)
# Ubuntu (Canonical Ltd)
# Ubuntu Title Bold (Paulo Silva)
# Weather (Jonathan Macagba)

TEXT
##################
##   WEATHER    ##
##################
${execpi 1000 conkyForecast -l ASXX0016 -t /home/user/.conky/conkyForecast.template}
${voffset 0}
and the code for the template is

Code: Select all

${voffset -8}${font DroidSans:bold:size=8}${color4}WEATHER${color8}${hr 2}${font}
${voffset -8}${color2}${font}${font RadioSpace:size=23}${if_match [--datatype=HT --hideunits --hidedegreesymbol]<=1}${color 0000EE}[--datatype=HT]${color}${else}${if_match [--datatype=HT --hideunits --hidedegreesymbol]<=4}${color 0033FF}[--datatype=HT]${color}${else}${if_match [--datatype=HT --hideunits --hidedegreesymbol]<=7}${color 0066FF}[--datatype=HT]${color}${else}${if_match [--datatype=HT --hideunits --hidedegreesymbol]<=10}${color 0099FF}[--datatype=HT]${color}${else}${if_match [--datatype=HT --hideunits --hidedegreesymbol]<=13}${color 00CCFF}[--datatype=HT]${color}${else}${if_match [--datatype=HT --hideunits --hidedegreesymbol]<=16}${color 00FFFF}[--datatype=HT]${color}${else}${if_match [--datatype=HT --hideunits --hidedegreesymbol]<=19}${color 99FFDD}[--datatype=HT]${color}${else}${if_match [--datatype=HT --hideunits --hidedegreesymbol]<=22}${color 99FF88}[--datatype=HT]${color}${else}${if_match [--datatype=HT --hideunits --hidedegreesymbol]<=25}${color 99FF44}[--datatype=HT]${color}${else}${if_match [--datatype=HT --hideunits --hidedegreesymbol]<=28}${color 99FF00}[--datatype=HT]${color}${else}${if_match [--datatype=HT --hideunits --hidedegreesymbol]<=31}${color 99BB00}[--datatype=HT]${color}${else}${if_match [--datatype=HT --hideunits --hidedegreesymbol]<=34}${color 997700}[--datatype=HT]${color}${else}${if_match [--datatype=HT --hideunits --hidedegreesymbol]<=37}${color 993300}[--datatype=HT]${color}${else}${if_match [--datatype=HT --hideunits --hidedegreesymbol]<=40}${color CC0000}[--datatype=HT]${color}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${voffset -18.5}${goto 81}${font}${font Ubuntu:size=24}${color3}[--datatype=CT --hideunits]${font}
${voffset -3}${font Ubuntu:size=8}Feels like ${if_match [--datatype=HT --hideunits --hidedegreesymbol]<=1}${color 0000EE}[--datatype=HT]${color}${else}${if_match [--datatype=HT --hideunits --hidedegreesymbol]<=4}${color 0033FF}[--datatype=HT]${color}${else}${if_match [--datatype=HT --hideunits --hidedegreesymbol]<=7}${color 0066FF}[--datatype=HT]${color}${else}${if_match [--datatype=HT --hideunits --hidedegreesymbol]<=10}${color 0099FF}[--datatype=HT]${color}${else}${if_match [--datatype=HT --hideunits --hidedegreesymbol]<=13}${color 00CCFF}[--datatype=HT]${color}${else}${if_match [--datatype=HT --hideunits --hidedegreesymbol]<=16}${color 00FFFF}[--datatype=HT]${color}${else}${if_match [--datatype=HT --hideunits --hidedegreesymbol]<=19}${color 99FFDD}[--datatype=HT]${color}${else}${if_match [--datatype=HT --hideunits --hidedegreesymbol]<=22}${color 99FF88}[--datatype=HT]${color}${else}${if_match [--datatype=HT --hideunits --hidedegreesymbol]<=25}${color 99FF44}[--datatype=HT]${color}${else}${if_match [--datatype=HT --hideunits --hidedegreesymbol]<=28}${color 99FF00}[--datatype=HT]${color}${else}${if_match [--datatype=HT --hideunits --hidedegreesymbol]<=31}${color 99BB00}[--datatype=HT]${color}${else}${if_match [--datatype=HT --hideunits --hidedegreesymbol]<=34}${color 997700}[--datatype=HT]${color}${else}${if_match [--datatype=HT --hideunits --hidedegreesymbol]<=37}${color 993300}[--datatype=HT]${color}${else}${if_match [--datatype=HT --hideunits --hidedegreesymbol]<=40}${color CC0000}[--datatype=HT]${color}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}
${goto 12}${color4}${font DroidSansMono:bold:size=8.35}[--datatype=DW --startday=1 --shortweekday]${goto 80}[--datatype=DW --startday=2 --shortweekday]${goto 149}[--datatype=DW --startday=3 --shortweekday]${goto 228}[--datatype=DW --startday=4 --shortweekday]



${voffset -4}${color4}[--datatype=HT --startday=1 --hideunits]/[--datatype=LT --startday=1 --hideunits]${goto 69}[--datatype=HT --startday=2 --hideunits]/[--datatype=LT --startday=2 --hideunits]${goto 138}[--datatype=HT --startday=3 --hideunits]/[--datatype=LT --startday=3 --hideunits]${goto 218}[--datatype=HT --startday=4 --hideunits]/[--datatype=LT --startday=4 --hideunits]${goto 303}[--datatype=WS]
${voffset -2}${font Ubuntu:size=8}${color4}Today's Sunrise:${color1}${goto 113}[--datatype=SR --startday=0 --hideunits]${goto 160}${font Ubuntu:size=8}${color4} ${color1}[--datatype=DL --startday=0 --hideunits]${goto 224}${color4} Today's Sunset:${color1}[--datatype=SS --startday=0 --hideunits]
${font Ubuntu:size=8}${color4}Tomorrow's Sunrise: ${color #E6E8FA}${goto 113}[--datatype=SR --startday=1 --hideunits]${goto 163}${color1}[--datatype=DL --startday=1 --hideunits]${goto 204}${color4} Tomorrow's Sunset:${color1}[--datatype=SS --startday=1 --hideunits]
${font Ubuntu:size=8}${color4}Peak Winter Sunrise:${color royal blue}${goto 116}6:39AM${goto 163}10:24${goto 205}${color4} Peak Winter Sunset:${color royal blue}5:00PM
${font Ubuntu:size=8}${color4}Peak Summer Sunrise:${color red}${goto 116}5:24AM${goto 163}14:15${goto 198}${color4} Peak Summer Sunset:${color red}6:19PM
${color4}Visibility:${color1}[--datatype=VI] ${goto 89}${color4}Humidity:${color1}[--datatype=HM]${goto 160}${color4}Bar:${color1}[--datatype=BR]${goto 231}${if_match "[--datatype=BD]"=="falling"}${color light blue}[--datatype=BD]${color}${else}${if_match "[--datatype=BD]"=="steady"}${color yellow}[--datatype=BD]${color}${else}${if_match "[--datatype=BD]"=="rising"}${color red}[--datatype=BD]${color}${endif}${endif}${endif}${goto 275}${color4}UV:${color1}[--datatype=UT] [--datatype=UI]
${color4}${font Ubuntu:size=8}Station: ${color1}[--datatype=OB --hideunits]${color4}${goto 175}Last Update: ${color1}[--datatype=LU --hideunits]
${image [--datatype=WI] -p 270,-10 -s 78x78} ${image [--datatype=BI] -p 283,52 -s 49x49}
${image [--datatype=WI --startday=1] -p 0,61 -s 40x40} ${image [--datatype=WI --startday=2] -p 66,61 -s 40x40} ${image [--datatype=WI --startday=3] -p 135,61 -s 40x40} ${image [--datatype=WI --startday=4] -p 213,61 -s 40x40}
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.
arminius
Level 3
Level 3
Posts: 182
Joined: Tue Nov 08, 2011 6:09 am

Re: Conky Problems

Post by arminius »

bump
Habitual

Re: Conky Problems

Post by Habitual »

Scratch that...

alignment
Aligned position on screen, may be top_left, top_right, top_middle, bottom_left, bottom_right, bottom_middle, middle_left, middle_middle, middle_right, or none (also can be abreviated as tl, tr, tm, bl, br, bm, ml, mm, mr). See also gap_x and gap_y.

http://conky.sourceforge.net/docs.html

My guess is "alignment lower_right" should read "alignment br" without the quotes.
arminius
Level 3
Level 3
Posts: 182
Joined: Tue Nov 08, 2011 6:09 am

Re: Conky Problems

Post by arminius »

I attached a screenshot, your change got it to the right side, but it's still in the middle, instead of bottom_right
here's the code

Code: Select all

##################################
## VinDSL | rev. 11-02-17 01:46 ##
##################################
##   Screen res: 1280x1024x24   ##
##################################

####
## Prerequisites (required).
## conky-all 1.8.0 or 1.8.1
## conkyForecast 2.16
## weather.com XML Data Feed (XOAP)
#

####
## Use XFT? Required to Force UTF8 (see below).
#
use_xft yes
xftfont DroidSans:size=8.75
xftalpha 0.1
text_buffer_size 4096

####
## Force UTF8? Requires XFT (see above).
## Displays degree symbol, instead of °, etc.
#
override_utf8_locale yes

####
## Daemonize Conky, aka 'fork to background'.
#
background yes

####
## Update interval in seconds.
#
update_interval 1.5

####
## This is the number of times Conky will update before quitting.
## Set to zero to run forever.
#
total_run_times 0

####
## Create own window instead of using desktop (required in nautilus)?
#
own_window yes
own_window_argb_visual yes
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

####
## Force images to redraw when they change.
#
imlib_cache_size 0

####
## Use double buffering? Reduces flicker.
#
double_buffer yes

####
## Draw shades?
#
draw_shades no

####
## Draw outlines?
#
draw_outline no

####
## Draw borders around text?
#
draw_borders no

####
## Draw borders around graphs?
#
draw_graph_borders yes

####
## Print text to stdout?
## Print text in console?
#
out_to_ncurses no
out_to_console no

####
## Text alignment.
#
alignment bottom_right

####
## Minimum size of text area.
#
minimum_size 0 0

####
## Gap between text and screen borders.
#
gap_x 0
gap_y 0

####
## Shorten MiB/GiB to M/G in stats.
#
short_units yes

####
## Pad % symbol spacing after numbers.
#
pad_percents 0

####
## Pad spacing between text and borders.
#
border_inner_margin 4

####
## Limit the length of names in "Top Processes".
#
top_name_width 10

####
## Subtract file system -/+buffers/cache from used memory?
## Set to yes, to produce meaningful physical memory stats.
#
no_buffers yes

####
## Set to yes, if you want all text to be in UPPERCASE.
#
uppercase no

####
## Number of cpu samples to average.
## Set to 1 to disable averaging.
#
cpu_avg_samples 2

####
## Number of net samples to average.
## Set to 1 to disable averaging.
#
net_avg_samples 2

####
## Add spaces to keep things from moving around?
## Only affects certain objects.
#
use_spacer right

####
## My colors (suit yourself).
#
color0 White
color1 Ivory
color2 Ivory2
color3 Ivory3
color4 Tan1
color5 Tan2
color6 Gray
color7 AntiqueWhite4
color8 DarkSlateGray
color9 Black



####
## Installed fonts (required).
#
# ConkyWeather (Stanko Metodiev)
# ConkyWindNESW (Stanko Metodiev)
# Cut Outs for 3D FX (Fonts & Things)
# Droid Font Family (Google Android SDK)
# Moon Phases (Curtis Clark)
# OpenLogos (Icoma)
# PizzaDude Bullets (Jakob Fischer)
# Radio Space (Iconian Fonts)
# StyleBats (Vinterstille)
# Ubuntu (Canonical Ltd)
# Ubuntu Title Bold (Paulo Silva)
# Weather (Jonathan Macagba)

TEXT
##################
##   WEATHER    ##
##################
${execpi 1000 conkyForecast -l ASXX0016 -t /home/user/.conky/conkyForecast.template}
${voffset 0}
I changed the

Code: Select all

gap_y 0
to

Code: Select all

gap_y 200
and weather moved to the top of the screen, but when I change it to

Code: Select all

gap_y -400
the weather conky never goes past the traffic conky.
What I want is to place it in the bottom right, under everything else.
arminius
Level 3
Level 3
Posts: 182
Joined: Tue Nov 08, 2011 6:09 am

Re: Conky Problems

Post by arminius »

bump
arminius
Level 3
Level 3
Posts: 182
Joined: Tue Nov 08, 2011 6:09 am

Re: Conky Problems

Post by arminius »

bump
arminius
Level 3
Level 3
Posts: 182
Joined: Tue Nov 08, 2011 6:09 am

Re: Conky Problems

Post by arminius »

bump
arminius
Level 3
Level 3
Posts: 182
Joined: Tue Nov 08, 2011 6:09 am

Re: Conky Problems

Post by arminius »

bump
Habitual

Re: Conky Problems

Post by Habitual »

You are going to have to edit ALL those voffsets and goto codes one at a time in /home/user/.conky/conkyForecast.template
until your weather details "line up" where you want it on the widget "canvas"

TIP:
I suggest running conky and fire up gedit and open /home/user/.conky/conkyForecast.template
Making minute changes and then saving (Ctrl+S) in gedit. Once saved, watch your screen.
Conky will redraw automatically.

Adding

Code: Select all

own_window_type override
to your conkyrc will prevent conky from being minimized when/if you use the "show desktop" panel thingie.

Here's is my code for my widget (for voffset and goto comparison)

Code: Select all

background yes
use_xft yes
xftfont Sans:size=8
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_type override
own_window_colour brown
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 190 200
maximum_width 190
draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders yes
default_color white
default_shade_color black
default_outline_color white
alignment bl 

gap_x 10 
gap_y 185 

no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale yes

TEXT
${goto 50}${font sans-serif:bold:size=8}${color FFFF00}Local Weather${color}

${goto 16}${execpi 600 /usr/share/conkyforecast/conkyForecast.py --location=USOH1096 --datatype=DW --imperial --startday=1 --shortweekday} ${goto 61}${execpi 600 /usr/share/conkyforecast/conkyForecast.py --location=USOH1096 --imperial --datatype=DW --startday=2 --shortweekday} ${goto 108}${execpi 600 /usr/share/conkyforecast/conkyForecast.py --location=USOH1096 --datatype=DW --imperial --startday=3 --shortweekday} ${goto 155}${execpi 600 /usr/share/conkyforecast/conkyForecast.py --location=USOH1096 --datatype=DW --imperial --startday=4 --shortweekday}
${goto 10}${font ConkyWeather:size=28}${execpi 600 /usr/share/conkyforecast/conkyForecast.py --location=USOH1096 --datatype=WF --imperial --startday=1 --endday=4 --spaces=1}${font}
${goto 11}${font DejaVu Sans:size=7}${execpi 600 /usr/share/conkyforecast/conkyForecast.py --location=USOH1096 --datatype=HT --imperial --startday=1 --hideunits --centeredwidth=3}/${execpi 600 /usr/share/conkyforecast/conkyForecast.py --location=USOH1096 --imperial --datatype=LT --startday=1 --hideunits --centeredwidth=3} ${goto 57}${execpi 600 /usr/share/conkyforecast/conkyForecast.py --location=USOH1096 --datatype=HT --imperial --imperial --startday=2 --hideunits --centeredwidth=3}/${execpi 600 /usr/share/conkyforecast/conkyForecast.py --location=USOH1096 --imperial --datatype=LT --startday=2 --hideunits --centeredwidth=3} ${goto 105}${execpi 600 /usr/share/conkyforecast/conkyForecast.py --location=USOH1096 --imperial --datatype=HT --startday=3 --hideunits --centeredwidth=3}/${execpi 600 /usr/share/conkyforecast/conkyForecast.py --location=USOH1096 --datatype=LT --imperial --startday=3 --hideunits --centeredwidth=3} ${goto 150}${execpi 600 /usr/share/conkyforecast/conkyForecast.py --location=USOH1096 --datatype=HT --imperial --startday=4 --hideunits --centeredwidth=3}/${execpi 600 /usr/share/conkyforecast/conkyForecast.py --location=USOH1096 --imperial --datatype=LT --startday=4 --hideunits --centeredwidth=3}${font}

${execi 600 python /home/jj/Documents/Archives/Conky/Archived/conkyLatLong.py}
${execi 600 /usr/share/conkyforecast/conkyForecast.py --location=USOH1096 --datatype=CT --imperial} ${alignr}${execi 600 /usr/share/conkyforecast/conkyForecast.py --location=USOH1096 --datatype=HT --imperial}
Location:${alignr}${execi 600 /usr/share/conkyforecast/conkyForecast.py --location=USOH1096 --datatype=CN}, ${execi 600 /usr/share/conkyforecast/conkyForecast.py --location=USOH1096 --datatype=CO}
Humidity${alignr}${execi 600 /usr/share/conkyforecast/conkyForecast.py --location=USOH1096 --datatype=HM}
Wind is ${alignr}${execi 600 /usr/share/conkyforecast/conkyForecast.py --location=USOH1096 --datatype=WS --imperial} - ${execi 600 /usr/share/conkyforecast/conkyForecast.py --location=USOH1096 --datatype=WD}
Sunrise${alignr}${execi 600 /usr/share/conkyforecast/conkyForecast.py --location=USOH1096 --datatype=SR}
Sunset${alignr}${execi 600 /usr/share/conkyforecast/conkyForecast.py --location=USOH1096 --datatype=SS}
U.V. Index is ${alignr}${execi 600 /usr/share/conkyforecast/conkyForecast.py --location=USOH1096 --datatype=UT}
Length of Daylight is ${alignr}${execi 600 /usr/share/conkyforecast/conkyForecast.py --location=USOH1096 --datatype=DL}m
Save my code as say /home/user/.conky/test_weather and run with

Code: Select all

conky -c  /home/user/.conky/test_weather
Adjust
alignment bl
gap_x 10
gap_y 185

Let conky + test_weather run (from terminal) and fire up "gedit /home/user/.conky/test_weather" and start making adjustments.

to suit the general placement of the weather widget and adjust the voffset and/or goto codes to adjust the output inside the weather widget.

http://conky.sourceforge.net/docs.html

HTH.
Locked

Return to “Compiz, Conky, Docks & Widgets”