Does anyone know of a terminal application to display the sunrise/sunset times for a day given the date and long/lat. and/or the additional functionality of exporting a year long table for that long/lat?
along the same lines is there a desktop application to display the current moon phase and sunset/rise times?
Actually there is such tool which shows this in the Extras repositories. I don't remember how it is called though. OMWeather might also offer this by now.
For Linux in general there are some excellent GUI utilities which provide this feature. For console Linux, you can try
The latter is a GNU utility not to be confused with Google Calendar. From the manual:
Originally Posted by
Gcal displays hybrid and proleptic Julian and Gregorian calendar sheets, respectively, for one month, three months or a whole year. It also dis‐
plays eternal holiday lists for many countries around the globe, and features a very powerful creation of fixed date lists that can be used for
reminding purposes. Gcal can calculate various astronomical data and times of the Sun and the Moon for at pleasure any location, precisely enough
for most civil purposes. Gcal supports some other calendar systems, for example the Chinese and Japanese calendar, the Hebrew calendar and the
civil Islamic calendar, too.
I'm not sure if there is a Maemo port though, but it works on Ubuntu/Jaunty/AMD64 and Debian/Lenny/ARM. I'm sure its easy to get it ported in Scratchbox SDK.
If you use Google you can also find a very simple C or Python code which provides the sunrise/sunset for a specific long/lat but I don't remember how it was called. I discussed it here on this forum before though.
If you don't need a GUI, then I would also recommend writing a simple Python app using the 'PyEphem' libraries -- which were also used for MEphemeris and MChronos:
I use Other Maemo Weather v0.21.11 for this purpose but not in terminal... long/lat can be approximated by the weather station used but date can only be projected forward for only one week. Historic information can not be calculated... It also runs from a home screen applet which makes it handy.