Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4018) - 28 March 2024

Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

Meso-map stopped working

Discussion of Ken True's web site templates

Moderator: saratogaWX

Post Reply
Mapantz
Posts: 1775
Joined: Sat 17 Dec 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 x64
Location: Dorset - UK
Contact:

Meso-map stopped working

Post by Mapantz »

It was ok a few days ago.

https://warehamwx.co.uk/mesonet-map.php

Not sure what has happened?

It's back working again, but it is missing the markers on the map. Some weird voodoo going on!
Image
User avatar
saratogaWX
Posts: 1170
Joined: Wed 06 May 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows 10 Professional
Location: Saratoga, CA, USA
Contact:

Re: Meso-map stopped working

Post by saratogaWX »

Ahh,it's not working for me right now.

Running https://warehamwx.co.uk/mmap/mesonet-ma ... rsions.php shows two missing files, but the rest seem to be at current version.

Running https://warehamwx.co.uk/mesonet-map.php with Firefox debugger enabled has this error:
The resource from “https://warehamwx.co.uk/mmap/mesonet-map-json.php” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff). mesonet-map.php
Loading failed for the <script> with source “https://warehamwx.co.uk/mmap/mesonet-map-json.php”.
Trying to run https://warehamwx.co.uk/mmap/mesonet-map-json.php results in
Warning: fopen(mmap/cache/mesonet-map-networks.txt): failed to open stream: No such file or directory in /home/wareham1/public_html/mmap/mesonet-map-common.php on line 229

Warning: file(mmap/cache/mesonet-map-networks.txt): failed to open stream: No such file or directory in /home/wareham1/public_html/mmap/mesonet-map-common.php on line 179

Warning: Invalid argument supplied for foreach() in /home/wareham1/public_html/mmap/mesonet-map-common.php on line 184
'UKWN' network is not defined.
Please correct Network ID for proper mesonet-map operation.
So.. you have no markers because mesonet-map-networks.txt doesn't seem to be in the cache file and so the script can't find where to go get the UKWN data.

I've not tried to run the mesonet-map script set from a subdirectory, so that could be part of the problem. Put the mesonet-map-inc.php and mesonet-map.php in the mmap/ directory, then try running https://warehamwx.co.uk/mmap/mesonet-map.php to check that the configuration works .. then try integrating it up one directory level. You may have to move it all the mmap/ contents up one directory to the document root to make it work.. IDK.
Mapantz
Posts: 1775
Joined: Sat 17 Dec 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 x64
Location: Dorset - UK
Contact:

Re: Meso-map stopped working

Post by Mapantz »

The file does exist in the cache folder though: https://warehamwx.co.uk/mmap/cache/meso ... tworks.txt

I haven't done anything to the meso-map since January. I've been using it pretty much every day since then, but today it suddenly hates me.
Image
User avatar
saratogaWX
Posts: 1170
Joined: Wed 06 May 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows 10 Professional
Location: Saratoga, CA, USA
Contact:

Re: Meso-map stopped working

Post by saratogaWX »

I think it's still because the bulk of the mesonet-map scripts are in a subdirectory (mmap) while the display is one directory up.
The mesonet-map-json.php script is trying to get /mmap/mmap/cache due to the settings in mesonet-map-settings.php

Code: Select all

  $cacheDir  = 'mmap/cache/'; // relative directory to store the updated conditions/network defs files

  $condIconsDir = 'mmap/MESO-images/';  // relative directory for pin/cluster/conditions images
You may need to put in an override in mesonet-map-json.php to use

Code: Select all

$cacheDir = './cache/';
to make it work again. Without that adjustment, the call to https://warehamwx.co.uk/mmap/mesonet-map-json.php will continue to return
<br />
<b>Warning</b>: fopen(mmap/cache/mesonet-map-networks.txt): failed to open stream: No such file or directory in <b>/home/wareham1/public_html/mmap/mesonet-map-common.php</b> on line <b>229</b><br />
<br />
<b>Warning</b>: file(mmap/cache/mesonet-map-networks.txt): failed to open stream: No such file or directory in <b>/home/wareham1/public_html/mmap/mesonet-map-common.php</b> on line <b>179</b><br />
<br />
<b>Warning</b>: Invalid argument supplied for foreach() in <b>/home/wareham1/public_html/mmap/mesonet-map-common.php</b> on line <b>184</b><br />
<h2>'UKWN' network is not defined.<br/>Please correct Network ID for proper mesonet-map operation.</h2>
instead of the data JSON needed.
Bridger
Posts: 60
Joined: Fri 01 Jun 2012 4:58 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 11 Home
Location: New Forest. UK
Contact:

