Re: Conky Help

Sector11 wrote:

Change:

minimum_size 200 200
maximum_width 240

To:

minimum_size 240 250
maximum_width 240

Or to:

minimum_size 240 0
maximum_width 240

and let conky grow when you add something.

Right on!  Thanks for that!

~*~  M_Mynaardt  ~*~

1,777

Re: Conky Help

Sector11 i have conky 1.8.0.1-1
I'm not at the ubuntu forums.
I use the debian based Mint.
But still dont have a idea why its stopt working.

Last edited by kruijf (2011-07-29 21:33:22)

Acer Aspire 5749: Debian Testing

1,778

Re: Conky Help

Sector11 wrote:

Change:

own_window yes

to

own_window no #yes

and that will do it.

thanks.

1,779

Re: Conky Help

Iff i look on xoap.weather.com what is in my conkyforecast and i look on the location NLXX0022 i get this:

type Status report

message /weather/today/NLXX0022

description The requested resource (/weather/today/NLXX0022) is not available.
Acer Aspire 5749: Debian Testing

Re: Conky Help

@kruijf

Here's a replacement if you are interested:

rss.sh

uri=$1                                                  #URI of RSS Feed
lines=$2                                                #Number of headlines
titlenum=$3                                             #Number of extra titles

#Script start
#Require a uri, as a minimum
#if [[ "$uri" == "" ]]; then
#        echo "No URI specified, cannot continue!" >&2
#       echo "Please read script for more information" >&2
#else
        #Set defaults if none specified
        #if [[ $lines == "" ]]; then lines=5 ; fi
        #if [[ $titlenum == "" ]]; then titlenum=2 ; fi

        #The actual work
        curl -s --connect-timeout 30 $uri |\
        sed -e 's/<\/title>/\n/g' |\
        grep -o '<title>.*' |\
        sed -e 's/<title>//' |\
        head -n $(($lines + $titlenum)) |\
        tail -n $(($lines))
#fi

make it executable with chmod +x rss.sh
in conky add:

