conkyForecast Not displying properly

Forum rules
Before you post please read how to get help

conkyForecast Not displying properly

Postby rubenosqui on Sun Jul 04, 2010 4:02 am

I am trying to setup conky for the first time on my pc, i managed to get most of it running but i cannot get the conkyForecast to display the temperature icon instead it shows a big fat "Y" next to the temperature :shock:



this is the code for my conky any help to get this going is much appreciated

Code: Select all
#Conkyrc - Conky configuration file

# Use Xft?
use_xft yes
xftfont DejaVu Sans:size=6
xftalpha 0.8
text_buffer_size 2048

# Update interval in seconds
update_interval 1

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

own_window yes
own_window_transparent yes
#own_window_type override
own_window_type override
#own_window_type normal #use this if you want a nice shadow to appear around conky

# If own_window is yes, these window manager hints may be used
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
minimum_size 180 0
#maximum_width 200

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 0

# border margins
border_margin 5

# border width
border_width 1

# Default colors and also border colors
default_color grey
#default_shade_color black
#default_outline_color grey
own_window_colour grey

# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 12
gap_y 8

# Subtract file system buffers from used memory?
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

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

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

# Possible variables to be used:
#
#      Variable         Arguments                  Description
#  acpiacadapter                     ACPI ac adapter state.
#  acpifan                           ACPI fan state
#  acpitemp                          ACPI temperature.
#  battery           (name)          Remaining capasity in ACPI or APM
#                                    battery. ACPI battery name can be
#                                    given as argument (default is BAT0).
#  buffers                           Amount of memory buffered
#  cached                            Amount of memory cached
#  color             (color)         Change drawing color to color
#  cpu                               CPU usage in percents
#  cpubar            (height)        Bar that shows CPU usage, height is
#                                    bar's height in pixels
#  downspeed         net             Download speed in kilobytes
#  downspeedf        net             Download speed in kilobytes with one
#                                    decimal
#  exec              shell command   Executes a shell command and displays
#                                    the output in torsmo. warning: this
#                                    takes a lot more resources than other
#                                    variables. I'd recommend coding wanted
#                                    behaviour in C and posting a patch :-).
#  execi             interval, shell Same as exec but with specific interval.
#                    command         Interval can't be less than
#                                    update_interval in configuration.
#  fs_bar            (height), (fs)  Bar that shows how much space is used on
#                                    a file system. height is the height in
#                                    pixels. fs is any file on that file
#                                    system.
#  fs_free           (fs)            Free space on a file system available
#                                    for users.
#  fs_free_perc      (fs)            Free percentage of space on a file
#                                    system available for users.
#  fs_size           (fs)            File system size
#  fs_used           (fs)            File system used space
#  hr                (height)        Horizontal line, height is the height in
#                                    pixels
#  i2c               (dev), type, n  I2C sensor from sysfs (Linux 2.6). dev
#                                    may be omitted if you have only one I2C
#                                    device. type is either in (or vol)
#                                    meaning voltage, fan meaning fan or temp
#                                    meaning temperature. n is number of the
#                                    sensor. See /sys/bus/i2c/devices/ on
#                                    your local computer.
#  kernel                            Kernel version
#  loadavg           (1), (2), (3)   System load average, 1 is for past 1
#                                    minute, 2 for past 5 minutes and 3 for
#                                    past 15 minutes.
#  machine                           Machine, i686 for example
#  mails                             Mail count in mail spool. You can use
#                                    program like fetchmail to get mails from
#                                    some server using your favourite
#                                    protocol. See also new_mails.
#  mem                               Amount of memory in use
#  membar            (height)        Bar that shows amount of memory in use
#  memmax                            Total amount of memory
#  memperc                           Percentage of memory in use
#  new_mails                         Unread mail count in mail spool.
#  nodename                          Hostname
#  outlinecolor      (color)         Change outline color
#  pre_exec          shell command   Executes a shell command one time before
#                                    torsmo displays anything and puts output
#                                    as text.
#  processes                         Total processes (sleeping and running)
#  running_processes                 Running processes (not sleeping),
#                                    requires Linux 2.6
#  shadecolor        (color)         Change shading color
#  stippled_hr       (space),        Stippled (dashed) horizontal line
#                    (height)
#  swapbar           (height)        Bar that shows amount of swap in use
#  swap                              Amount of swap in use
#  swapmax                           Total amount of swap
#  swapperc                          Percentage of swap in use
#  sysname                           System name, Linux for example
#  temp1                             Temperature #1 from i2c-sensors, same as
#                                    ${i2c temp 1}
#  temp2                             Temperature #2 from i2c-sensors, same as
#                                    ${i2c temp 2}
#  time              (format)        Local time, see man strftime to get more
#                                    information about format
#  totaldown         net             Total download, overflows at 4 GB on
#                                    Linux with 32-bit arch and there doesn't
#                                    seem to be a way to know how many times
#                                    it has already done that before torsmo
#                                    has started.
#  totalup           net             Total upload, this one too, may overflow
#  updates                           Number of updates (for debugging)
#  upspeed           net             Upload speed in kilobytes
#  upspeedf          net             Upload speed in kilobytes with one
#                                    decimal
#  uptime                            Uptime
#  uptime_short                      Uptime in a shorter format



