Thank you for this fantastic little tool. Works great on macOS with CoreLocation. Have already implemented it in a little script of my own. (Will post the link once it's up.)
Two little suggestions. The more important one would be a --floating option, i.e. don't show the sunrise and sunset for the current date, but show the previous event and the next two events, depending on the time of day. So at noon (while light) it would look like…
last sunrise: <time today>
next sunset: <time today>
next sunrise: <time tomorrow>
… and e.g. shortly after midnight (while dark) it would look like…
last sunset: <time yesterday>
next sunrise: <time today>
next sunset: <time today>
The second suggestion (less important) would be the --apparent option to calculcate not the astronomical times of sunrise and sunset, but the times of the apparent sunrises and sunsets. (Due to light refraction in the atmosphere, apparent sunset is a little later than the real sunset, and apparent sunrise is a little earlier than real sunrise.)
Thank you for this fantastic little tool. Works great on macOS with CoreLocation. Have already implemented it in a little script of my own. (Will post the link once it's up.)
Two little suggestions. The more important one would be a
--floating
option, i.e. don't show the sunrise and sunset for the current date, but show the previous event and the next two events, depending on the time of day. So at noon (while light) it would look like…… and e.g. shortly after midnight (while dark) it would look like…
The second suggestion (less important) would be the
--apparent
option to calculcate not the astronomical times of sunrise and sunset, but the times of the apparent sunrises and sunsets. (Due to light refraction in the atmosphere, apparent sunset is a little later than the real sunset, and apparent sunrise is a little earlier than real sunrise.)