From owner-freebsd-stable@FreeBSD.ORG Thu Oct 9 12:24:27 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 07D6A1065686 for ; Thu, 9 Oct 2008 12:24:27 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from sola.nimnet.asn.au (paqi.nimnet.asn.au [220.233.188.227]) by mx1.freebsd.org (Postfix) with ESMTP id 78BD58FC08 for ; Thu, 9 Oct 2008 12:24:26 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id m99COOir056138; Thu, 9 Oct 2008 23:24:24 +1100 (EST) (envelope-from smithi@nimnet.asn.au) Date: Thu, 9 Oct 2008 23:24:24 +1100 (EST) From: Ian Smith To: Andrew D In-Reply-To: <48EDE8DC.8030108@webzone.net.au> Message-ID: <20081009224610.Q16723@sola.nimnet.asn.au> References: <884679.22561.qm@web110112.mail.gq1.yahoo.com> <48E75BB7.2060206@madpilot.net> <20081009145337.P16723@sola.nimnet.asn.au> <48EDE8DC.8030108@webzone.net.au> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: 'FreeBSD Stable' Subject: Re: sidetrack [was Re: 'at now' not working as expected] 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 12:24:27 -0000 On Thu, 9 Oct 2008, Andrew D wrote: > 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 :) > > HTH Sure does, thanks Andrew. Saved as text, very amenable to a bit of grep 'n awking. Took transit times too, useful for calibrating solar clocks. cheers, Ian