From: Richard Riley <rileyrg@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Agenda and weather forecast
Date: Sun, 12 Sep 2010 02:02:52 +0200 [thread overview]
Message-ID: <i6h5be$cs3$1@dough.gmane.org> (raw)
In-Reply-To: 87d3sn8mmy.fsf@keller.adm.naquadah.org
Julien Danjou <julien@danjou.info> 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."
next prev parent reply other threads:[~2010-09-12 0:14 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-09 6:19 Agenda and weather forecast Julien Danjou
2010-09-09 9:05 ` Simon Guest
2010-09-09 13:30 ` George McNinch
2010-09-09 18:18 ` Ian Barton
2010-09-10 8:51 ` Ian Barton
2010-09-09 21:31 ` Simon Guest
2010-09-09 9:37 ` Sven Bretfeld
2010-09-09 11:22 ` Agenda and weather forecast | language and units Juan Pechiar
2010-09-09 12:15 ` Sven Bretfeld
2010-09-09 14:52 ` Rafael
2010-09-09 15:08 ` Jason McBrayer
2010-09-09 14:03 ` Agenda and weather forecast Julien Danjou
2010-09-10 15:10 ` Eric Abrahamsen
2010-09-11 9:05 ` Julien Danjou
2010-09-09 11:35 ` Agenda and weather forecast | alternative icon set Juan
2010-09-09 12:06 ` Agenda and weather forecast d.tchin
2010-09-09 12:20 ` Sven Bretfeld
2010-09-09 12:33 ` Re: Agenda and weather forecast | multiple forecasts Juan
2010-09-09 14:17 ` d.tchin
2010-09-09 14:09 ` Re: Agenda and weather forecast Julien Danjou
2010-09-09 14:29 ` d.tchin
2010-09-10 19:52 ` d.tchin
2010-09-09 12:52 ` Richard Riley
2010-09-09 14:23 ` Bernt Hansen
2010-09-09 15:39 ` Julien Danjou
2010-09-09 15:46 ` Bernt Hansen
2010-09-09 15:02 ` Jason McBrayer
2010-09-09 15:41 ` Julien Danjou
2010-09-09 19:33 ` Ivan Vilata i Balaguer
2010-09-10 0:06 ` Flavio Souza
2010-09-10 9:11 ` Eric S Fraga
2010-09-10 9:12 ` Eric S Fraga
2010-09-11 18:59 ` Christopher Allan Webber
2010-09-11 19:09 ` Christopher Allan Webber
2010-09-11 19:30 ` Julien Danjou
2010-09-12 0:02 ` Richard Riley [this message]
2010-09-12 11:14 ` Julien Danjou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='i6h5be$cs3$1@dough.gmane.org' \
--to=rileyrg@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).