Please read the posts in the Announcements section about the current status of Cumulus development now that I have retired

Please read this post before posting

Latest Cumulus release v1.9.4 (build 1099) - Nov 28 2014
Latest Cumulus MX release - v3.0.0 build 3043 Jan 20 2017. See this post for download

Regional network mesonet-map updated V3.08

Discussion of Ken True's web site templates

Moderator: saratogaWX

User avatar
saratogaWX
Posts: 835
Joined: Wed May 06, 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows XP SP3
Location: Saratoga, CA, USA
Contact:

Regional network mesonet-map updated V3.08

Postby saratogaWX » Sun Aug 13, 2017 1:10 am

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

User avatar
Toxic17
Posts: 542
Joined: Mon May 19, 2014 10:45 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Debian 9.1 Stretch
Location: Bangor, NI
Contact:

Re: Regional network mesonet-map updated V3.08

Postby Toxic17 » Sun Aug 13, 2017 7:44 pm

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.
Regards Simon

https://www.conligwx.org
https://twitter.com/conligwx
Davis Vantage Pro2+ - CumulusMX v3.0.0 (build 3043) + Saratoga/PWS
Image

User avatar
saratogaWX
Posts: 835
Joined: Wed May 06, 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows XP SP3
Location: Saratoga, CA, USA
Contact:

Re: Regional network mesonet-map updated V3.08

Postby saratogaWX » Mon Aug 14, 2017 2:02 am

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 :)

User avatar
Toxic17
Posts: 542
Joined: Mon May 19, 2014 10:45 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Debian 9.1 Stretch
Location: Bangor, NI
Contact:

Re: Regional network mesonet-map updated V3.08

Postby Toxic17 » Mon Aug 14, 2017 6:51 am

Looking good Ken! run through all weather networks, no errors reporting in apache logs. :clap:
Regards Simon

https://www.conligwx.org
https://twitter.com/conligwx
Davis Vantage Pro2+ - CumulusMX v3.0.0 (build 3043) + Saratoga/PWS
Image

User avatar
saratogaWX
Posts: 835
Joined: Wed May 06, 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows XP SP3
Location: Saratoga, CA, USA
Contact:

Re: Regional network mesonet-map updated V3.08

Postby saratogaWX » Mon Aug 14, 2017 4:15 pm

Thanks! I've released 3.09 of mesonet-map-common.php with those fixes.

User avatar
Toxic17
Posts: 542
Joined: Mon May 19, 2014 10:45 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Debian 9.1 Stretch
Location: Bangor, NI
Contact:

Re: Regional network mesonet-map updated V3.08

Postby Toxic17 » Mon Aug 14, 2017 6:35 pm

Your welcome, glad to help
Regards Simon

https://www.conligwx.org
https://twitter.com/conligwx
Davis Vantage Pro2+ - CumulusMX v3.0.0 (build 3043) + Saratoga/PWS
Image

User avatar
Mapantz
Posts: 446
Joined: Sat Dec 17, 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 10 x64 - A beast.
Location: Wareham, Dorset - UK
Contact:

Re: Regional network mesonet-map updated V3.08

Postby Mapantz » Sun Nov 12, 2017 6:29 pm

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

User avatar
saratogaWX
Posts: 835
Joined: Wed May 06, 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows XP SP3
Location: Saratoga, CA, USA
Contact:

Re: Regional network mesonet-map updated V3.08

Postby saratogaWX » Sun Nov 12, 2017 6:40 pm

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

User avatar
PaulMy
Posts: 1547
Joined: Sun Sep 28, 2008 11:54 pm
Weather Station: Davis Vantage Pro 2 w/Envoy USB
Operating System: Windows-8
Location: Komoka, ON Canada
Contact:

Re: Regional network mesonet-map updated V3.08

Postby PaulMy » Sun Nov 12, 2017 7:04 pm

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

User avatar
Mapantz
Posts: 446
Joined: Sat Dec 17, 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 10 x64 - A beast.
Location: Wareham, Dorset - UK
Contact:

Re: Regional network mesonet-map updated V3.08

Postby Mapantz » Sun Nov 12, 2017 7:51 pm

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

User avatar
saratogaWX
Posts: 835
Joined: Wed May 06, 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows XP SP3
Location: Saratoga, CA, USA
Contact:

Re: Regional network mesonet-map updated V3.08

Postby saratogaWX » Sun Nov 12, 2017 8:00 pm

It may have stopped collecting when your site instigated a blanket http->https redirect for all pages.

User avatar
Mapantz
Posts: 446
Joined: Sat Dec 17, 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 10 x64 - A beast.
Location: Wareham, Dorset - UK
Contact:

Re: Regional network mesonet-map updated V3.08

Postby Mapantz » Sun Nov 12, 2017 8:34 pm

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

User avatar
Mapantz
Posts: 446
Joined: Sat Dec 17, 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 10 x64 - A beast.
Location: Wareham, Dorset - UK
Contact:

Re: Regional network mesonet-map updated V3.08

Postby Mapantz » Tue Nov 14, 2017 12:39 am

Martin got back to me, and updated the link accordingly. Thanks again, Ken, for pointing that out to me. :)
Image
Image

User avatar
saratogaWX
Posts: 835
Joined: Wed May 06, 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows XP SP3
Location: Saratoga, CA, USA
Contact:

Re: Regional network mesonet-map updated V3.08

Postby saratogaWX » Tue Nov 14, 2017 12:55 am

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.


Return to “Saratoga Templates”

Who is online

Users browsing this forum: No registered users and 5 guests