Author Topic: Regional network mesonet-map updated V3.08  (Read 993 times)

0 Members and 1 Guest are viewing this topic.

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 6619
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Regional network mesonet-map updated V3.08
« on: August 12, 2017, 09:08:48 PM »
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
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline DW7240

  • Senior Contributor
  • ****
  • Posts: 172
    • The Vicarage Weather Feed
Re: Regional network mesonet-map updated V3.08
« Reply #1 on: August 12, 2017, 09:45:20 PM »
Thank you Ken as always for keeping us updated !!

Nick. dw7240.com.


Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8567
    • Meteotemplate
Re: Regional network mesonet-map updated V3.08
« Reply #2 on: August 12, 2017, 09:57:34 PM »
Thank you very much Ken

Offline stevenwells99

  • Member
  • *
  • Posts: 34
    • Potts Point Weather
Re: Regional network mesonet-map updated V3.08
« Reply #3 on: August 13, 2017, 01:55:13 AM »
Thanks Ken,

AUWN has been updated.

Steven
Potts Point - Sydney - Australia
WS2310 - 1Wire - Windows 10

Offline hrvistaweather

  • Member
  • *
  • Posts: 20
    • Huon River Vista Weather - South Franklin - Tasmania
Re: Regional network mesonet-map updated V3.08
« Reply #4 on: February 13, 2018, 11:39:11 PM »
Hi,
Seems the Mesonet Maps are not displaying, emailed Ken.

http://www.australiawx.net/forum/index.php?topic=61.msg123#msg123

Kind regards,
Tony
Ex hrvistaweather.com (now SouthFranklinWeather.com)
https://southfranklinweather.com

Huon River Vista - South Franklin Weather - Tasmania
Davis Vantage Pro 2 Plus - FARS, Cumulus MX, 2 Soil Temp/Moist Solar/Rad.
Back Online : 2017-11-01

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 6619
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Regional network mesonet-map updated V3.08
« Reply #5 on: February 14, 2018, 12:23:07 AM »
It appears to be a JavaScript error from the Google Maps API code.
In Firefox it says:

TypeError: g.b is undefined     js:120:483
trigger https://maps.google.com/maps/api/js:120:483
Tc https://maps.google.com/maps/api/js:50:406
_.J.prototype.bindTo https://maps.google.com/maps/api/js:123:328
_.Uv https://maps.google.com/maps-api-v3/api/js/32/1a/common.js:152:456
xz.prototype.f https://maps.google.com/maps-api-v3/api/js/32/1a/map.js:84:84
Ug/< https://maps.google.com/maps/api/js:92:4
Zd.prototype.za/</d[a]< https://maps.google.com/maps/api/js:125:2517
_.Ud/< https://maps.google.com/maps/api/js:60:195
Zd.prototype.za/< https://maps.google.com/maps/api/js:125:2627
$d https://maps.google.com/maps/api/js:62:209
Zd.prototype.za https://maps.google.com/maps/api/js:125:2369
<anonymous> self-hosted:952:17
<anonymous> https://maps.google.com/maps-api-v3/api/js/32/1a/map.js:1:1


in Google Chrome it says:

Uncaught TypeError: Cannot read property 'apply' of undefined
    at Object.trigger (js?key=AIzaSyA499ykaoUpr3YquZtJUtOcFFMgdjNKniU&language=en:120)
    at Tc (js?key=AIzaSyA499ykaoUpr3YquZtJUtOcFFMgdjNKniU&language=en:50)
    at Ug._.J.bindTo (js?key=AIzaSyA499ykaoUpr3YquZtJUtOcFFMgdjNKniU&language=en:123)
    at new _.Uv (common.js:152)
    at Object.xz.f (map.js:84)
    at Array.<anonymous> (js?key=AIzaSyA499ykaoUpr3YquZtJUtOcFFMgdjNKniU&language=en:92)
    at js?key=AIzaSyA499ykaoUpr3YquZtJUtOcFFMgdjNKniU&language=en:125
    at Object.<anonymous> (js?key=AIzaSyA499ykaoUpr3YquZtJUtOcFFMgdjNKniU&language=en:60)
    at js?key=AIzaSyA499ykaoUpr3YquZtJUtOcFFMgdjNKniU&language=en:125
    at js?key=AIzaSyA499ykaoUpr3YquZtJUtOcFFMgdjNKniU&language=en:60

in Microsoft Edge it says:

SCRIPT5007: SCRIPT5007: Unable to get property 'apply' of undefined or null reference js (120,483)

