LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 09-22-2011, 12:45 PM   #1
zuzoa
Member
 
Registered: Nov 2008
Location: USA
Distribution: Arch 64-bit
Posts: 159

Rep: Reputation: 35
Setting a variable in conky?


Ok, I'm trying to setup the weather icon as mentioned in 'man conky' under weather>icon. Using 'icon' returns me a number, which corresponds to a .png icon downloaded from weather.com.

I need to take this number, and input it into a path, i.e. /home/susie/.conky/icons/93x93/XX.png, so I can display it in conky with 'image'.

My question is how can I set the output of 'icon' to a variable, so I can call on it in the 'image' path?

Note - This does not work:
${image /home/susie/.conky/icons/93x93/${weather http://xoap.weather.com/weather/local/ XXXXX icon 30}.png}

Quote:
Conky: Unable to load image '/home/susie/.conky/icons/93x93/${weather'
***** Imlib2 Developer Warning ***** :
This program is calling the Imlib call:

imlib_render_image_part_on_drawable_at_size();

With the parameter:

image

being NULL. Please fix your program.

Last edited by zuzoa; 09-22-2011 at 01:27 PM.
 
Old 09-25-2011, 09:43 PM   #2
zuzoa
Member
 
Registered: Nov 2008
Location: USA
Distribution: Arch 64-bit
Posts: 159

Original Poster
Rep: Reputation: 35
Still no success, any suggestions?
 
Old 09-26-2011, 12:34 AM   #3
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-14.1
Posts: 1,216

Rep: Reputation: 177Reputation: 177
Just out of curiosity have you tried using conkyforecast?
 
Old 09-26-2011, 03:32 PM   #4
zuzoa
Member
 
Registered: Nov 2008
Location: USA
Distribution: Arch 64-bit
Posts: 159

Original Poster
Rep: Reputation: 35
I have, and it stopped working a few days ago, which is when I realised conky has a built-in weather script now, and I figured it would be easier to use that rather than try to fix my conkyforecast setup. Though, this step isn't proving to be very easy :P
 
  


Reply

Tags
conky, icon, variable, weather


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
conky question: passing conky-variable to shell-script zlin50 Linux - Software 2 12-29-2012 06:47 PM
Conky mystery variable SChipS Linux - Software 3 01-04-2011 05:31 AM
LXer: Conky Colors Makes Your Conky Beautiful In Seconds (Version 3.20 Released) LXer Syndicated Linux News 0 08-01-2010 11:21 AM
Setting conky after installing it. glore2002 Slackware 11 09-23-2008 03:03 PM
setting a variable variable in a script... this works, but could it be more elegant? pwc101 Programming 3 08-18-2006 11:23 AM


All times are GMT -5. The time now is 01:47 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration