Interactive banner

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

Re: Interactive banner

Post by FSC830 » Wed Sep 13, 2023 7:09 am

The file from archive above should run with the latest version. Replace the files (save the old ones), run the main setup and enter your values.

Regards
Image

User avatar
steph
Observer
Observer
Posts: 37
Joined: Fri May 12, 2023 10:26 am
Station model: Ecowitt
Software: Ecowitt gw1100/Raspberry
Contact:

Re: Interactive banner

Post by steph » Wed Sep 13, 2023 7:38 am

Good morning,

thank you for your answer and of course I tried before posting ;)
I put the Header-ib.zip files which took me back to version 18 of Template.
So I upgraded to version 19 again and the banner no longer works.

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

Re: Interactive banner

Post by FSC830 » Wed Sep 13, 2023 7:47 am

Nope, these 3 files do not put you back to v18!? How did you check this?
Its running here at several installations, local VMs as well as real test-sites.
What is the exact error? Did you check with i.e. the

Code: Select all

?errors
parameter?

Regards

Edit: I see, checked by myself at your site. Seems, that the functions.php is not correct.
functions.php.zip
(9.37 KiB) Downloaded 1092 times
Please try this one and report back.
Image

User avatar
steph
Observer
Observer
Posts: 37
Joined: Fri May 12, 2023 10:26 am
Station model: Ecowitt
Software: Ecowitt gw1100/Raspberry
Contact:

Re: Interactive banner

Post by steph » Wed Sep 13, 2023 10:11 am

Thanks again for your feedback,

In fact the Header folder concerns 3 files and the setup.php file is clearly stipulated above
$templateVersionCurrent = 18.0;
$versionNameCurrent = "Papaya";
See Attachment.
Capture d'écran 2023-09-13 121110.png
Capture d'écran 2023-09-13 121110.png (64.48 KiB) Viewed 43016 times
So that took me straight back to version 18.
As for the Functions.php file, that's ok, I can modify it if it's not correct.
in which folder is the Functions.php.fs file?
Because the function.php file that I have in Scripts is more recent than the one you sent.

THANKS

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

Re: Interactive banner

Post by FSC830 » Wed Sep 13, 2023 10:36 am

The version information 18.0 is just a text string and was not modified. This does not indicate that the template files have been reversed back to this version.
Same for "Papaya", you can modify both strings to 19.0 and Cranberry if you feel better.

The function.php is in /templateroot/scripts, save the old one and copy the one from archive.

Regards
Image

User avatar
steph
Observer
Observer
Posts: 37
Joined: Fri May 12, 2023 10:26 am
Station model: Ecowitt
Software: Ecowitt gw1100/Raspberry
Contact:

Re: Interactive banner

Post by steph » Wed Sep 13, 2023 10:42 am

So I don't know,

I updated template 19
then I reinstalled the header-ib folder so the 3 files
setup.php
header.php
createconfig.php

And by doing this it brought me back to version 18.
So I reinstalled version 19.
But now I no longer dare to put the header-ib folder because I know that it will automatically revert to version 18.

For the Functions.php file I will transfer it.

THANKS

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

Re: Interactive banner

Post by FSC830 » Wed Sep 13, 2023 10:45 am

NO! I does not revert anything!
It is just a text string without any function. You can write 122.0 or any other version, it does NOT revert anything!

Regards
Image

User avatar
steph
Observer
Observer
Posts: 37
Joined: Fri May 12, 2023 10:26 am
Station model: Ecowitt
Software: Ecowitt gw1100/Raspberry
Contact:

Re: Interactive banner

Post by steph » Wed Sep 13, 2023 11:14 am

I reinstalled everything as agreed and you were right, I don't know what happened the first time.

But everything works again

Thank you very much for your help.

El_Viejo
Forecaster
Forecaster
Posts: 105
Joined: Wed Sep 11, 2019 3:56 pm
Location: Derio - Bizkaia - Spain
Station model: Ecowitt - Netatmo

Re: Interactive banner

Post by El_Viejo » Wed Nov 29, 2023 6:58 pm

I want to install the animated version of "Interactive banner", but I have some doubts.

I place "header.php" in the /template/ folder.
I put "setup.php" and "createConfig.php" in the /template/instal/ folder.

But, now what do I do.
If I run, from Chrome http:/xxx/galerna/template/install/setup.php" I will have to repeat all the template configuration.

