Page 1 of 3
Interactive banner
Posted: Wed Feb 15, 2023 5:23 pm
by Laglene
Goodnight all,
As for the interactive banner, it only works partially. It partly reacts to the METAR of Montpellier (France), it perfectly follows the day/night phases but it forgets to indicate the changes of image backgrounds or even the weather observed live (raindrops and wind direction, snow , etc). Have any of you seen this issue and how was it resolved, if possible?
Maybe Davide has an idea?
Re: Interactive banner
Posted: Wed Feb 15, 2023 7:14 pm
by FSC830
Which header.php are you using?
Found an issue when I modified the file for PHP 8.x, the image names changed, so best solution is to have the original images and the images from Davids PHP8 modification in the directory. In that case, the interactive banner should work as expected.
Regards
Re: Interactive banner
Posted: Wed Feb 15, 2023 10:43 pm
by davidefa
As FSC830 said, I forgot to add
this img folder to the php8 mod.
Simply uncompress it in your meteotemplate root directory
Re: Interactive banner
Posted: Fri Feb 17, 2023 6:17 pm
by Laglene
Goodnight all,
Thanks to FSC830 and Davide for your quick response.
I actually changed header.php and it works except the day/night switch which remains stuck on day 24/24. Also the moon appears during the day but this may be normal in the new configuration.
Please let me know how to solve this little problem.
Excellent weekend to both of you but also to the whole community.
Re: Interactive banner
Posted: Fri Feb 17, 2023 7:51 pm
by FSC830
Hi,
attached is a header.php without moonview at day.
Day/night and interactiveBanner works fine with that at my test environment.
Be sure, that you have added the images from David.
Edit: Correct header file uploaded, previous file was from my test environment with little modifications, I apologize.
Regards
Re: Interactive banner
Posted: Sat Feb 18, 2023 2:07 pm
by Weerstation Bolsward
Hi all,
I had the same issues with the interactive banner, and now it all works again!
Thank you very much.
One question, in the interactive banner it is also giving the weatherconditions in text, like: conditions: overcast.
Is there a way to set these weatherconditions in another language than englisch?
Regards,
Charlie
Re: Interactive banner
Posted: Sat Feb 18, 2023 2:31 pm
by FSC830
Ooops, than I did upload the wrong header file

.
Thats only for my test environment with the conditions.
Its directly taken from the Metar information, so a translation is not done.
But in URL for the Metar information you can specify a language.
Edit: Wrong, I was mistaken again: the language can be specified in URL for openweathermap. Metar information is always in English.
Will upload the correct header shortly. -> done.
Regards
Re: Interactive banner
Posted: Sat Feb 18, 2023 3:11 pm
by Weerstation Bolsward
Thanks for quick response, downloaded new header, and now it’s ok. No conditions in text anymore.
Regards Charlie
Re: Interactive banner
Posted: Mon Feb 20, 2023 10:49 pm
by Laglene
Goodnight all,
Thank you all for your answers but however the problem remains with me.
The banner does not work.
There was better with Davide's header but there is a day/night problem.
With that of FSC830 the banner remains completely black with appearance of the moon.
I installed the correct images in the folder.
My site works in php 7.4 and some of our colleagues are still in this form and their banners work normally.
Is there a relation a correlation between the php versions and the functioning of the banner?
Do you have any idea what I should do?
Please and thank you again for your support.
Didier
Re: Interactive banner
Posted: Tue Feb 21, 2023 12:18 am
by FSC830
Yes, it sounds strange, but there is a relation between PHP and the interactive banner.
In PHP8.x the functions to evolve sunrise/sunset have been changed.
I did not check the modified banner backwards with PHP 7.4, I will do that later.
But please allow me to ask: if you are still at PHP7.4, why did you installed the header for PHP8.x?
Regards
Re: Interactive banner
Posted: Tue Feb 21, 2023 8:02 am
by Laglene
Good morning,
Because it didn't work in PHP7.4.
I had the night/day change but not the transformation of the images according to the weather.
Re: Interactive banner
Posted: Tue Feb 21, 2023 9:20 am
by FSC830
Strange...
Do you have both images (the origin ones and the ones from David) in the weatherBG directory?
Which Metar station (Code) are you using?
I saw, that my Metar station often reports "CAVOK" instead of a cloud information. CAVOK is
Clouds
And
Visibility
OK, but in origin code this ends in a "NA" (not availlable) for the conditions.
And NA again results in not displaying weather background images but the default day/night background.
So its may be an good idea to look up the Metar string which is send from your station.
I am too still running a 7.4 environment at my VM environment and header works as designed (using the original MT files, not any modified files for newer PHP version).
Regards
Edit: I see, you have an individual banner. What is preferred, the individual banner or the weather backgrounds? And Metar station is Montpellier?
Edit II: As far as I see, your interactiveBanner changes referring to the weather conditions? Today is a different banner than yesterday?
Re: Interactive banner
Posted: Wed Feb 22, 2023 1:29 pm
by FSC830
Got it:
As written above, a look to the Metar data is always an good idea.
Just noticed, that your header is not displaying a weather background and here is current Metar string:
Code: Select all
2023/02/22 13:00
LFMT 221300Z AUTO 10004KT CAVOK 14/10 Q1017 NOSIG
Regards
Edit: I modified the file in that way, that CAVOK is handled in same way as "partly cloudy". So a weatherBG image other than the
blank default is displayed.
Re: Interactive banner
Posted: Wed Feb 22, 2023 5:31 pm
by alexvanuxem
....interesting....
i'm still using php 7.4 , i tried to modify to 8.0 without succes , need more time
are there any settings to configure in the old header.php because now i noticed i never get night time, sunrise , sunset pics.
can you give me your settings for signature sticker?
it's not really interactive now i noticed.
grtz
A
Re: Interactive banner
Posted: Wed Feb 22, 2023 5:35 pm
by FSC830
What settings for a signature sticker you mean?
Regards
Edit: Your header looks like "fog" is the actual condition.
If you did not change code in the old header, the weather background should change depending to time and conditions.
The "interactive" refers to this (and some more, like rain&snow).
Which header are you currently using?
I see, that the Moon is shown, which was not default during daytime in old header.
Re: Interactive banner
Posted: Wed Feb 22, 2023 5:57 pm
by alexvanuxem
I use the v17.2 Nectarine 2019-06-27
In other stickers i can see month, year, today changing.
my type in the sticker is set to interactive.
grtz
A
Re: Interactive banner
Posted: Wed Feb 22, 2023 6:06 pm
by FSC830

I see, you mean the signature here in forum.
Never took a look into this

, will do that in next time, so currently I cant give an answer, someone else needs to jump in.
Regards
Re: Interactive banner
Posted: Wed Feb 22, 2023 10:00 pm
by Laglene
Good evening,
Thank you for your help, thanks to you my banner works perfectly.
It's really super!
If I may, what nationality are you?
Is it possible to send me the address of your site either in response to this message or in private.
thanks again
Didier
Re: Interactive banner
Posted: Wed Feb 22, 2023 10:14 pm
by FSC830
Just added the information some hours ago to my signature

.
The animated sticker seems not running in PHP8.x, if I find some time, I will look at that.
Regards
Re: Interactive banner
Posted: Thu Feb 23, 2023 8:18 am
by lemimi
Hello,
Maybe a clue..
Your banner is currently running with the
stickerInteractive.php file.
Ours run with
stickerInteractiveAnim.php.
If I replace
stickerInteractive.php with
stickerInteractiveAnim.php in your URL it gives me a
blank page.
If I insert my own address instead of yours it works.
https://lemimi.fr/template/plugins/stic ... ive&random
Maybe update or reload this file
Regards... Michel
Re: Interactive banner
Posted: Thu Feb 23, 2023 8:55 am
by FSC830
As said in my last post, the animated version seems to have an issue with PHP8.x
Which PHP version are you running?
Regards
Re: Interactive banner
Posted: Thu Feb 23, 2023 9:47 am
by lemimi
Hello,
My version is PHP 8.1.14
Regards
Re: Interactive banner
Posted: Thu Feb 23, 2023 9:55 am
by FSC830
Hm, same version is running here (test and live).
Will take a look at this, but not with highest priority

.
The static signature is sufficient for me.
Regards
Edit: Just checked, the animated PHP runs in my 7.4 lab, so its an 8.X issue.
Edit II: Got it!

Found a newer version
here.
Re: Interactive banner
Posted: Thu Feb 23, 2023 10:49 am
by lemimi
Re: Interactive banner
Posted: Thu Feb 23, 2023 11:00 am
by FSC830
Thanks a lot, replaced the previous version.
Regards