This is a read-only archive!


  • conkyrc - Save this as ~/.conkyrc.
  • check_mail.rb - Displays a few messages from an IMAP mailbox.
  • countdown.rb - Displays the number of days until some date.
  • ip - Displays your IP address as seen from some server.
  • now_playing.rb - Displays the currently playing artist/song from Amarok.
  • weather.rb - Displays the weather from Yahoo Weather.



October 26, 2006 @ 12:22 PM PDT
Cateogory: Uncategorized
Tags: Ruby, Conky


Quoth Athanasius on February 03, 2007 @ 4:51 AM PST

I am using Ubuntu Edgy. How do I make this work in my .conkyrc file? Is there something that I am supposed to download to make the script work?

Quoth Brian on February 05, 2007 @ 4:22 AM PST

You need Ruby for all of these. And you need the xmlsimple Ruby gem for the weather script. I don't think xmlsimple is in any repos, it would have to be installed via rubygems.

Quoth Eric on April 19, 2007 @ 2:39 PM PDT

I like your conky file. I'm trying to get your weather.rb working but every time I start conky, I get the error /home/eric/weather.rb:3:in `require': no such file to load -- xmlsimple (LoadError) from /home/eric/weather.rb:3

I've got xmlsimple install via ruby gem. Do you have any suggestions?

Quoth Brian on April 24, 2007 @ 4:37 AM PDT

You may have to tell Ruby how to find the gem. Export the environment variable RUBYOPT="rubygems" would do it. That's my first thought.

Quoth Bananas on January 23, 2008 @ 11:27 AM PST

Hey, trying to get the mail script working

heres the error i get

/usr/lib/ruby/1.8/net/imap.rb:886:in `initialize': getaddrinfo: Name or service not known (SocketError)
        from /usr/lib/ruby/1.8/net/imap.rb:886:in `open'
        from /usr/lib/ruby/1.8/net/imap.rb:886:in `initialize'
        from /usr/local/bin/check_mail.rb:21:in `new'
        from /usr/local/bin/check_mail.rb:21

Whats the problem? Thanks

Quoth Brian on January 23, 2008 @ 11:41 AM PST

I think it means it can't resolve your mail server's domain. You may have a typo in the server name?

Quoth crache on June 04, 2008 @ 10:48 AM PDT

Maybe he is trying to use gmail. Is there a way to specify the port number? Thank you for these scripts and config, Simple, yes but very useful.

Quoth crache on June 04, 2008 @ 10:58 AM PDT

tried changing the server line to:

imap ='', 993, true)

that gave me:

/usr/lib/ruby/1.8/net/imap.rb:983:in `pick_up_tagged_response': TODO (not supported yet) 20if1910406wfi.0 (Net::IMAP::BadResponseError)
        from /usr/lib/ruby/1.8/net/imap.rb:974:in `get_tagged_response'
        from /usr/lib/ruby/1.8/net/imap.rb:1032:in `send_command'
        from /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
        from /usr/lib/ruby/1.8/net/imap.rb:1017:in `send_command'
        from /usr/lib/ruby/1.8/net/imap.rb:361:in `authenticate'
        from check_mail.rb:21

This is my first time looking at ruby.. i'm not a programmer :-/

ethan vizitei
Quoth ethan vizitei on June 27, 2008 @ 9:51 AM PDT


that error indicates that gmail does not support an IMAP command that you're trying to use. I can see from your stack trace that you are using the "authenticate" method in this script, and it uses commands that the gmail server doesn't support. Try using the "login" method of net/imap rather than "authenticate", that should take care of it.

Hope that helps.

Quoth dag729 on December 16, 2009 @ 8:38 AM PST

Hi, I would like to thank you!!! You really saved my evening. I was digging in many sites, where everyone seem'd to be the "guru" about conky, yet everytimes fails... :D Your conkyrc worked instantly: I made my modifications to it (I didn't need the yahoo and mail things, for example) but... it's really wonderful! Thanks, thanks, thanks.

Quoth Sly on February 27, 2010 @ 4:36 AM PST

If you are connecting to a server that does not require authentication, you need to change the imap.authenticate line to

imap.login('USERNAME', 'PASSWORD')