Projects / gkrellm Sun Clock

gkrellm Sun Clock

gkrellsun is a GKrellM plugin that displays information about the sun (sunrise/sunset times, solar path through the sky, etc.).

Licenses

Tweet this project Short link

Rss Recent releases

  • Rrelease-mid
  •  02 Jun 2004 04:58
  • Rrelease-after

Changes: Bugs associated with far northern latitudes where the sun appears to set before it rises were fixed. The mini-moon option was added back in.

  • Rrelease-mid
  •  01 Mar 2004 12:48
  • Rrelease-after

Changes: gkrellmoon's image has been merged into gkrellsun. The user can click on the Sun/Moon image to toggle between the two. The previous little moon has been removed.

  • Rrelease-mid
  •  09 Feb 2004 12:30
  • Rrelease-after

Changes: This release features a new static Sun image. The set/rise/ETA times are now actual fonts (instead of XPM images). The font and individual time colors may be changed. The moon image has been changed in order to view it better.

  • Rrelease-mid
  •  06 Nov 2002 23:47
  • Rrelease-after

No changes have been submitted for this release.

Rss Recent comments

Rcomment-before 25 Sep 2009 06:23 Rcomment-trans camel69 Rcomment-after Thumbsup-wht

I wrote a quick fix that turns the sun and moon path around in case the user's location is in the southern hemisphere (I live there at the moment and sun and moon travel from right to left). I'm not 100% sure if I got the offsets right, though. Since the author's email address doesn't work anymore, here's the patch:

--- src20/gkrellsun.c 2009-09-25 17:55:19.000000000 +1200
+++ src20/gkrellsun.c 2009-09-25 17:56:17.000000000 +1200
@@ -597,6 +597,11 @@
gint image_number = moon_image_number(sun->data.MoonPhase);
double alt = sun->data.h_moon;
int x = baseX + SUN_WIDTH - MOON_SM_WIDTH - SUN_INNER_XOFS;
+ if (options.latitude < 0)
+ {
+ x = SUN_WIDTH - x;
+ }
+
int y = 0;

gkrellm_draw_decal_pixmap(panel, moon_sm, MOON_SM_INVISIBLE);
@@ -863,6 +868,11 @@

/* Calculate plot pos */
pos_x = (int) (SUN_INNER_WIDTH * percentOfDay(&sununit, sununit.data.LST));
+ if (options.latitude < 0)
+ {
+ pos_x = SUN_INNER_WIDTH - pos_x;
+ }
+
pos_y = computeY(pos_x, altitudeAtNoon(&sununit));

image_x_offset = pos_x + baseX + SUN_INNER_XOFS - STAR_XOFS;

Just save that as gkrellsun.patch and do
cd gkrellsun-1.0.0
patch -p0 <gkrellsun.patch

No-screenshot

Project Spotlight

Qore YAML module

A YAML module for the Qore programming language.

No-screenshot

Project Spotlight

HTTP Anti Virus Proxy

A security HTTP proxy with an anti-virus scanner.