Lowell Gilbert freebsd-stable-local at
Thu Oct 9 13:40:22 UTC 2008

Andrew D <andrewd at> 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.
> 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]

More information about the freebsd-stable mailing list