You are not logged in.

#1 2010-04-03 22:16:25

pyther
Member
Registered: 2008-01-21
Posts: 1,395
Website

Conky doesn't show script output

I'm a bit lost here conky was working great until the last update. Now the output of my script will be shown when I run conky the first time, but then it is just blank. This sometimes also happens with my mail script, but it is far less frequent.

.conkyrc

color0 81b1e7


# Use Xft?
use_xft yes
xftfont snap
xftalpha 1

# Update interval in seconds
update_interval 1


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



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

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 0

# border width
#border_width 1

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

#position
gap_x 0
gap_y 0
alignment top_left
#minimum_size 1280
#maximum_width 1280
minimum_size 1677 
maximum_width 1680

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no

# 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

TEXT
${time %A %B %d, %Y  -  %R:%S}${alignc} ${color0}:: Mail ${color}${texeci 120 /home/pyther/scripts/checkmail.py} ${color0}:: PKGS ${color}${texeci 10800 /home/pyther/scripts/pmupdate.sh} ${color0}:: Weather ${color}${texeci 900 /usr/bin/conkyForecast --location=USOH0008 --imperial --datatype=HT -ux}F - ${texeci 900 conkyForecast --location=USOH0195 --imperial --datatype=CC} ${color0}::

pmupdate.sh (Script that is giving troubles)

#!/bin/sh

sudo pacman -Sy > /dev/null
pkgs=`pacman -Qu | wc -l`

if [ -n "$pkgs" ]; then
    echo "$pkgs"
else
    echo "0"

fi

Running conky from the terminal doesn't result in any useful output.

Occasionally the mail and weather script won't show anything, but that is far less frequent.

Last edited by pyther (2010-04-03 22:18:01)


Website - Blog - arch-home
Arch User since March 2005

Offline

#2 2010-04-03 22:19:35

evolnex
Member
From: Aiur
Registered: 2010-01-29
Posts: 21

Re: Conky doesn't show script output

I'm having a similar problem - I also use conkyforecast, and it's not giving any output either. The output of "conky -DD" is:

/usr/bin/conkyForecast: line 3: :/usr/lib/openoffice/basis-link/program/: No such file or directory

repeated 9 more times. The great oracle Google was not helpful. Thoughts?

Offline

#3 2010-04-03 22:25:34

pyther
Member
Registered: 2008-01-21
Posts: 1,395
Website

Re: Conky doesn't show script output

This is unrelated and I emailed the author of conkyforecast about the issue.
/usr/bin/conkyforecast
change

$PYTHONPATH /usr/bin/python /usr/share/conkyforecast/conkyForecast.py "$@"

to

/usr/bin/python /usr/share/conkyforecast/conkyForecast.py "$@"

PYTHONPATH is used incorrectly in this case. It is used to reference python modules (which the openoffice pkg is now doing).

Last edited by pyther (2010-04-03 22:26:26)


Website - Blog - arch-home
Arch User since March 2005

Offline

#4 2010-04-03 22:54:28

evolnex
Member
From: Aiur
Registered: 2010-01-29
Posts: 21

Re: Conky doesn't show script output

Thanks. The forecast thing worked like a champ. I'm putting your script in with my conkyrc; I'll let you know if I experience the same thing or what, if anything, I find.

Offline

Board footer

Powered by FluxBB