Re: Conky Help
Change:
minimum_size 200 200 maximum_width 240To:
minimum_size 240 250 maximum_width 240Or to:
minimum_size 240 0 maximum_width 240and let conky grow when you add something.
Right on! Thanks for that!
CrunchBang Linux Forums » Tips, Tricks & Scripts » Conky Help
Change:
minimum_size 200 200 maximum_width 240To:
minimum_size 240 250 maximum_width 240Or to:
minimum_size 240 0 maximum_width 240and let conky grow when you add something.
Right on! Thanks for that!
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)
Change:
own_window yesto
own_window no #yesand that will do it.
thanks.
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.@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))
#fimake 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 ![]()
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.
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)
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)
@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.
@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 = ARBA0009Can 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)
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 = 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?
Whit your location code its not working also.
Here is my config
This is just plain crazy ...
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)
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 urllib2change 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 pythonI 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)
@sector11 thanks its working again whit the above steps.
@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.
I tried to find it whit google but i think i had a bad search command.
I'm happy it work again.
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 ![]()
Also, Sector11, any news on the volume output? My searching didn't come with a solution ![]()
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
Also, Sector11, any news on the volume output? My searching didn't come with a solution
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. ![]()
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 green2. 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.
Thanks.. colors are working now!
Take it easy on the volume output - it might be my conky tho. Should look in to that
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})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 green2. 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.
Thanks.. colors are working now!
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. ![]()
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 green2. 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.
Thanks.. colors are working now!
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.
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?
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?
Posts [ 1,776 to 1,800 of 1,840 ]
CrunchBang Linux Forums » Tips, Tricks & Scripts » Conky Help
Forums powered by PunBB. Hosted by Linode.
Copyright © CrunchBang Linux.
Proudly powered by Debian GNU/Linux.
Debian is a registered trademark of Software in the Public Interest, Inc.