From owner-freebsd-stable@FreeBSD.ORG Thu Oct 9 13:40:22 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3B57F1065688 for ; Thu, 9 Oct 2008 13:40:22 +0000 (UTC) (envelope-from freebsd-stable-local@be-well.ilk.org) Received: from mail5.sea5.speakeasy.net (mail5.sea5.speakeasy.net [69.17.117.7]) by mx1.freebsd.org (Postfix) with ESMTP id 127618FC1E for ; Thu, 9 Oct 2008 13:40:21 +0000 (UTC) (envelope-from freebsd-stable-local@be-well.ilk.org) Received: (qmail 17080 invoked from network); 9 Oct 2008 13:40:21 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail5.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 9 Oct 2008 13:40:21 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id F01CA28465; Thu, 9 Oct 2008 09:40:19 -0400 (EDT) To: Andrew D References: <884679.22561.qm@web110112.mail.gq1.yahoo.com> <48E75BB7.2060206@madpilot.net> <20081009145337.P16723@sola.nimnet.asn.au> <48EDE8DC.8030108@webzone.net.au> From: Lowell Gilbert Date: Thu, 09 Oct 2008 09:40:19 -0400 In-Reply-To: <48EDE8DC.8030108@webzone.net.au> (Andrew D.'s message of "Thu\, 09 Oct 2008 21\:49\:56 +1030") Message-ID: <44y70xhoos.fsf@be-well.ilk.org> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: 'FreeBSD Stable' , Ian Smith Subject: Re: sidetrack X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Oct 2008 13:40:22 -0000 Andrew D writes: > Hi Ian, > > Ian Smith wrote: >> On Wed, 8 Oct 2008, Peter Wemm wrote: >> [..] >> > My tolerance for hacking at(1) code was exceeded when I added hacks >> > for 'at sunrise' and 'at sunset' support to a local version. It >> > wasn't pretty, especially when handling things like '30 minutes before >> > sunrise' etc. (I use this for home automation stuff) >> >> Peter, just curious .. from where do you pull the current >> sunrise/sunset info for your location, and in what form? >> > > In Australia, you get it from Geoscience Australia. > > http://www.ga.gov.au/geodesy/astro/sunrise.jsp > > Just need a few curl queries and then extract the required info from > the html source :) You can get and hack the code they're using, too. On your Freebsd box, you can use astro/sscalc among a bunch of other ways of calculating the solar data. [My favorite example: emacs has lisp code for doing it, with glue for using it in the diary mode]