emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Simon Brown <lists@700c.org>
To: nicholas.dokos@hp.com
Cc: emacs-orgmode@gnu.org
Subject: Re: org google weather
Date: Fri, 04 Mar 2011 22:43:32 +0000	[thread overview]
Message-ID: <87k4geik17.wl%lists@700c.org> (raw)
In-Reply-To: <6122.1299276355@alphaville.usa.hp.com>

At Fri, 04 Mar 2011 17:05:55 -0500,
Nick Dokos wrote:
> Simon Brown <lists@700c.org> 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-sunset)
> > > > (sunrise, sunset time and daylight hours) to the google weather code?
> > > I just have something like:
> > > 
> > > #+CATEGORY: Day/Year
> > > &%%(diary-day-of-year)
> > > #+CATEGORY: Sunrise
> > > &%%(diary-sunrise-sunset)
> > 
> > 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. ?
> > 
> > eg.
> > Location: (icon) Chance of Rain, [-1,6] ℃, Sunrise 0658 Sunset 1759 1101 hrs of daylight
> > 
> 
> Just write your own function to take the individual results and concatenate them, e.g.
> 
> --8<---------------cut here---------------start------------->8---
> (defun full-catastrophe ()
>   (format "%s :: %s" (org-google-weather) (diary-sunrise-sunset)))
> --8<---------------cut here---------------end--------------->8---
> 
> and add 
> 
> --8<---------------cut here---------------start------------->8---
> %%(full-catastrophe)
> --8<---------------cut here---------------end--------------->8---

Excellent, I like your style :-)

Simon

      parent reply	other threads:[~2011-03-04 22:43 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-03 21:37 org google weather Simon Brown
2011-03-04  8:40 ` Ian Barton
2011-03-04  9:08   ` Sébastien Vauban
2011-03-04 11:27     ` Ian Barton
2011-03-04 15:29       ` brian powell
2011-03-04 16:38       ` Nick Dokos
2011-03-04 19:28         ` Bastien
2011-03-04 19:42         ` Konrad Hinsen
2011-03-04 20:26           ` Nick Dokos
2011-03-05 10:19             ` Bastien
2011-03-05 11:44               ` Matthew Sauer
2011-03-05 13:26                 ` Konrad Hinsen
2011-03-05 14:57                   ` Matthew Sauer
2011-03-05 15:15                     ` Michael Markert
2011-03-05 15:23                     ` Nick Dokos
2011-03-05 17:46                       ` Matthew Sauer
2011-03-05 19:57                         ` Nick Dokos
2011-03-05 14:29               ` Konrad Hinsen
2011-03-05 17:07                 ` Bastien
2011-03-05 20:35                   ` Konrad Hinsen
2011-03-05 21:19                     ` brian powell
2011-03-05 23:51                     ` Nick Dokos
2011-03-06 10:33                       ` Konrad Hinsen
2011-03-06 11:20                         ` Konrad Hinsen
2011-03-04 23:03         ` Sébastien Vauban
2011-03-04 23:25           ` Nick Dokos
2011-03-04 21:28   ` Simon Brown
2011-03-04 22:05     ` Nick Dokos
2011-03-04 22:29       ` Nick Dokos
2011-03-04 22:43       ` Simon Brown [this message]

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=87k4geik17.wl%lists@700c.org \
    --to=lists@700c.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=nicholas.dokos@hp.com \
    /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).