${execi 300 /path/to/rss.sh http://www.rssweather.com/wx/nl/de+bilt/rss.php 1 1}

de+bilt or de+kooy  depends on your location, anyway it is 14 degrees now and drizzling big_smile

Nothing right in the left brain. Nothing left in the right brain.

1,781

Re: Conky Help

I whill look in to that but i try to find out why its not working here.
The conky script is working whit sector11, then it must work here also.

Acer Aspire 5749: Debian Testing

Re: Conky Help

http://xoap.weather.com/weather/local/NLXX0021 shows <err type="100">Invalid Partner Code.</err>

You did sign up?  http://www.weather.com/services/xmloap.html

Last edited by machinebacon (2011-07-29 22:43:38)

Nothing right in the left brain. Nothing left in the right brain.

1,783

Re: Conky Help

kruijf wrote:

Iff i look on xoap.weather.com what is in my conkyforecast and i look on the location NLXX0022 i get this:

type Status report

message /weather/today/NLXX0022

description The requested resource (/weather/today/NLXX0022) is not available.

I'm surprised it does not work for you:

http://xoap.weather.com/search/search?where=De%20Bilt

gives me:

<search ver="3.0">
<loc id="NLXX0022" type="1">De Bilt, Netherlands</loc>
</search>

and:

http://www.weather.com/weather/hourbyhour/NLXX0022

work well and your conky still works here for me?

Believe my I am as puzzled as you are.

Last edited by Sector11 (2011-07-30 00:13:58)

1,784

Re: Conky Help

@machinebacon yes i sign up there.

@sector11 whit your links i get the same info like you in my browser, but the conky dont let me see it.
It goes some where wrong its telling all the time that NLXX0022 is not in cache.
It works whit you thats not making it easer.

Acer Aspire 5749: Debian Testing

1,785

Re: Conky Help

kruijf wrote:

@machinebacon yes i sign up there.

@sector11 whit your links i get the same info like you in my browser, but the conky dont let me see it.
It goes some where wrong its telling all the time that NLXX0022 is not in cache.
It works whit you thats not making it easer.

I see you posted on Linux Mint, good call, but I know there are people here that use Mint and it works.

Try my location code in your setup and see what happens:

DEFAULT_LOCATION = ARBA0009

Can you post your ~/.conkyForecast.config less the ID and KEY info, I want to use yours to test.

Last edited by Sector11 (2011-07-30 14:00:02)

1,786

Re: Conky Help

Whit your location code its not working also.

Here is my config

#=============================================#
# EXPERT SETTINGS, NOT REQUIRED TO BE ALTERED #
#=============================================#
BASE_XOAP_URL = http://xoap.weather.com/weather/local/<LOCATION>?cc=*&dayf=5&link=xoap&prod=xoap&par=<XOAP_PARTNER_ID>&key=<XOAP_LICENCE_KEY>&unit=m
#BASE_XOAP_URL = http://xml.weather.com/weather/local/<LOCATION>?cc=*&dayf=10&link=xoap&prod=xoap&par=<XOAP_PARTNER_ID>&key=<XOAP_LICENCE_KEY>&unit=m
MAXIMUM_DAYS_FORECAST = 4

#===============================================#
# USER SETTINGS, EDIT BASED ON DOCUMENTED SETUP #
#===============================================#
CACHE_FOLDERPATH = /home/bas/.cache/
CONNECTION_TIMEOUT = 5
EXPIRY_MINUTES = 30
TIME_FORMAT = %H:%M
DATE_FORMAT = %Y-%m-%d
LOCALE = nl  # Nederlandse
XOAP_PARTNER_ID = xxxxxxxxxx
XOAP_LICENCE_KEY = xxxxxxxxx
DEFAULT_LOCATION = NLXX0022
AUTO_NIGHT = False
PROXY_HOST = 
PROXY_PORT = 8080
PROXY_USERNAME = 
PROXY_PASSWORD = 
Acer Aspire 5749: Debian Testing

1,787

Re: Conky Help

I'm using the conky from gutterslob's BlauMono OB/gtk theme, and I have unsuccessfully tried to move it to the top edge of the screen. I have set gap_x and gap_y values to "0", but when I start an Openbox session, it is ~10 pixels from the top edge. If I edit .conkyrc without changing those values, and then save it, Conky moves to the top as it should.

Here is my .conkyrc

# Use Xft?
use_xft yes
xftfont Terminus:size=7
xftalpha 1.0
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

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_transparent no
own_window_type normal
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 1590
maximum_width 1590

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders yes

# Draw graph borders
draw_graph_borders yes

# Stippled borders?
stippled_borders 0

# border margins
border_margin 0

# border width
border_width 1

# Default colors and also border colors
default_color 23729B
#default_shade_color black
#default_outline_color 0f706a
own_window_colour 070809

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

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

# 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 1

# 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

TEXT
${alignc}UpTime - ${uptime}     CPU Load - ${cpu cpu1}.00% ${cpu cpu2}.00%     RAM - ${memperc}.00%     Swap - ${swapperc}.00%     Root - ${fs_used_perc /}.00%     Home - ${fs_used_perc /home}.00%     CPU Temp - ${execi 8 sensors | grep -A 1 'Core 0' | cut -c15-16 | sed '/^$/d'}°C ${execi 8 sensors | grep -A 1 'Core 1' | cut -c15-16 | sed '/^$/d'}°C ${execi 8 sensors | grep -A 1 'Core 2' | cut -c15-16 | sed '/^$/d'}°C ${execi 8 sensors | grep -A 1 'Core 3' | cut -c15-16 | sed '/^$/d'}°C     HDD Temp - ${acpitemp}°C     GPU Temp - ${execi 300 ~/bin/nvidia-gpu.sh}°C     Uploads - ${upspeedf eth0}kb/s     Downloads - ${downspeedf}kb/s     ${time %A %d/%m %H:%M:%S}

Any ideas?

1,788

Re: Conky Help

kruijf wrote:

Whit your location code its not working also.

Here is my config

This is just plain crazy ...
http://dl.dropbox.com/u/16070765/thmb_bas.png
your ~/.conkyForecast.config with the cache location changed, and my ID and KEY, your conky and your template and everything works ... even deleted the cache and restarted it ... it fetched the information and displays properly.

So with MY location code working, it must be another setting you have that is interfering. with this.

I would strongly recommend you delete "conkyForecast" and then re-install (use the hardy version) :  conkyforecast - 2.20

Last edited by Sector11 (2011-07-30 16:13:46)

1,789

Re: Conky Help

Its strange whit you it works and over here its not working any more.
http://img191.imageshack.us/img191/1807/brokenconky.th.png

Last edited by kruijf (2011-07-30 16:17:56)

Acer Aspire 5749: Debian Testing

1,790

Re: Conky Help

kruijf wrote:

Its strange whit you it works and over here its not working any more.
http://img191.imageshack.us/img191/1807/brokenconky.th.png

I'm not sure it is a "here and there" thing so much as it is something with your system or settings.

I see: LMDE ( testing repro ) and the other is (sid)

I found this: (you need to be root!)

Broken Conky Weather Forecast Python Script

I did the following changes and go weather info working again.

Line 16
add import urllib above import urllib2

change Line 793

usock = urllib2.urlopen(url)
to
usock = urllib.urlopen(url)

change Line 1624

usock = urllib2.urlopen(url)
to
usock = urllib.urlopen(url)


Walt

You need to modify the /usr/share/conkyforecast/conkyForecast.py file

And then compile it.

If you have never compiled a python file before as I did not here is the steps I took after updating the conkyForecast.py file.

$ cd /usr/share/conkyforecast
$ sudo python
>>> import py_compile
>>> py_compile.compile('conkyForecast.py')
Ctrl D to get you out of python

I think I logged out and back in but if not reboot and all should be back again.

Thanks to all that helped get this working again.

Bill

Last edited by Sector11 (2011-07-30 18:38:41)

1,791

Re: Conky Help

@sector11 thanks its working again whit the above steps.

Acer Aspire 5749: Debian Testing

1,792

Re: Conky Help

kruijf wrote:

@sector11 thanks its working again whit the above steps.

well, that's really good to hear!
I found the info over on the Ubuntu Forums in the conkyForecast thread.

1,793

Re: Conky Help

I tried to find it whit google but i think i had a bad search command.
I'm happy it work again.

Acer Aspire 5749: Debian Testing

1,794

Re: Conky Help

I'm looking for a way to have some sort of a battery notification from Conky, like turning the text red (or flashing?) when the battery gets below a certain percentage. I have done something like this with an old conkyrc of mine, but am lost at how to do it again. Do have to admit that I didn't search prior to asking, mainly because I'm pretty tired after a long day of travelling and because it's urgent since I'm sick of a dying battery lol

Also, Sector11, any news on the volume output? My searching didn't come with a solution sad

Let's do it and don't screw it.
      Github || Deviantart

1,795

Re: Conky Help

Unia wrote:

I'm looking for a way to have some sort of a battery notification from Conky, like turning the text red (or flashing?) when the battery gets below a certain percentage. I have done something like this with an old conkyrc of mine, but am lost at how to do it again. Do have to admit that I didn't search prior to asking, mainly because I'm pretty tired after a long day of travelling and because it's urgent since I'm sick of a dying battery lol

Also, Sector11, any news on the volume output? My searching didn't come with a solution sad

Changing colours is easy.  Today there are 2 options I can think of off the top of my head.

I. "IF" statments:
if x <= 33 red else if X <= 66 yellow else if X > 66 green

2. Crinos512's colorize script

Volume output -  I'll be honest ... I had forgotten about it ... but I'm back on it now.  Well, after dinner.  big_smile

1,796

Re: Conky Help

Sector11 wrote:

Changing colours is easy.  Today there are 2 options I can think of off the top of my head.

I. "IF" statments:
if x <= 33 red else if X <= 66 yellow else if X > 66 green

2. Crinos512's colorize script

Volume output -  I'll be honest ... I had forgotten about it ... but I'm back on it now.  Well, after dinner.  big_smile

Thanks.. colors are working now! smile Take it easy on the volume output - it might be my conky tho. Should look in to that

Let's do it and don't screw it.
      Github || Deviantart

1,797

Re: Conky Help

Hello,

I want my conky to be above absolutely everything and to stay on top all the time, even if I press Super + D (well, at least that it does by default). Here's my simple config - what do you suggest to change?

# conky configuration
#
# The list of variables has been removed from this file in favour
# of keeping the documentation more maintainable.
# Check http://conky.sf.net for an up-to-date-list.
#
# For ideas about how to modify conky, please see:
# http://crunchbanglinux.org/forums/topic/59/my-conky-config/
#
# For help with conky, please see:
# http://crunchbanglinux.org/forums/topic/2047/conky-help/
#
# Enjoy! :)
##############################################
#  Settings
##############################################
background yes
use_xft yes
xftfont Ubuntu:size=9
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_type desktop
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 1000 1000
maximum_width 240
short_units yes
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color d8d8d8
default_shade_color 000000
default_outline_color d9d7d6
alignment top_right
gap_x 12
gap_y 12
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale yes
##############################################
#  Output
##############################################
TEXT
${alignc}C R U N C H B A N G   L I N U X   1 0
${hr}
Kernel:$alignr$kernel
Host:$alignr${exec whoami}@$nodename
Praca:$alignr$uptime
RAM:$alignr$mem/$memmax
Swap:$alignr$swap/$swapmax
Dysk /:$alignr${fs_used /}/${fs_size /}
Dysk /home:$alignr${fs_used /home}/${fs_size /home}
Procesor:$alignr${cpu cpu0}% (${acpitemp}°C)
Bateria:${alignr}${battery_percent BAT0}% (${battery_time})

1,798

Re: Conky Help

Unia wrote:
Sector11 wrote:

Changing colours is easy.  Today there are 2 options I can think of off the top of my head.

I. "IF" statments:
if x <= 33 red else if X <= 66 yellow else if X > 66 green

2. Crinos512's colorize script

Volume output -  I'll be honest ... I had forgotten about it ... but I'm back on it now.  Well, after dinner.  big_smile

Thanks.. colors are working now! smile Take it easy on the volume output - it might be my conky tho. Should look in to that

Curious what did you do for colours?  IF statements or the bash script?
I know the volume command works here, so it would be difficult for me to reproduce the problem you are having.  sad

1,799

Re: Conky Help

Sector11 wrote:
Unia wrote:
Sector11 wrote:

Changing colours is easy.  Today there are 2 options I can think of off the top of my head.

I. "IF" statments:
if x <= 33 red else if X <= 66 yellow else if X > 66 green

2. Crinos512's colorize script

Volume output -  I'll be honest ... I had forgotten about it ... but I'm back on it now.  Well, after dinner.  big_smile

Thanks.. colors are working now! smile Take it easy on the volume output - it might be my conky tho. Should look in to that

Curious what did you do for colours?  IF statements or the bash script?
I know the volume command works here, so it would be difficult for me to reproduce the problem you are having.  sad

Here's what I came up with:

${if_match ${battery_percent BAT0} <= 10}\\#FF0000\${endif}${if_match ${battery_percent BAT0} => 10}\\#66A9BA\${endif}Battery: ${if_match ${battery_percent BAT0} <= 10}\\#FF0000\${endif}${if_match ${battery_percent BAT0} => 10}\\#b3b3b3\${endif}${battery_short BAT0} ${battery_time BAT0}

For the sound, I'll ask around on the Arch boards. There might be something I have to set up first. What was that command again which lets you check what conky 'supports' you have enabled during compile time?

Let's do it and don't screw it.
      Github || Deviantart

1,800

Re: Conky Help

Grzegosz wrote:

Hello,

I want my conky to be above absolutely everything and to stay on top all the time, even if I press Super + D (well, at least that it does by default). Here's my simple config - what do you suggest to change?

Super + D  ??  I tried your conky here, Super+D does not affect it.  It simply minimizes all open windows, but not conky.

Do you want your conky to stay above "any" open program window?