It looks like a Google Map API issue (it's their code that is causing the halt).. I'll continue to investigate.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 6619
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Regional network mesonet-map updated V3.08
« Reply #6 on: February 14, 2018, 01:26:01 AM »
Looks like their V3.31 broke it.. you can do a quick fix by replacing (in mesonet-map.php or wxmesonetmap.php depending on which you use)

Code: [Select]
<script src="https://maps.google.com/maps/api/js?key=<?php echo $googleAPI?>&amp;language=<?php print $Lang?>" type="text/javascript"></script>
with

Code: [Select]
<script src="https://maps.google.com/maps/api/js?key=<?php echo $googleAPI?>&amp;language=<?php print $Lang?>&v=3.30" type="text/javascript"></script>
to force the older version API  to work.

I'll look at a 'real' fix for V3.31 Google API tomorrow...
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline hrvistaweather

  • Member
  • *
  • Posts: 20
    • Huon River Vista Weather - South Franklin - Tasmania
Re: Regional network mesonet-map updated V3.08
« Reply #7 on: February 14, 2018, 02:02:16 AM »
Thanks Ken,
greatly appreciated : Fix applied and works.
Kind regards,
Tony
Ex hrvistaweather.com (now SouthFranklinWeather.com)
https://southfranklinweather.com

Huon River Vista - South Franklin Weather - Tasmania
Davis Vantage Pro 2 Plus - FARS, Cumulus MX, 2 Soil Temp/Moist Solar/Rad.
Back Online : 2017-11-01

Offline Toxic

  • Senior Contributor
  • ****
  • Posts: 209
  • #conligwx
    • conligwx.org
Re: Regional network mesonet-map updated V3.08
« Reply #8 on: February 14, 2018, 05:10:59 AM »
Strange that Google themselves are showing 3.31 as experimental at time of writing:

https://developers.google.com/maps/documentation/javascript/versions

Quote
The developer's guide always describes the experimental version.

In addition, there is a separately maintained reference for each version:

Version 3.31 Reference (Experimental)
Version 3.30 Reference (Release)
Version 3.29 Reference (Frozen)
Versions 3.0 - 3.28 have been retired.


Looks like their V3.31 broke it.. you can do a quick fix by replacing (in mesonet-map.php or wxmesonetmap.php depending on which you use)

Code: [Select]
<script src="https://maps.google.com/maps/api/js?key=<?php echo $googleAPI?>&amp;language=<?php print $Lang?>" type="text/javascript"></script>
with

Code: [Select]
<script src="https://maps.google.com/maps/api/js?key=<?php echo $googleAPI?>&amp;language=<?php print $Lang?>&v=3.30" type="text/javascript"></script>
to force the older version API  to work.

I'll look at a 'real' fix for V3.31 Google API tomorrow...
Regards Simon


Offline miraculon

  • Sunrise Side Weather
  • Forecaster
  • *****
  • Posts: 3050
  • KE8DAF
    • Sunrise Side Weather in Rogers City MI USA
Re: Regional network mesonet-map updated V3.08
« Reply #9 on: February 14, 2018, 08:27:46 AM »
Thanks much Ken. Fixed mine.

Greg H.


Blitzortung Stations #706 and #1682
CoCoRaHS: MI-PI-1
CWOP: CW4114 and KE8DAF-13
WU: KMIROGER7
Amateur Radio Callsign: KE8DAF

Offline jgillett

  • Forecaster
  • *****
  • Posts: 1150
  • unnamed weather station, Boltek, Win7 Pro, ToA
    • TiggrWeather Phoenix
Re: Regional network mesonet-map updated V3.08
« Reply #10 on: February 14, 2018, 10:44:06 AM »
NE Phoenix, Arizona fixed.

Thank you, Ken.
John
W7JKG
BUY FROM AMAZON  HERE... Thank You! :-)

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 6619
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Regional network mesonet-map updated V3.08
« Reply #11 on: February 14, 2018, 12:14:01 PM »
Further testing shows it works in GoogleMaps v=3.30 and v=3.31 but fails with the new(default) v=3.32

So you can use &v=3.30 or &v=3.31 and the map will work.  Using the default or &v=3.32 will fail.  Very strange.

I'm trying to dissect the mesonet-map.js code to see where the failure really lies.  Meanwhile, the quake-json map works fine with the default, as does the global-map scripts (which use much of the same code).
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline 92merc

  • BismarckWeather.net
  • Forecaster
  • *****
  • Posts: 646
  • BismarckWeather.net
    • BismarckWeather.net
Re: Regional network mesonet-map updated V3.08
« Reply #12 on: February 14, 2018, 04:40:43 PM »
Thanks for the temp fix.  Only saw today mine wasn't working.  Already found a solution on the forum.
http://www.BismarckWeather.net
Davis VP2, Cumulus, Blitzortung, Bloomsky, Saratoga Scripts

Offline stevenwells99

  • Member
  • *
  • Posts: 34
    • Potts Point Weather
Re: Regional network mesonet-map updated V3.08
« Reply #13 on: February 15, 2018, 02:59:04 AM »
Thanks Ken,

AUWN home page updated.

Steven
Potts Point - Sydney - Australia
WS2310 - 1Wire - Windows 10


 

anything