Using pyephem
download python-dev - needed for header files
download and and uppack the pyephem source
sudo python setup.py install
will compile all the sources - tales quite a time
how to get at the mag dev code
remember that observer data is not updated automatically so this needs tobe advanced:
obs:date = date.now (or something)
simple examples
getting the time of the next sunrise (UTC) and then the sunset but advancing to the sunrise.
getting the moon phase and moon rise and set and time visible