Description:

This plasmoid displays the current phase of the moon.

If you click on it, a dialog appears which shows the dates of the important moon phases in the same month (last new moon, first quarter, full moon, third quarter and next new moon).

The format in which these dates are shown can be customized.

You can navigate to previous or future moon phases by clicking the arrow buttons or by pressing the arrow keys. Clicking the middle button or pressing the "Home" key returns to the current dates.

This is a port to Plasma 5 of:

Luna QML
Version 1.4
https://store.kde.org/p/1002036/
Last changelog:

2.1-beta 1 month ago

Changed the image because the original was wrong (edit LunaIcon.qml if you want to change the image back).
Draws the phase shadow on a full moon image instead of needing an image per day.
Terminator position is updated hourly, so the plasmoid appearance should match the actual moon better.
Plasmoid maintains a circular aspect when resized.

It's a beta because the way it works has been changed.

ChaseKiwi

1 month ago

Thanks dxtwjb for your work. The original svg artwork is low resolution. I did a quick hack of the files to get high resolution (actually smaller file size). Can't post here as did not use clearly declared public domain image of full moon but any one who has one in 80X80 png format say can do my hack on 2.0.3 file.

Actions are:
1)Find a full moon image (for your hemisphere) and resize to 80*80 with background colour to alpha (GIMP) and save as .png
2) Create an SVG embedded png file in Inkscape and copy the resulting image file extract in say KWrite. it will look something like
Decompress the package zip file
3)Edit each image found in package>contents>data manually in KWrite by pasting over all the data except the most external layer that contains the shadow for that phase of the moon. eg fully functional luna-gskbyte0.svg looks something now from the layer 1 declaration like:

4) after your manual edit of each svg file you will need to fine tune it in inkscape so size of your embedded picture matches size shadow and are exactly superimposed. eg you will need to ungroup for editing, regroup and resize group to coordinates 0,0 ,80,80.
5) create the zip file of your package and install in usual way (eg $ plasmapkg2 -i package)

Do note you have to uninstall any Luna II widget you had previously and due to image caching if you check as you go you can get old images unless you logout

Cheers

Report

dxtwjb

1 month ago

I've had a new version in work a while, held up by my non-existent drawing ability. This version is easier to tweak.

Try 2.1 - it just needs just one image (full moon). The image needs to be square with an even number of pixels per side, and the disk of the moon needs to touch each side of the image. Put the file into the data directory and edit LunaIcon.qml to match. (selecting an image file might become a config item sometime).

Report

mzsgmailcom

4 months ago

Can you provide a pre-compiled one?
I compiled it myself, and it did not work on my system.

Report

dxtwjb

4 months ago

I'll take a look. I think its the structure inside the zip is different to others.

Report

2.1-beta 1 month ago

Changed the image because the original was wrong (edit LunaIcon.qml if you want to change the image back).
Draws the phase shadow on a full moon image instead of needing an image per day.
Terminator position is updated hourly, so the plasmoid appearance should match the actual moon better.
Plasmoid maintains a circular aspect when resized.

It's a beta because the way it works has been changed.

2.0.3 3 months ago

- stop trampling over theme
- fix tooltips for Qt5.5

2.0.2 3 months ago

Aim for compatibility with >=Qt5.5

2.0.1 4 months ago

Rearranged zip contents so it should install correctly from Add Widgets | Get New | Download New.

File (click to download) Version Description Filetype Packagetype License Downloads Date Filesize OCS-Install
Details
version
2.0.3
updated May 07 2017
added Dec 14 2016
downloads
page views 2840