
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
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.
17 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.
17 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
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
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
16 years ago
Report
smarim
17 years ago
I've got a landscape background, and it fits in perfectly
Thank you for producing and posting it... :-)
Report
isaiah53
17 years ago
Report
archduke
17 years ago
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
17 years ago
Works prefectly ... thank you !
Report
isaiah53
17 years ago
Report
deadlove75
17 years ago
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
17 years ago
Report
djwilly
17 years ago
Report
archduke
17 years ago
Report
p0z3r
17 years ago
-p0z3r
Report