Interactive banner

Laglene
Observer
Observer
Posts: 30
Joined: Thu Nov 04, 2021 4:44 pm
Location: Galargues 34
Station model: Davis pro 2
Software: Weatherlink
Contact:

Interactive banner

Post by Laglene » Wed Feb 15, 2023 5:23 pm

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?
Image

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

Re: Interactive banner

Post by FSC830 » Wed Feb 15, 2023 7:14 pm

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
Last edited by FSC830 on Thu Feb 16, 2023 7:25 pm, edited 1 time in total.
Image

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

Re: Interactive banner

Post by davidefa » Wed Feb 15, 2023 10:43 pm

As FSC830 said, I forgot to add this img folder to the php8 mod.
Simply uncompress it in your meteotemplate root directory
Image

Laglene
Observer
Observer
Posts: 30
Joined: Thu Nov 04, 2021 4:44 pm
Location: Galargues 34
Station model: Davis pro 2
Software: Weatherlink
Contact:

Re: Interactive banner

Post by Laglene » Fri Feb 17, 2023 6:17 pm

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

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

Re: Interactive banner

Post by FSC830 » Fri Feb 17, 2023 7:51 pm

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.
header.zip
(7.6 KiB) Downloaded 45 times
Edit: Correct header file uploaded, previous file was from my test environment with little modifications, I apologize.

Regards
Last edited by FSC830 on Sat Feb 18, 2023 2:38 pm, edited 2 times in total.
Image

Weerstation Bolsward
Newbie
Newbie
Posts: 7
Joined: Sun Jul 22, 2018 8:18 pm
Location: Bolsward
Station model: Davis Vantage Pro 2
Software: Meteobridge
Contact:

Re: Interactive banner

Post by Weerstation Bolsward » Sat Feb 18, 2023 2:07 pm

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

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

Re: Interactive banner

Post by FSC830 » Sat Feb 18, 2023 2:31 pm

Ooops, than I did upload the wrong header file :oops: .
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
Image

Weerstation Bolsward
Newbie
Newbie
Posts: 7
Joined: Sun Jul 22, 2018 8:18 pm
Location: Bolsward
Station model: Davis Vantage Pro 2
Software: Meteobridge
Contact:

Re: Interactive banner

Post by Weerstation Bolsward » Sat Feb 18, 2023 3:11 pm

Thanks for quick response, downloaded new header, and now it’s ok. No conditions in text anymore.

Regards Charlie

Laglene
Observer
Observer
Posts: 30
Joined: Thu Nov 04, 2021 4:44 pm
Location: Galargues 34
Station model: Davis pro 2
Software: Weatherlink
Contact:

Re: Interactive banner

Post by Laglene » Mon Feb 20, 2023 10:49 pm

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
Image

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

Re: Interactive banner

Post by FSC830 » Tue Feb 21, 2023 12:18 am

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
Image

Laglene
Observer
Observer
Posts: 30
Joined: Thu Nov 04, 2021 4:44 pm
Location: Galargues 34
Station model: Davis pro 2
Software: Weatherlink
Contact:

Re: Interactive banner

Post by Laglene » Tue Feb 21, 2023 8:02 am

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.
Last edited by Laglene on Tue Feb 21, 2023 8:04 am, edited 1 time in total.
Image

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

Re: Interactive banner

Post by FSC830 » Tue Feb 21, 2023 9:20 am

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?
Image

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

Re: Interactive banner

Post by FSC830 » Wed Feb 22, 2023 1:29 pm

Got it: :D

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.
headerMetar.zip
(10.41 KiB) Downloaded 38 times
Image

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

Re: Interactive banner

Post by alexvanuxem » Wed Feb 22, 2023 5:31 pm

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

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

Re: Interactive banner

Post by FSC830 » Wed Feb 22, 2023 5:35 pm

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

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

Re: Interactive banner

Post by alexvanuxem » Wed Feb 22, 2023 5:57 pm

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
Image

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

Re: Interactive banner

Post by FSC830 » Wed Feb 22, 2023 6:06 pm

:D I see, you mean the signature here in forum.
Never took a look into this :oops: , will do that in next time, so currently I cant give an answer, someone else needs to jump in.

Regards
Image

Laglene
Observer
Observer
Posts: 30
Joined: Thu Nov 04, 2021 4:44 pm
Location: Galargues 34
Station model: Davis pro 2
Software: Weatherlink
Contact:

Re: Interactive banner

Post by Laglene » Wed Feb 22, 2023 10:00 pm

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
Image

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

Re: Interactive banner

Post by FSC830 » Wed Feb 22, 2023 10:14 pm

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
Image

User avatar
lemimi
Advisor
Advisor
Posts: 86
Joined: Wed Dec 12, 2018 3:31 pm
Location: France - Normandie
Station model: Brandson 304557
Contact:

Re: Interactive banner

Post by lemimi » Thu Feb 23, 2023 8:18 am

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

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

Re: Interactive banner

Post by FSC830 » Thu Feb 23, 2023 8:55 am

As said in my last post, the animated version seems to have an issue with PHP8.x
Which PHP version are you running?

Regards
Image

User avatar
lemimi
Advisor
Advisor
Posts: 86
Joined: Wed Dec 12, 2018 3:31 pm
Location: France - Normandie
Station model: Brandson 304557
Contact:

Re: Interactive banner

Post by lemimi » Thu Feb 23, 2023 9:47 am

Hello,
My version is PHP 8.1.14
Regards

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

Re: Interactive banner

Post by FSC830 » Thu Feb 23, 2023 9:55 am

Hm, same version is running here (test and live).
Will take a look at this, but not with highest priority :D .

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! :D Found a newer version here.
Image

User avatar
lemimi
Advisor
Advisor
Posts: 86
Joined: Wed Dec 12, 2018 3:31 pm
Location: France - Normandie
Station model: Brandson 304557
Contact:

Re: Interactive banner

Post by lemimi » Thu Feb 23, 2023 10:49 am

Last edited by lemimi on Thu Feb 23, 2023 7:41 pm, edited 1 time in total.

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

Re: Interactive banner

Post by FSC830 » Thu Feb 23, 2023 11:00 am

Thanks a lot, replaced the previous version. 8-)

Regards
Image

Post Reply