Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 09 Oct 2008 09:40:19 -0400
From:      Lowell Gilbert <freebsd-stable-local@be-well.ilk.org>
To:        Andrew D <andrewd@webzone.net.au>
Cc:        'FreeBSD Stable' <freebsd-stable@freebsd.org>, Ian Smith <smithi@nimnet.asn.au>
Subject:   Re: sidetrack
Message-ID:  <44y70xhoos.fsf@be-well.ilk.org>
In-Reply-To: <48EDE8DC.8030108@webzone.net.au> (Andrew D.'s message of "Thu\, 09 Oct 2008 21\:49\:56 %2B1030")
References:  <884679.22561.qm@web110112.mail.gq1.yahoo.com> <48E75BB7.2060206@madpilot.net> <e7db6d980810081817g6673b593pf9bb7e940562a340@mail.gmail.com> <20081009145337.P16723@sola.nimnet.asn.au> <48EDE8DC.8030108@webzone.net.au>

next in thread | previous in thread | raw e-mail | index | archive | help
Andrew D <andrewd@webzone.net.au> 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]



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44y70xhoos.fsf>