You are not logged in.

#1 2026-12-01 01:30:39

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 1,348

Moongiant Conky Script

Website:

moongiant.png

I must admit that I haven't checked this excellent script by @TBG for a long time.
The reason is probably that I only use the current moon image (0.png) in accuweather conky:

curr-cond.png

The file  ~/Moongiant_conky_script/raw  appears normal, except for lines 25 and 27, where an unwanted piece of HTML code has appeared.
I easily removed that by adding  -e 's/°//g'  to the end of this line within the  moongiant  script (it should look like this):

sed -i -e 's/^.*moon_day_//g' -e 's/^ *<b>//g' -e's/<\/b><br>/\n/g' -e 's/^.*Phase: <span>//g' -e 's/^.* Illumination: <span>//g' -e 's/^.*Moon Age: <span>//g' -e 's/^.*Moon Angle: <span>//g' -e 's/^.*Moon Distance: <span>//g' -e 's/^.*Sun Angle: <span>//g' -e 's/^.*Sun Distance: <span>//g' -e '/<div class=\| Full Moon Calendar\|<h2 class=/d' -e 's/\.png.*$//g' -e 's/\.jpg.*$//g' -e 's/<br>$//g' -e 's/<br>/\n/g' -e 's/Illumination: <span>//' -e 's/<\/span>$//g' -e 's/<\/span>//g' -e 's/&deg;//g' $HOME/Moongiant_conky_script/raw
#### ^^^^  -e 's/&deg;//g'    Marens Settings - 30.11.2026

You can also use  -e 's/&deg;/°/g'  if you want to immediately get the " ° " sign in the file  ~/Moongiant_conky_script/raw.
This was not done to preserve @TBG's original work.

As far as I can see, lines 25 and 27 refer to some angles that I don't use in my "Weather & Moon" conky:

weather-moon.png

Note *
Here is my moongiant script plugin, which displays the Moon in real time—exactly as it appears in the sky—along with its illumination angle and visibility
https://forums.bunsenlabs.org/viewtopic … 46#p128546

EDIT:
Better explained.

Last edited by marens (2026-12-01 02:05:19)


If people would know how little brain is ruling the world, they would die of fear.

Offline

#2 Yesterday 16:17:56

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 3,205

Re: Moongiant Conky Script

^The "html code" has been removed.

However, I'm still seeing slight differences in today's data. Could the time of day be the cause?

819311163_bildschirmfoto_2026-12-02_17-12-34.png

Offline

#3 Yesterday 20:00:20

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 1,348

Re: Moongiant Conky Script

^ Did you wait for the data in Conky to update, or did you restart Conky?

As I said I don't use all the data for conky but everything seems to be fine here.

Website:

website.png data.png

Conky:

conky.png


If people would know how little brain is ruling the world, they would die of fear.

Offline

#4 Today 13:13:57

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 3,205

Re: Moongiant Conky Script

marens wrote:

^ Did you wait for the data in Conky to update, or did you restart Conky?

I tried both. The 8-minute refresh time probably wasn't enough.
Everything's fine today.

What's puzzling me is that your moon icons are all illuminated from below. I also tested the original version from @S11, and it's not like that.
What's different about yours?
819891397_bildschirmfoto_2026-12-03_14-03-53.png

Offline

#5 Today 16:02:40

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 1,348

Re: Moongiant Conky Script

^ I don't know anything about the version made by @S11.

If you look at my screenshot above, you will see that the icons are 'normal'.
This is best seen on a light blue background.

My plugin uses the same icons and displays the Moon in real time (exactly as it appears in the sky) for your location (latitude, longitude).
Astronomical calculations are used to determine the angle of illumination.
Moon visibility data for your location has been added.
The screenshot above shows Under Horizon.
I made the icons look more yellow (default), but I left the option to use the basic icons.

marens wrote:

Now the moon images is more yellow (default).
If you want to revert old images just add '#' before the second convert command and remove '#' before first convert command.

https://forums.bunsenlabs.org/viewtopic … 46#p128546


If people would know how little brain is ruling the world, they would die of fear.

Offline

Board footer

Powered by FluxBB