TEXT




DATE ${hr 2}
${alignc 29}${font Arial Black:size=18}${time %_I.%M%P}${font}
${voffset 2}${alignc}${time %A, %d %B %Y}

SYSTEM ${hr 2}

${alignc 19}${font Arial Black:size=16}aReLlaNoOo
${voffset 2}${font Arial Black:style=Bold:size=12}#!${font}  Linux Mint  ${alignr}9.1
${font OpenLogos:size=16}u${font}   Kernel:  ${alignr}${kernel}
${font StyleBats:size=16}A${font}   CPU: ${cpu cpu1}% ${alignr}${cpubar cpu1 8,60}
${font StyleBats:size=16}g${font}   RAM: $memperc% ${alignr}${membar 8,60}
${font StyleBats:size=16}j${font}   Swap: $swapperc% ${alignr}${swapbar 8,60}
${font StyleBats:size=16}q${font}   Uptime: ${alignr}${uptime_short}

${font sans-serif:bold:size=8}PROCESSORS ${hr 2}
${font sans-serif:size=8}CPU0: ${cpu cpu0}% ${alignr}CPU1: ${cpu cpu1}%
${cpugraph cpu0 20,98}${alignr}${cpugraph cpu1 20,98}
${font sans-serif:size=8}CPU2: ${cpu cpu2}% ${alignr}CPU3: ${cpu cpu3}%
${cpugraph cpu2 20,98}${alignr}${cpugraph cpu3 20,98}

${font sans-serif:bold:size=8}MEMORY ${hr 2}
${font sans-serif:normal:size=8}RAM $alignc $mem / $memmax $alignr $memperc%
$membar

WEATHER ${hr 2}
${if_existing /proc/net/route wlan0}
${font sans-serif:style=Bold:size=10}${execi 600 conkyForecast --location=CAXX0183 -d CN}, ${execi 600 conkyForecast --location=CAXX0183 -d CO}
${voffset -8}${alignr 56}${font ConkyWeather:style=Bold:size=40}${execi 600 conkyForecast --location=CAXX0183 --datatype=WF}${font}
${alignr}${font}${execi 600 conkyForecast --location=CAXX0183 -d CT}

${voffset -52}${font Weather:size=40}y${font}   ${voffset -38}${font Trebuchet MS:size=26}${execi 600 conkyForecast --location=UKXX0083 --datatype=HT}${font}


${voffset 0}${font}Wind Speed: ${alignr}${execi 600 conkyForecast --location=CAXX0183 --hideunits --datatype=WS} km/h ${execi 600 conkyForecast --location=CAXX0183 --hideunits --datatype=WD}
${voffset 0}Daylight: ${alignr}${execi 600 conkyForecast --location=CAXX0183 --datatype=SR} ~ ${execi 600 conkyForecast --location=CAXX0183 --datatype=SS}
${font Trebuchet MS:size=12}${execi 600 conkyForecast --location=CAXX0183 --datatype=MP}
${voffset -30}${alignr 42}${font MoonPhases:size=28}${execi 600 conkyForecast --location=CAXX0183 --datatype=MF}${font}
${else}${if_existing /proc/net/route eth0}
${font Trebuchet MS:style=Bold:size=10}${execi 600 conkyForecast --location=CAXX0183 -d CN}, ${execi 600 conkyForecast --location=CAXX0183 -d CO}
${voffset -8}${alignr 56}${font ConkyWeather:style=Bold:size=40}${execi 600 conkyForecast --location=CAXX0183 --datatype=WF}${font}
${alignr}${font}${execi 600 conkyForecast --location=CAXX0183 -d CT}

${voffset -52}${font Weather:size=40}y${font}   ${voffset -38}${font Trebuchet MS:size=26}${execi 600 conkyForecast --location=CAXX0183 --datatype=HT}${font}


${voffset 0}${font}Wind Speed: ${alignr}${execi 600 conkyForecast --location=CAXX0183 --hideunits --datatype=WS} km/h ${execi 600 conkyForecast --location=CAXX0183 --hideunits --datatype=WD}
${voffset 0}Daylight: ${alignr}${execi 600 conkyForecast --location=CAXX0183 --datatype=SR} ~ ${execi 600 conkyForecast --location=CAXX0183 --datatype=SS}

