From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Riley Subject: Re: Agenda and weather forecast Date: Sun, 12 Sep 2010 02:02:52 +0200 Message-ID: References: <87d3sn8mmy.fsf@keller.adm.naquadah.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from [140.186.70.92] (port=43836 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OuaDS-000708-MJ for emacs-orgmode@gnu.org; Sat, 11 Sep 2010 20:14:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oua2F-0005Hv-8f for emacs-orgmode@gnu.org; Sat, 11 Sep 2010 20:03:08 -0400 Received: from lo.gmane.org ([80.91.229.12]:47641) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oua2F-0005Ho-1s for emacs-orgmode@gnu.org; Sat, 11 Sep 2010 20:03:07 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Oua2A-00048O-Qj for emacs-orgmode@gnu.org; Sun, 12 Sep 2010 02:03:02 +0200 Received: from 85.183.18.158 ([85.183.18.158]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 12 Sep 2010 02:03:02 +0200 Received: from rileyrg by 85.183.18.158 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 12 Sep 2010 02:03:02 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Julien Danjou writes: > Hi folks, > > If anybody is interested, I've wrote an small extension to put some > weather forecasts in the agenda. > > It can be found here[1]. I've blogged about it yesterday, so if you're > curious you can read the entry[2]. > > Happy hacking, > > [1] http://julien.danjou.info/google-weather-el.html > [2] http://julien.danjou.info/blog/ Here is a small patch to make it a bit cleaner in non GUI emacs (-nw) :- --8<---------------cut here---------------start------------->8--- Modified google-weather.el diff --git a/google-weather.el b/google-weather.el index 393a3cf..898c91b 100644 --- a/google-weather.el +++ b/google-weather.el @@ -162,8 +162,8 @@ See `google-weather-retrieve-data' for the use of EXPIRE-TIME." `(,forecast-encoded-date (low ,(google-weather-assoc 'low forecast)) (high ,(google-weather-assoc 'high forecast)) - (icon ,(concat google-weather-image-url - (google-weather-assoc 'icon forecast))) + (icon ,(if (window-system) (concat google-weather-image-url + (google-weather-assoc 'icon forecast)) "")) (condition ,(google-weather-assoc 'condition forecast))))) (loop for entry in (google-weather-data->weather data) when (eq (car entry) 'forecast_conditions) --8<---------------cut here---------------end--------------->8--- -- ☘ http://www.shamrockirishbar.com, http://www.richardriley.net "Learning French is trivial: the word for horse is 'cheval' and everything follows thusly."