Page 1 of 1
Intractive banner is stuck to blue sky
Posted: Sat Mar 09, 2019 3:26 pm
by Lespius
Hi All,
My interactive banner is now blocked on "blue sky" for a couple of weeks.
I know it is linked to the metar specified in the general configuration. I have check my Metar plugin, it is up-to-date (code LSGG)
http://www.meteo-cugy.ch/template/pages/metar/index.php
It looks like the information is no longer taking into account my Meteotemplate.
Does anyone noticed the same ?
Thanks
Alain
Re: Intractive banner is stuck to blue sky
Posted: Sat Mar 09, 2019 4:37 pm
by mchd17
now that you mention it, i haven't noticed mine changing from blue sky for a while. wonder if it's a https request issue
Re: Intractive banner is stuck to blue sky
Posted: Sat Mar 09, 2019 9:42 pm
by agallardo1980
Hi,
Effectly @mchd17 It's a https issue,
Change this in /template/header.php (Line 172):
Code: Select all
$urlMETAR = "http://tgftp.nws.noaa.gov/data/observations/metar/stations/".strtoupper($ICAO).".TXT";
by this:
Code: Select all
$urlMETAR = "https://tgftp.nws.noaa.gov/data/observations/metar/stations/".strtoupper($ICAO).".TXT";
In my website it's working now

Re: Intractive banner is stuck to blue sky
Posted: Sun Mar 10, 2019 12:18 am
by mchd17
Thanks!!
I also had to change code in /template/scripts/headerMetar.php
line 326 and 327
Code: Select all
//$no = "http://weather.noaa.gov/pub/data/x/stations/";
$no = "http://tgftp.nws.noaa.gov/data/x/stations/";
To this
Code: Select all
//$no = "https://weather.noaa.gov/pub/data/x/stations/";
$no = "https://tgftp.nws.noaa.gov/data/x/stations/";
Re: Intractive banner is stuck to blue sky
Posted: Sun Mar 10, 2019 10:23 am
by Jolumarali
it's perfect thanks to all
Re: Intractive banner is stuck to blue sky
Posted: Sun Mar 10, 2019 1:41 pm
by Lespius
Did the modifications, but no change.... Another idea ???
Re: Intractive banner is stuck to blue sky
Posted: Sun Mar 10, 2019 2:27 pm
by mchd17
Give it a bit of time, try control panel/clear metar cache
Re: Intractive banner is stuck to blue sky
Posted: Wed May 29, 2019 2:01 pm
by livejerseyweather
I am having this same problem and have tried all of the fixes has anyone else got it working?
Re: Intractive banner is stuck to blue sky
Posted: Wed May 29, 2019 2:42 pm
by dmgould
I made the code changes listed above, and mine started working properly. Go to the metar station you have entered into your main setup and make sure they are reporting correctly. I've had that issue in the past. If their sky report is not changing your banner won't change.
Re: Intractive banner is stuck to blue sky
Posted: Sun Aug 18, 2019 4:46 pm
by magical46
I am having the same issue of the banner nor changing. I have just done the code changes as above and cleared the cache, may take some time to change, but looking at the METAR weather plugin it says "invalid METAR code EGLF" which is the correct code for Farnborough. Whatever airport I put in (I.e. heathrow, gatwick, Odiham) it says invalid code.
Re: Intractive banner is stuck to blue sky
Posted: Mon Aug 19, 2019 1:12 am
by dmgould
I just went to the NWS report for your METAR station. It is not reporting sky conditions at all. That seems to be the issue rather than your code changes.
Re: Intractive banner is stuck to blue sky
Posted: Sat Aug 24, 2019 2:08 pm
by ugo.call
Also I have the same problem I changed the code in /template/scripts/headerMetar.php, I also emptied the cache but it doesn't work, if I go to open the interactiveBanner.txt file I find written N / A while the Metar page works perfectly.