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.