From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Brown Subject: Re: org google weather Date: Fri, 04 Mar 2011 22:43:32 +0000 Message-ID: <87k4geik17.wl%lists@700c.org> References: <87oc5rlwc4.wl%lists@700c.org> <4D70A577.4000509@manor-farm.org> <87lj0uinin.wl%lists@700c.org> <6122.1299276355@alphaville.usa.hp.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=42392 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pvdim-0004gL-Lt for emacs-orgmode@gnu.org; Fri, 04 Mar 2011 17:43:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pvdil-0003qh-Fh for emacs-orgmode@gnu.org; Fri, 04 Mar 2011 17:43:40 -0500 Received: from nativespace-leda.ns-leda.com ([89.145.88.80]:34672) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pvdil-0003pt-Bm for emacs-orgmode@gnu.org; Fri, 04 Mar 2011 17:43:39 -0500 In-Reply-To: <6122.1299276355@alphaville.usa.hp.com> 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: nicholas.dokos@hp.com Cc: emacs-orgmode@gnu.org At Fri, 04 Mar 2011 17:05:55 -0500, Nick Dokos wrote: > Simon Brown wrote: > > At Fri, 04 Mar 2011 08:40:23 +0000, > > Ian Barton wrote: > > > On 03/03/11 21:37, Simon Brown wrote: > > > > Has anybody tried adding the functionality of %%(diary-sunrise-suns= et) > > > > (sunrise, sunset time and daylight hours) to the google weather cod= e? > > > I just have something like: > > >=20 > > > #+CATEGORY: Day/Year > > > &%%(diary-day-of-year) > > > #+CATEGORY: Sunrise > > > &%%(diary-sunrise-sunset) > >=20 > > That's where I am at the moment, with the weather forecast, sunrise > > and sunset times on different lines. I was wondering if the two could > > be integrated to make a one line weather forecast, sunrise and sunset > > times. ? > >=20 > > eg. > > Location: (icon) Chance of Rain, [-1,6] =E2=84=83, Sunrise 0658 Sunset = 1759 1101 hrs of daylight > >=20 >=20 > Just write your own function to take the individual results and concatena= te them, e.g. >=20 > --8<---------------cut here---------------start------------->8--- > (defun full-catastrophe () > (format "%s :: %s" (org-google-weather) (diary-sunrise-sunset))) > --8<---------------cut here---------------end--------------->8--- >=20 > and add=20 >=20 > --8<---------------cut here---------------start------------->8--- > %%(full-catastrophe) > --8<---------------cut here---------------end--------------->8--- Excellent, I like your style :-) Simon