Re: Meso-map stopped working

Post by Bridger »

After updating to the latest version of mesonet-map no UK Weather Network stations are showing on he map.
Am I missing something in the config?
https://www.fordingbridgeweather.co.uk/ ... netmap.php
Thanks,
Peter
User avatar
saratogaWX
Posts: 1170
Joined: Wed 06 May 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows 10 Professional
Location: Saratoga, CA, USA
Contact:

Re: Meso-map stopped working

Post by saratogaWX »

Bridger wrote: Sun 17 Dec 2023 7:04 pm After updating to the latest version of mesonet-map no UK Weather Network stations are showing on he map.
Am I missing something in the config?
https://www.fordingbridgeweather.co.uk/ ... netmap.php
Thanks,
Peter
Looks like the ukwn.net is returning a Cloudflare challenge page instead of the expected UKWN-conditions.txt so there are no conditions to display on the map (so no markers).

Contact the UKWN,net webmaster to get the issue resolved from your website at IP 91.238.164.173
User avatar
ConligWX
Posts: 1570
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2+ w/DFARS + AirLink
Operating System: Ubuntu 22.04 LTS
Location: Bangor, NI
Contact:

Re: Meso-map stopped working

Post by ConligWX »

Bridger wrote: Sun 17 Dec 2023 7:04 pm After updating to the latest version of mesonet-map no UK Weather Network stations are showing on he map.
Am I missing something in the config?
https://www.fordingbridgeweather.co.uk/ ... netmap.php
Thanks,
Peter
you might want to update your spaceweather page too.

https://www.fordingbridgeweather.co.uk/ ... xspace.php

download is available here: https://www.wxforum.net/index.php?topic ... #msg465831
Regards Simon

https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir •

Image
Bridger
Posts: 60
Joined: Fri 01 Jun 2012 4:58 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 11 Home
Location: New Forest. UK
Contact:

Re: Meso-map stopped working

Post by Bridger »

Thanks for the pointer to the space weather update - installed.

Re mesonet map - waiting for a response from UKWN.
Thanks again.
Bridger
Posts: 60
Joined: Fri 01 Jun 2012 4:58 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 11 Home
Location: New Forest. UK
Contact:

Re: Meso-map stopped working

Post by Bridger »

Looks like the ukwn.net is returning a Cloudflare challenge page instead of the expected UKWN-conditions.txt so there are no conditions to display on the map (so no markers).

Contact the UKWN,net webmaster to get the issue resolved from your website at IP 91.238.164.173
I have had a reply from UKWN.net stating:-
"I've had a look at the server settings & logs and there is nothing in there blocking your website access to the config files. I can see your IP address 92.25.15.22 accessing the server but the UKWN-conditions.txt file is not on the list of those being requested."
92.25.15.22 is my current IP address.
I have reread the installation instructions but can't see anything I might have overlooked.
User avatar
saratogaWX
Posts: 1170
Joined: Wed 06 May 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows 10 Professional
Location: Saratoga, CA, USA
Contact:

Re: Meso-map stopped working

Post by saratogaWX »

Tell the UKWN admin that it is cloudflare that is blocking your webserver (IP 91.238.164.173) by returning a challenge page instead of the text file requested. The mesonet-map-json.php script cannot answer the challenge, so no detail data gets returned from UKWN.

He will need to modifiy the Cloudflare settings for UKWN.net to permit the access without challenge (or just turn off Cloudflare caching for the site).

Addenda: I've been in contact with the UKWN admin -- his cPanel doesn't have site Cloudflare settings so I suggested he contact the hoster (Krystal.co.uk) for help resolving the issue.
Bridger
Posts: 60
Joined: Fri 01 Jun 2012 4:58 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 11 Home
Location: New Forest. UK
Contact:

Re: Meso-map stopped working

Post by Bridger »

This morning my UKWN page became fully populated with stations.
I don't know any details of the fix but thank you for the support.
User avatar
saratogaWX
Posts: 1170
Joined: Wed 06 May 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows 10 Professional
Location: Saratoga, CA, USA
Contact:

Re: Meso-map stopped working

Post by saratogaWX »

It seems the challenge page return was removed (unknown as to how) so your webserver can now get the data needed from ukwn.net
Post Reply