Page 1 of 2

Regional network mesonet-map updated V3.08

Posted: Sun 13 Aug 2017 1:10 am
by saratogaWX
One of our networks (CZWN) went HTTPS-only.

mesonet-map-common.php V3.08 was released to use curl for the access to the regional network's config/data files to produce the mesonet-map.

You can use mesonet-map-check-versions.php on your installation to see what file(s) may need update.

Download the full zip and instructions here or just the mesonet-map-common.php V3.08 - 12-Aug-2017 from here

Best regards,
Ken

Re: Regional network mesonet-map updated V3.08

Posted: Sun 13 Aug 2017 7:44 pm
by ConligWX
Ken I seem to have lost the weather sites on the map. my mesonet now just shows maps only with not actual stations or data - though are listed in the TABs. (current Conditions, Station features seem ok.

https://www.conligwx.org/wxmesonetmap.php?net=UKWN

I have tried different browsers but all appear to show the same (just a map)

apache errorlog:

Code: Select all

[Sun Aug 13 20:52:08.865226 2017] [php7:warn] [pid 18204:tid 140308872333056] [client x.x.x.x:1048] PHP Warning:  A non-numeric value encountered in /share/CACHEDEV1_DATA/htdocs/weather/mesonet-map-common.php on line 493, referer: https://www.conligwx.org/wxmesonetmap.php
[Sun Aug 13 20:52:08.866028 2017] [php7:warn] [pid 18204:tid 140308872333056] [client x.x.x.x:1048] PHP Warning:  A non-numeric value encountered in /share/CACHEDEV1_DATA/htdocs/weather/mesonet-map-common.php on line 493, referer: https://www.conligwx.org/wxmesonetmap.php
[Sun Aug 13 20:52:08.872728 2017] [php7:warn] [pid 18204:tid 140308872333056] [client x.x.x.x:1048] PHP Warning:  A non-numeric value encountered in /share/CACHEDEV1_DATA/htdocs/weather/mesonet-map-common.php on line 493, referer: https://www.conligwx.org/wxmesonetmap.php
[Sun Aug 13 20:52:17.478676 2017] [php7:warn] [pid 18204:tid 140308973045504] [client x.x.x.x:1048] PHP Warning:  A non-numeric value encountered in /share/CACHEDEV1_DATA/htdocs/weather/mesonet-map-common.php on line 497, referer: https://www.conligwx.org/wxmesonetmap.php?net=NAMWN
[Sun Aug 13 20:52:17.478896 2017] [php7:warn] [pid 18204:tid 140308973045504] [client x.x.x.x:1048] PHP Warning:  A non-numeric value encountered in /share/CACHEDEV1_DATA/htdocs/weather/mesonet-map-common.php on line 497, referer: https://www.conligwx.org/wxmesonetmap.php?net=NAMWN
[Sun Aug 13 20:52:17.479358 2017] [php7:warn] [pid 18204:tid 140308973045504] [client x.x.x.x:1048] PHP Warning:  A non-numeric value encountered in /share/CACHEDEV1_DATA/htdocs/weather/mesonet-map-common.php on line 497, referer: https://www.conligwx.org/wxmesonetmap.php?net=NAMWN
[Sun Aug 13 20:52:17.479654 2017] [php7:warn] [pid 18204:tid 140308973045504] [client x.x.x.x:1048] PHP Warning:  A non-numeric value encountered in /share/CACHEDEV1_DATA/htdocs/weather/mesonet-map-common.php on line 497, referer: https://www.conligwx.org/wxmesonetmap.php?net=NAMWN
[Sun Aug 13 20:52:59.911403 2017] [php7:warn] [pid 18118:tid 140308922689280] [client x.x.x.x:1485] PHP Warning:  A non-numeric value encountered in /share/CACHEDEV1_DATA/htdocs/weather/mesonet-map-common.php on line 497, referer: https://www.conligwx.org/wxmesonetmap.php?net=NAMWN
[Sun Aug 13 20:52:59.911650 2017] [php7:warn] [pid 18118:tid 140308922689280] [client x.x.x.x:1485] PHP Warning:  A non-numeric value encountered in /share/CACHEDEV1_DATA/htdocs/weather/mesonet-map-common.php on line 497, referer: https://www.conligwx.org/wxmesonetmap.php?net=NAMWN
[Sun Aug 13 20:52:59.912050 2017] [php7:warn] [pid 18118:tid 140308922689280] [client x.x.x.x:1485] PHP Warning:  A non-numeric value encountered in /share/CACHEDEV1_DATA/htdocs/weather/mesonet-map-common.php on line 497, referer: https://www.conligwx.org/wxmesonetmap.php?net=NAMWN
[Sun Aug 13 20:52:59.912221 2017] [php7:warn] [pid 18118:tid 140308922689280] [client x.x.x.x:1485] PHP Warning:  A non-numeric value encountered in /share/CACHEDEV1_DATA/htdocs/weather/mesonet-map-common.php on line 497, referer: https://www.conligwx.org/wxmesonetmap.php?net=NAMWN
[Sun Aug 13 20:52:59.912555 2017] [php7:warn] [pid 18118:tid 140308922689280] [client x.x.x.x:1485] PHP Warning:  A non-numeric value encountered in /share/CACHEDEV1_DATA/htdocs/weather/mesonet-map-common.php on line 497, referer: https://www.conligwx.org/wxmesonetmap.php?net=NAMWN
[Sun Aug 13 20:53:19.461449 2017] [php7:warn] [pid 18204:tid 140308964652800] [client x.x.x.x:1400] PHP Warning:  A non-numeric value encountered in /share/CACHEDEV1_DATA/htdocs/weather/mesonet-map-common.php on line 493, referer: https://www.conligwx.org/wxmesonetmap.php
[Sun Aug 13 20:53:19.462250 2017] [php7:warn] [pid 18204:tid 140308964652800] [client x.x.x.x:1400] PHP Warning:  A non-numeric value encountered in /share/CACHEDEV1_DATA/htdocs/weather/mesonet-map-common.php on line 493, referer: https://www.conligwx.org/wxmesonetmap.php
[Sun Aug 13 20:53:19.468881 2017] [php7:warn] [pid 18204:tid 140308964652800] [client x.x.x.x:1400] PHP Warning:  A non-numeric value encountered in /share/CACHEDEV1_DATA/htdocs/weather/mesonet-map-common.php on line 493, referer: https://www.conligwx.org/wxmesonetmap.php
I've reverted back to my previous backup and mesonet working ok now.

will try to see whats up tomorrow.

Re: Regional network mesonet-map updated V3.08

Posted: Mon 14 Aug 2017 2:02 am
by saratogaWX
Busted.. you found parts that I'd NOT updated, and I've not been watching my error_log closely for a while.

The issue was caused by no readings for GUST (mostly) and in some instances by bad reading for TEMP or HUM in the fire-danger script.

I've added some is_numeric() checks before trying to do math on the values.

Try V3.09 of mesonet-map-common.php here and let me know if that cures the error_log entries you've been seeing. Try it on all the nets (please)... I did on my site (7.1.8) and no more errata shown for me :)

Re: Regional network mesonet-map updated V3.08

Posted: Mon 14 Aug 2017 6:51 am
by ConligWX
Looking good Ken! run through all weather networks, no errors reporting in apache logs. :clap:

Re: Regional network mesonet-map updated V3.08

Posted: Mon 14 Aug 2017 4:15 pm
by saratogaWX
Thanks! I've released 3.09 of mesonet-map-common.php with those fixes.

Re: Regional network mesonet-map updated V3.08

Posted: Mon 14 Aug 2017 6:35 pm
by ConligWX
Your welcome, glad to help

Re: Regional network mesonet-map updated V3.08

Posted: Sun 12 Nov 2017 6:29 pm
by Mapantz
My data doesn't seem to be showing on the meso map any more, just N/A
It seems there are quite a few stations showing N/A.

Just wondering if anything has changed, or something I need to update? I'm using 3.09. :)

Re: Regional network mesonet-map updated V3.08

Posted: Sun 12 Nov 2017 6:40 pm
by saratogaWX
The data collector status for the UKWN at http://www.ukwx.net/UKWN-cache.html shows
Details for Dorset Wareham (UKWN-stations-cc.txt record 136):

<!-- type='STCU' RawDataURL = 'http://www.warehamwx.co.uk/cumulus/realtime.txt' -->
<!-- curl fetching 'http://www.warehamwx.co.uk/cumulus/realtime.txt' -->
<!-- HTTP stats: RC=301 dest=185.145.203.195 port=80 (from sce=10.0.18.197)
Times: dns=0.000 conn=0.006 pxfer=0.006 get=0.006 total=0.012 secs -->
<!-- headers:
HTTP/1.1 301 Moved Permanently
Content-Type: text/html
Content-Length: 1147
Date: Sun, 12 Nov 2017 18:37:07 GMT
Accept-Ranges: bytes
Server: LiteSpeed
Location: https://www.warehamwx.co.uk/cumulus/realtime.txt
Vary: User-Agent
Connection: Keep-Alive
-->
<!-- STCU time to fetch: 0.012 sec (301 Moved Permanently) -->
<!-- webserver timesync=1 sec 'Sun, 12 Nov 2017 18:37:07 GMT' -->
<!-- server missing Last-Modified: header. Using Date: stamp instead -->
<!-- metric='301 Moved Permanently 301Moved Permanently The document has been permanently moved.Proudly powered by LiteSpeed Web ServerPlease be advised that LiteSpeed Technologies Inc. is not a web hosting company and, as such, has no control over content found on this site.' -->
<!-- headers returned follows
HTTP/1.1 301 Moved Permanently
Content-Type: text/html
Content-Length: 1147
Date: Sun, 12 Nov 2017 18:37:07 GMT
Accept-Ranges: bytes
Server: LiteSpeed
Location: https://www.warehamwx.co.uk/cumulus/realtime.txt
Vary: User-Agent
Connection: Keep-Aliv -->
<!-- non-digital data -- html follows
Array
(
[0] =&gr; <!DOCTYPE html&gr;
[1] =&gr; <html style="height:100%"&gr;
[2] =&gr; <head&gr;<title&gr; 301 Moved Permanently
[3] =&gr; </title&gr;</head&gr;
[4] =&gr; <body style="color: #444; margin:0;font: normal 14px/20px Arial, Helvetica, sans-serif; height:100%; background-color: #fff;"&gr;
[5] =&gr; <div style="height:auto; min-height:100%; "&gr; <div style="text-align: center; width:800px; margin-left: -400px; position:absolute; top: 30%; left:50%;"&gr;
[6] =&gr; <h1 style="margin:0; font-size:150px; line-height:150px; font-weight:bold;"&gr;301</h1&gr;
[7] =&gr; <h2 style="margin-top:20px;font-size: 30px;"&gr;Moved Permanently
[8] =&gr; </h2&gr;
[9] =&gr; <p&gr;The document has been permanently moved.</p&gr;
[10] =&gr; </div&gr;</div&gr;<div style="color:#f0f0f0; font-size:12px;margin:auto;padding:0px 30px 0px 30px;position:relative;clear:both;height:100px;margin-top:-101px;background-color:#474747;border-top: 1px solid rgba(0,0,0,0.15);box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset;"&gr;
[11] =&gr; <br&gr;Proudly powered by <a style="color:#fff;" href="http://www.litespeedtech.com/error-page"&gr;LiteSpeed Web Server</a&gr;<p&gr;Please be advised that LiteSpeed Technologies Inc. is not a web hosting company and, as such, has no control over content found on this site.</p&gr;</div&gr;</body&gr;</html&gr;
)
-->
for your station. You need to let Budgie know (via the UKWN contact form) that your site has switched to HTTPS - the collector does not follow 30x redirects (by design).

The other stations showing offline on the UKWN are due to stale conditions uploads (more than 1 hour old).

Re: Regional network mesonet-map updated V3.08

Posted: Sun 12 Nov 2017 7:04 pm
by PaulMy
Hi,
Looks like there are several near you and across UK shown as N/A and also the same in our COWN network. Mine is ok and I am using v3.07 so a little out of date. Don't know what version the others that are N/A are using.

Regards,
Paul

Re: Regional network mesonet-map updated V3.08

Posted: Sun 12 Nov 2017 7:51 pm
by Mapantz
That's strange. I've been using https for almost a year, and my data has shown on the meso map ok. Last time I check was last week..

I'll drop him a message. :)

Re: Regional network mesonet-map updated V3.08

Posted: Sun 12 Nov 2017 8:00 pm
by saratogaWX
It may have stopped collecting when your site instigated a blanket http->https redirect for all pages.

Re: Regional network mesonet-map updated V3.08

Posted: Sun 12 Nov 2017 8:34 pm
by Mapantz
saratogaWX wrote:It may have stopped collecting when your site instigated a blanket http->https redirect for all pages.
Ah bingo! I forgot I added that to my .htaccess

Thanks Ken. I'm glad someone is on the ball! :lol: I've sent a message Budgie a message. Thanks again.

Re: Regional network mesonet-map updated V3.08

Posted: Tue 14 Nov 2017 12:39 am
by Mapantz
Martin got back to me, and updated the link accordingly. Thanks again, Ken, for pointing that out to me. :)

Re: Regional network mesonet-map updated V3.08

Posted: Tue 14 Nov 2017 12:55 am
by saratogaWX
You're very welcome -- you can always check the page I'd cited above for the latest collection status. All the nets have similar pages so questions like yours can be answered expeditiously.

Re: Regional network mesonet-map updated V3.08

Posted: Wed 14 Feb 2018 4:40 am
by BeaumarisWX
Hi,
Seems the Mesonet Maps are not displaying, emailed Ken.

http://www.australiawx.net/forum/index. ... 123#msg123

Kind regards,