Page 1 of 1

Moon tilted

Posted: Thu Nov 23, 2023 10:46 pm
by davidefa
I always wanted to show the moon as it looks in the sky ( and it took me a 'fair amount of time' to accomplish this, svg rocks ).
Uncompress the archive in the meteotemplate base directory.

Note
The moon is shown tilted only when above the horizon ( is vertical when below the horizon ).
Tested working on firefox, chrome and edge.
Cranberry 19.0 version

Ver 1.1
- this version should be ok for southern hemisphere

luna_a_barchetta.png
luna_a_barchetta.png (20.88 KiB) Viewed 30272 times

Re: Moon tilted

Posted: Fri Nov 24, 2023 3:55 pm
by meteoesine
perfect
well done!

Re: Moon tilted

Posted: Fri Nov 24, 2023 4:31 pm
by alexvanuxem
I would like to say the same, but I don't see the moon.

Didn't see the moon, before update.

What am I doing wrong?

The header is set as interactive.

Thanks!

Alex

Re: Moon tilted

Posted: Fri Nov 24, 2023 5:00 pm
by tobydude
Looks like it works on my page.
The moon sudently came up in headher.
Thanks

Re: Moon tilted

Posted: Fri Nov 24, 2023 6:09 pm
by alexvanuxem
can all of you please align your setups please...

the one that @FSC830 works fine, but updating them to @davidefa doesn't.

thx :-)

Re: Moon tilted

Posted: Fri Nov 24, 2023 6:37 pm
by tobydude
moon_a_barchetta_c19.0_1.0.zip :

I put the moon image in /public_html/template/imgs/moon
The header.php in /public_html/template
The two scripts I put in /public_html/template/scripts

Re: Moon tilted

Posted: Fri Nov 24, 2023 10:53 pm
by davidefa
@alexvanuxem

The moon is shown only in daytime ( to show the moon all day add a $moonView = true; at/after line 277 of header.php )

Not sure to understand: 'can all of you please align your setups please...'

Re: Moon tilted

Posted: Sat Nov 25, 2023 6:28 am
by meteoesine
these are my working header.php and function.php
(aligned by me including all recent mods: php8.2, show rain in banner when it rains, moon phase, ...)
@davidefa compare them with yours

I also attach the images of the interactive banner that I customized, to be installed in the folder
/template/img/forecastImgs/weather_bg

Re: Moon tilted

Posted: Sat Nov 25, 2023 3:59 pm
by alexvanuxem
Thanks to everyone ,

Sorry to be so annoying. :D

All is working!

Re: Moon tilted

Posted: Thu May 02, 2024 11:58 pm
by linux150
Hi, silly question but where do i get the astro.php in scripts ?
No download token until today, so i updated all by hand and now i want to try your header.php but the astro.php is missing ....

greetings
Martin

Re: Moon tilted

Posted: Mon Sep 23, 2024 7:06 am
by FSC830
Please see also this post.

Regards