emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] org google weather


From: Ian Barton
Subject: Re: [O] org google weather
Date: Fri, 04 Mar 2011 08:40:23 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.14) Gecko/20110223 Thunderbird/3.1.8

On 03/03/11 21:37, Simon Brown wrote:
Evening all,

Has anybody tried adding the functionality of %%(diary-sunrise-sunset)
(sunrise, sunset time and daylight hours) to the google weather code?

Simon

I just have something like:

#+CATEGORY: Day/Year
&%%(diary-day-of-year)
#+CATEGORY: Sunrise
&%%(diary-sunrise-sunset)

in one of my Agenda files. Sunrise then appears at sunrise time in my Agenda like:

Sunrise: 6:53...... Sunrise (GMT), sunset 5:52pm (GMT) at Wilkesley (10:58 hours daylight)

You need to have some magic fu like:

#+BEGIN_SRC emacs-lisp
  (setq calendar-latitude 53)
  (setq calendar-longitude -2.6)
  (setq calendar-location-name "Wilkesley")
#+END_SRC

in your .emacs so Emacs knows where you are.

Ian.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]