If I open "Main configuration" what should I do?
In "Header image" > "Interactive Banner", there are only two options and neither seems to be useful.

Thank you very much for your help.

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

Re: Interactive banner

Post by FSC830 » Sat Jan 06, 2024 7:30 pm

Sorry, did not look into forum an extended time.
Is issue still present or did you found a solution meanwhile?

Because I am currently very busy, I cant promise to look again in the next days.

But I am trying to keep an eye here.

Edit: Yes, you need to run again the main setup, just confirm your settings or skip the entries (nothing will be changed).
But you will find now options for Moonview at day, local rain is showed up in interactive banner.

These options you need to modify or stay with the defaults.
Hope, this answers your question.

Regards
Last edited by FSC830 on Sat Jan 06, 2024 10:32 pm, edited 1 time in total.
Image

El_Viejo
Forecaster
Forecaster
Posts: 105
Joined: Wed Sep 11, 2019 3:56 pm
Location: Derio - Bizkaia - Spain
Station model: Ecowitt - Netatmo

Re: Interactive banner

Post by El_Viejo » Sat Jan 06, 2024 8:45 pm

Thank you very much.

Indeed, your reply has clarified my doubts.

Best regards.

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

Re: Interactive banner

Post by FSC830 » Thu Sep 19, 2024 10:00 am

I did some smaller updates for the interactive banner.

Now in interactive banner the tilted moon view from @davidefa is shown.

For what reasons ever the rotation was wrong at my location and I needed to set a correction.
In header.php, line 497 you will find "$moonRot = $moonRot -45;", the -45 (degree) is the correction, you may need to adjust this so that the rotation matches in your location.

Also I added an option to replace the subtitle with Metar information.
All can be done in the main setup.

In addition a minor bug was corrected in the createConfig.php: When doing a new installation and not using the local rain rate for the interactive banner some values have been stored as "" instead of a 0 (zero). This causes only a blank screen after setup was done.

The files are working in PHP 8.3, as always, backup the current files you are using.
Replace the files in your current site with the ones from archive.
Use at your own risk ;) , enjoy.

Regards

Update: For those who do not like editing the PHP file for the Moon rotation: with the updated files you can set the rotation in main setup too.
InteractiveBanner.zip
(315.98 KiB) Downloaded 727 times
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: Interactive banner

Post by meteoesine » Sun Sep 22, 2024 5:23 am

interesting, but I don't understand why -45....
I don't think it's your latitude, how did you come to understand that -45 is the right value? just to understand how I can get to find mine

tnx and regards
Norbert
:arrow: https://meteoesine.it
ham wx aprs/cwop: IW2LAO-13

Image

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

Re: Interactive banner

Post by FSC830 » Sun Sep 22, 2024 10:37 am

Hi,
it seems that the calculation is not correct. At least at my location the rotation did not match the origin view.
I found the -45 by "try and error". Its may be not exact and the deviation is in a range of 1 - 5 degrees, but when looking at the Moon I cant find a large difference.
Also I compared this with https://www.timeanddate.de/mond/deutsch ... rt-am-main and it matches.

I also did a look in the header.php and Astro.php script how the rotation is calculated. I saw that station latitude and longitude is used in formular, but the result was wrong ( I did not calculate it myself - just looking at the header).
So it was faster and easier to rotate the final resulting picture than digging into the formular and calculation.
Just set a 0 (zero) to check, if it matches at your location.

Looking for your feedback. :)

Regards
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: Interactive banner

Post by meteoesine » Sun Sep 22, 2024 5:37 pm

-16 for my location 8-)
great!
tnx
:arrow: https://meteoesine.it
ham wx aprs/cwop: IW2LAO-13

Image

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

Re: Interactive banner

Post by FSC830 » Mon Sep 23, 2024 4:11 am

Fine, thanks.
:D
So this confirms that the origin presentation was wrong.
When I find some time, I will again check the calculation to make my workaround obsolete.
But this will take some time.

Regards
Image

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

Re: Interactive banner

Post by linux150 » Sat Mar 08, 2025 9:39 pm

Hi, thanks for the moon in the banner.

I changed the calculation in astro.php from
$hm = (90-$stationLat)+$s+$moonLat;
to
$hm = (45-$stationLat)+$s+$moonLat;

Just Try and error and it works ....

LG
Martin

Post Reply