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

Recent releases

  •  02 Jun 2004 11:58

    Release Notes: 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.

    •  01 Mar 2004 20:48

      Release Notes: 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.

      •  09 Feb 2004 20:30

        Release Notes: 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.

        •  07 Nov 2002 04:47

          No changes have been submitted for this release.

          Recent comments

          25 Sep 2009 06:23 camel69

          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

          Screenshot

          Project Spotlight

          OpenStack4j

          A Fluent OpenStack client API for Java.

          Screenshot

          Project Spotlight

          TurnKey TWiki Appliance

          A TWiki appliance that is easy to use and lightweight.