karamba_moontool

Karamba & Superkaramba

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

0
5 .0
Description:

This theme creates a moonclock on your desktop using SuperKaramba. The lunar image is shaded to the actual phase in your favorite color and can be rotated. I've tested with version 0.33 and it appears to be stable, however, this is the first thing I've written, so you might experience some issues.

The image of the moon is shaded to the appropriate lunar phase by passing command line arguments to ImageMagick's convert. Therefore, you should ensure that the binary is correctly identified in drawmoon.py.

Left clicking on the moon will display text information, while middle clicking will display lunation information.

Using SuperKaramba's "Configure theme" menu, you can enter the shading color in anything understood by convert. The default it #00000080 which equates to a semi-transparent black. The typical syntax is #RRGGBBAA (# is required and AA is alpha channel). You can also change the units from kilometers to miles and change the rotation of the image. This gives you some added realism for what the moon looks like in your sky.
Last changelog:

16 years ago

Version 0.93:
* This time we actually update the moon graphic! ;-) 0.92
introduced a bug that caused the same image that was read by
convert, to be outputted by convert. This was really stupid, but
tough to track as you have to wait for the moon phase to change.
* Updated the Julian date conversion function to be more accurate, however,
this still needs to be verified for correctness.
* Added "Configure Theme" menu items to change the shading color and the
rotation of the moon. A future update will allow the shading and the moon
to have separate rotations.
* Added "Configure Theme" menu item to display distance's in miles vs.
kilometers (default)

Version 0.92:
* Corrected display of Julian date to include a trailing zero.
* Properly delete and create a new image handle for display graphic.
* If we're updating the moon graphic, we now remember the current phase fraction.
* Use karamba.getThemePath(widget) for graphics path vs. coded values.

Taita

15 years ago

Hi,

Further to my previous post you need to change these lines as well:

Line 350:
karamba.setMenuConfigOption(widget, "fillvalue", 0)

Line 354:
karamba.setMenuConfigOption(widget, "mrotation", 0)

Again change the "0" to 0. This allows the entry boxes to appear so that you can enter in new colour and rotation values.

Seems all OK now :)

Report

Taita

15 years ago

Hi,

I have just downloaded this and have found a bug in the python code. I am using Superkaramba v0.35 btw.

If you have problems starting this and the shell reports problems on line 86 then change the following:

Line 86:
karamba.setMenuConfigOption(widget, "fillvalue", 0)

Line 87:
karamba.setMenuConfigOption(widget, "mrotation", 0)

Note that the zeros have changed from "0" to 0 on both lines.

That is all you need to do and it will work perfectly:)

This is a great karamba btw. It is so nice to see something other than system monitors and launch bars. Keep up the excellent work :)

Report

itayf

15 years ago

great work!

Report

smarim

16 years ago

I just love it.
I've got a landscape background, and it fits in perfectly

Thank you for producing and posting it... :-)

Report

isaiah53

16 years ago

I have used gkrellm moon clock awhile but, frankly, it's too small for my aging eyes. Therefore, I _really_ like your work. Not being a programmer, is there a simple way for me to change kilometers to miles?

Report

C

archduke

16 years ago

Changing kilometers to miles can be done with a few edits to moontool.py. I'll make this an option in a later release, but for now there's 4 places that need to be editted. The change is easy, but I can generate a patch if you want. Listed below are the lines that should be changed and what they should be changed to....

Line 203:
"Moon's Distance:\t" + str(int(mdist*0.62137119)) + " miles, " \

Line 212:
"Sun's distance:\t" + str(int(sudist*0.62137119)) + " miles, " \

Line 262:
"Moon's Distance:\t" + str(int(mdist*0.62137119)) + " miles, " \

Line 269:
"Sun's distance:\t" + str(int(sudist*0.62137119)) + " miles, " \

Report

isaiah53

16 years ago

(Sometime after the work day)
Works prefectly ... thank you !

Report

isaiah53

16 years ago

Thank you - rushing off to work just now - I'll copy and paste to my editor for later application. Appreciate it !

Report

deadlove75

16 years ago

Hell-o,

I love this thing. And I do believe it is useful to Farmers, Hunters, Astrologists, Astronomers, Wiccans, and a whole bunch of folks whom I'm not thinking of right now. And plus it just looks cool.


Blessed Be,

Jason Hodges

Report

gnatman

16 years ago

This has earned a spot on my desktop, I just love this cool (although not useful) stuff.

Report

djwilly

16 years ago

This is not a wallpaper. This is a Karamba app, so you must put it on "Karamba" section, and not on "640x480 Wallpaper"

Report

C

archduke

16 years ago

This was a slip of the mouse. The category has been changed.

Report

p0z3r

16 years ago

Very innovative application you have here for superkaramba. Good to see new things crop up!
-p0z3r

Report

16 years ago

Version 0.93:
* This time we actually update the moon graphic! ;-) 0.92
introduced a bug that caused the same image that was read by
convert, to be outputted by convert. This was really stupid, but
tough to track as you have to wait for the moon phase to change.
* Updated the Julian date conversion function to be more accurate, however,
this still needs to be verified for correctness.
* Added "Configure Theme" menu items to change the shading color and the
rotation of the moon. A future update will allow the shading and the moon
to have separate rotations.
* Added "Configure Theme" menu item to display distance's in miles vs.
kilometers (default)

Version 0.92:
* Corrected display of Julian date to include a trailing zero.
* Properly delete and create a new image handle for display graphic.
* If we're updating the moon graphic, we now remember the current phase fraction.
* Use karamba.getThemePath(widget) for graphics path vs. coded values.

12345678910
product-maker Base: 4 x 5.0 Ratings
Be the first to comment
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
0.93
updated Jan 12 2004
added Jan 04 2004
downloads 24h
0
mediaviews 24h 0
pageviews 24h 0