CaptainIffy - 2013-06-24

Updated 24 June 2013.

The functionality and command line options have been completely revised. There are now 3 modes of operation:

Wait - Wait until specified sunrise or set (with offset)
Poll - Return immediately, indicating night or day. Return code and/or text.
list - List set of sunrise/set times.

An extra bonus is that you can now specify your own twilight angle. This is so much better than the simple time-based offset functionality (that is still included), as twilights have durations that vary more significantly nearer the poles between summer and winter. I prefer to turn the lamps on in my south facing rooms with a twilight angle of +2.75; but I use +4 for my north facing rooms (which seem darker, earlier).