Notices


Reply
Thread Tools
Posts: 1 | Thanked: 1 time | Joined on Jun 2009
#1
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?
 

The Following User Says Thank You to Sesrun For This Useful Post:
Posts: 104 | Thanked: 20 times | Joined on Apr 2008 @ Illinois
#2
Omweather, a desktop applet, displays the current sunset/sunrise times and moon phase.
 

The Following 2 Users Say Thank You to blowfish23 For This Useful Post:
allnameswereout's Avatar
Posts: 3,397 | Thanked: 1,212 times | Joined on Jul 2008 @ Netherlands
#3
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:
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.
__________________
Goosfraba! All text written by allnameswereout is public domain unless stated otherwise. Thank you for sharing your output!
 
darethehair's Avatar
Posts: 273 | Thanked: 104 times | Joined on Mar 2007 @ Manitoba, Canada
#4
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.
__________________
There is nothing more dangerous than a bored cat.
 

The Following 3 Users Say Thank You to darethehair For This Useful Post:
YoDude's Avatar
Posts: 2,869 | Thanked: 1,784 times | Joined on Feb 2007 @ Po' Bo'. PA
#5
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.

 
darethehair's Avatar
Posts: 273 | Thanked: 104 times | Joined on Mar 2007 @ Manitoba, Canada
#6
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.
__________________
There is nothing more dangerous than a bored cat.
 

The Following User Says Thank You to darethehair For This Useful Post:
Reply

Tags
application, moon, sun

Thread Tools

 
Forum Jump


All times are GMT. The time now is 01:50.