Moon tilted

Post Reply
davidefa
Expert
Expert
Posts: 905
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Moon tilted

Post by davidefa » Thu Nov 23, 2023 10:46 pm

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 26453 times
Attachments
moon_a_barchetta_c19.0_1.1.zip
(258.05 KiB) Downloaded 663 times
moon_a_barchetta_c19.0_1.0.zip
(258.04 KiB) Downloaded 619 times
Last edited by davidefa on Sat Nov 25, 2023 10:18 pm, edited 1 time in total.
Image

User avatar
meteoesine
Forecaster
Forecaster
Posts: 186
Joined: Sun Aug 20, 2017 4:08 pm
Location: Esine, Valcamonica (BS) - Italy
Station model: Davis Pro2+
Software: Meteobridge nano
Contact:

Re: Moon tilted

Post by meteoesine » Fri Nov 24, 2023 3:55 pm

perfect
well done!
Attachments
Screenshot - 24_11_2023 , 16_44_31.jpg
Screenshot - 24_11_2023 , 16_44_31.jpg (67.43 KiB) Viewed 26434 times
:arrow: https://meteoesine.it
ham wx aprs/cwop: IW2LAO-13

Image

alexvanuxem
Forecaster
Forecaster
Posts: 222
Joined: Mon Jan 31, 2022 4:41 pm
Location: Sint-Katelijne-Waver, Belgium
Station model: Davis Vantage Pro 2
Software: Meteobridge
Contact:

Re: Moon tilted

Post by alexvanuxem » Fri Nov 24, 2023 4:31 pm

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
Image

User avatar
tobydude
Forecaster
Forecaster
Posts: 206
Joined: Sun Jan 07, 2018 6:43 pm
Location: Norway
Station model: Netatmo
Software: Weatherdiaplay
Contact:

Re: Moon tilted

Post by tobydude » Fri Nov 24, 2023 5:00 pm

Looks like it works on my page.
The moon sudently came up in headher.
Thanks

alexvanuxem
Forecaster
Forecaster
Posts: 222
Joined: Mon Jan 31, 2022 4:41 pm
Location: Sint-Katelijne-Waver, Belgium
Station model: Davis Vantage Pro 2
Software: Meteobridge
Contact:

Re: Moon tilted

Post by alexvanuxem » Fri Nov 24, 2023 6:09 pm

can all of you please align your setups please...

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

thx :-)
Image

User avatar
tobydude
Forecaster
Forecaster
Posts: 206
Joined: Sun Jan 07, 2018 6:43 pm
Location: Norway
Station model: Netatmo
Software: Weatherdiaplay
Contact:

Re: Moon tilted

Post by tobydude » Fri Nov 24, 2023 6:37 pm

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

davidefa
Expert
Expert
Posts: 905
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: Moon tilted

Post by davidefa » Fri Nov 24, 2023 10:53 pm

@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...'
Image

User avatar
meteoesine
Forecaster
Forecaster
Posts: 186
Joined: Sun Aug 20, 2017 4:08 pm
Location: Esine, Valcamonica (BS) - Italy
Station model: Davis Pro2+
Software: Meteobridge nano
Contact:

Re: Moon tilted

Post by meteoesine » Sat Nov 25, 2023 6:28 am

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
Attachments
weather_bg.zip
(563.28 KiB) Downloaded 660 times
header.zip
(18.55 KiB) Downloaded 632 times
:arrow: https://meteoesine.it
ham wx aprs/cwop: IW2LAO-13

Image

alexvanuxem
Forecaster
Forecaster
Posts: 222
Joined: Mon Jan 31, 2022 4:41 pm
Location: Sint-Katelijne-Waver, Belgium
Station model: Davis Vantage Pro 2
Software: Meteobridge
Contact:

Re: Moon tilted

Post by alexvanuxem » Sat Nov 25, 2023 3:59 pm

Thanks to everyone ,

Sorry to be so annoying. :D

All is working!
Image

linux150
Observer
Observer
Posts: 26
Joined: Sat May 22, 2021 12:18 pm
Station model: WMR968
Software: SDR -> Weewx -> MT
Contact:

Re: Moon tilted

Post by linux150 » Thu May 02, 2024 11:58 pm

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

FSC830
Forecaster
Forecaster
Posts: 195
Joined: Thu Aug 02, 2018 11:40 am
Station model: Davis Vantage Pro2
Software: Meteobridge

Re: Moon tilted

Post by FSC830 » Mon Sep 23, 2024 7:06 am

Please see also this post.

Regards
Image

Post Reply