Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    Sun/Moon Application

    Reply
    Sesrun | # 1 | 2009-06-02, 20:07 | Report

    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?

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to Sesrun For This Useful Post:
    Wikiwide

     
    blowfish23 | # 2 | 2009-06-02, 20:38 | Report

    Omweather, a desktop applet, displays the current sunset/sunrise times and moon phase.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 2 Users Say Thank You to blowfish23 For This Useful Post:
    timsamoff, Wikiwide

     
    allnameswereout | # 3 | 2009-06-02, 20:47 | Report

    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

    http://pynovas.sourceforge.net/
    http://libnova.sourceforge.net/
    http://www.gnu.org/software/gcal/

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    darethehair | # 4 | 2009-06-03, 12:27 | Report

    Well, my 'MEphemeris' app is way overkill, but it can do rise/set stuff -- and also plot those times for an entire year:

    http://talk.maemo.org/showthread.php?t=19545

    My desktop app 'MChronos' is much smaller, and presents rise/set only for the current day:

    http://talk.maemo.org/showthread.php?t=24776

    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:

    http://talk.maemo.org/showthread.php?t=18332

    With this, it is *very* easy to generate 'tables' for an entire year, as you have desired.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 3 Users Say Thank You to darethehair For This Useful Post:
    qwerty12, TA-t3, timsamoff

     
    YoDude | # 5 | 2009-06-03, 12:51 | Report

    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.


    Edit | Forward | Quote | Quick Reply | Thanks

     
    darethehair | # 6 | 2009-06-14, 12:54 | Report

    Sesrun:

    So, what did you end up doing to get the data you wanted? I would still recommend writing a very short script to call the 'PyEphem' library routines.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to darethehair For This Useful Post:
    Wikiwide

     
vBulletin® Version 3.8.8
Normal Logout