Page 3 of 3
Re: Interactive banner
Posted: Wed Sep 13, 2023 7:09 am
by FSC830
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
Re: Interactive banner
Posted: Wed Sep 13, 2023 7:38 am
by steph
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.
Re: Interactive banner
Posted: Wed Sep 13, 2023 7:47 am
by FSC830
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
parameter?
Regards
Edit: I see, checked by myself at your site. Seems, that the functions.php is not correct.
Please try this one and report back.
Re: Interactive banner
Posted: Wed Sep 13, 2023 10:11 am
by steph
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 (64.48 KiB) Viewed 43012 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
Re: Interactive banner
Posted: Wed Sep 13, 2023 10:36 am
by FSC830
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
Re: Interactive banner
Posted: Wed Sep 13, 2023 10:42 am
by steph
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
Re: Interactive banner
Posted: Wed Sep 13, 2023 10:45 am
by FSC830
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
Re: Interactive banner
Posted: Wed Sep 13, 2023 11:14 am
by steph
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.
Re: Interactive banner
Posted: Wed Nov 29, 2023 6:58 pm
by El_Viejo
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.
Re: Interactive banner
Posted: Sat Jan 06, 2024 7:30 pm
by FSC830
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
Re: Interactive banner
Posted: Sat Jan 06, 2024 8:45 pm
by El_Viejo
Thank you very much.
Indeed, your reply has clarified my doubts.
Best regards.
Re: Interactive banner
Posted: Thu Sep 19, 2024 10:00 am
by FSC830
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.
Re: Interactive banner
Posted: Sun Sep 22, 2024 5:23 am
by meteoesine
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
Re: Interactive banner
Posted: Sun Sep 22, 2024 10:37 am
by FSC830
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
Re: Interactive banner
Posted: Sun Sep 22, 2024 5:37 pm
by meteoesine
-16 for my location
great!
tnx
Re: Interactive banner
Posted: Mon Sep 23, 2024 4:11 am
by FSC830
Fine, thanks.
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
Re: Interactive banner
Posted: Sat Mar 08, 2025 9:39 pm
by linux150
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