${font Trebuchet MS:size=12}${execi 600 conkyForecast --location=CAXX0183 --datatype=MP}
${voffset -30}${alignr 42}${font MoonPhases:size=28}${execi 600 conkyForecast --location=CAXX0183 --datatype=MF}${font}
${else}
${font PizzaDude Bullets:size=14}4${font}   Weather Unavailable
${endif}

${voffset -10}DISK USAGE${hr 2}
${voffset 4}${font Pie charts for maps:size=14}7${font}   ${voffset -5}Root:${alignr}${fs_free_perc /}% free
${alignr}${fs_bar 8,60 /}
${if_mounted /dev/sda}${font Pie charts for maps:size=14}7${font}   ${voffset -5}SDA:${alignr}${fs_free_perc /dev/sda}% free
${alignr}${fs_bar 8,60 /dev/sda}
${endif}${if_mounted /dev/sdb}${font Pie charts for maps:size=14}7${font}   ${voffset -5}SDB:${alignr}${fs_free_perc /dev/sdb}% free
${alignr}${fs_bar 8,60 /dev/sdb}
${endif}

NETWORK ${hr 2}
${if_existing /proc/net/route ra0}
IP: ${addr ra0}${alignr}Signal: ${wireless_link_qual ra0}%
${color}Down: ${downspeed ra0} kB/s ${alignr}Up: ${upspeed ra0} kB/s
${downspeedgraph ra0 25,100 FFFF99 FFFF33} ${alignr}${upspeedgraph ra0 25,100 FFFF00 FFCC00}
Total: ${totaldown ra0} ${alignr}Total: ${totalup ra0}
${else}${if_existing /proc/net/route eth0}
${alignc 21}${font size=9}${voffset -11}IP: ${addr eth0}${font}
${voffset 2}Down: ${downspeed eth0} kB/s ${alignr}Up: ${upspeed eth0} kB/s
${downspeedgraph eth0 25,100 FFFF99 FFFF33} ${alignr}${upspeedgraph eth0 25,100 FFFF00 FFCC00}
Total: ${totaldown eth0} ${alignr}Total: ${totalup eth0}
${endif}${else}
${font PizzaDude Bullets:size=14}4${font}   Network Unavailable
${endif}


${font sans-serif:bold:size=8}TOP PROCESSES ${hr 2}
${font sans-serif:normal:size=8}${top_mem name 1}${alignr}${top mem 1} %
${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} %


MUSIC${hr 2}
${font Arial Black:size=14}♫${font}    ${if_running banshee-1}${exec banshee --query-title | cut -f2- -d" "}${font}
${offset 31}by ${exec banshee --query-artist | cut -f2- -d" "}
${offset 31}${font}from ${exec banshee --query-album | cut -f2- -d" "}${font}${else}Not Playing${endif}


See screenshot

Thanks in advance
Screenshot.png
conky
Screenshot.png (51.38 KiB) Viewed 816 times
rubenosqui
Level 1
Level 1
 
Posts: 4
Joined: Fri Jun 25, 2010 12:45 pm

Linux Mint is funded by ads and donations.
 

Re: conkyForecast Not displying properly

Postby lvleph on Sun Jul 11, 2010 1:11 am

Most likely it is due to not have the fonts installed correctly. I would strongly suggest going to the Ubuntu forums and getting help from the developer of that particular script. Unfortunately, the script has changed a lot since I wrote the original so I won't be of much more help unless I were to actually read through the code.
lvleph
Level 1
Level 1
 
Posts: 37
Joined: Mon Dec 07, 2009 9:31 am

Re: conkyForecast Not displying properly

Postby dawgdoc on Sun Jul 11, 2010 2:01 am

rubenosqui wrote:${voffset -52}${font Weather:size=40}y${font} ${voffset -38}${font Trebuchet MS:size=26}${execi 600 conkyForecast --location=UKXX0083 --datatype=HT}${font}


It would be because of the Y I highlighted in red. prior to that you told it to use size 40 font.

Try deleting the Y
Image

SYSTEM: Compaq Presario CQ62 Dual-Boot: Mint 17 Cinnamon, LMDE
READING: Smoke Screen by Dick Francis
User avatar
dawgdoc
Level 9
Level 9
 
Posts: 2720
Joined: Mon Oct 05, 2009 12:53 am
Location: Kentucky, USA the land of Mint Juleps

Re: conkyForecast Not displying properly

Postby rubenosqui on Mon Jul 12, 2010 1:47 am

thanks for your replies, i finally got it working right I was missing a font.. it was that symple :shock:
anyway
Thanks for your help
rubenosqui
Level 1
Level 1
 
Posts: 4
Joined: Fri Jun 25, 2010 12:45 pm


Return to Compiz, Conky, Docks, & Widgets

Who is online

Users browsing this forum: No registered users and 3 guests