Page 1 of 2

Meso-map stopped working

Posted: Fri 11 Dec 2020 10:22 pm
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!

Re: Meso-map stopped working

Posted: Sat 12 Dec 2020 1:15 am
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.

Re: Meso-map stopped working

Posted: Sat 12 Dec 2020 2:01 am
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.

Re: Meso-map stopped working

Posted: Sat 12 Dec 2020 5:35 am
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.

Re: Meso-map stopped working

Posted: Sun 17 Dec 2023 7:04 pm
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

Re: Meso-map stopped working

Posted: Sun 17 Dec 2023 10:46 pm
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

Re: Meso-map stopped working

Posted: Mon 18 Dec 2023 11:43 am
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

Re: Meso-map stopped working

Posted: Mon 18 Dec 2023 1:47 pm
by Bridger
Thanks for the pointer to the space weather update - installed.

Re mesonet map - waiting for a response from UKWN.
Thanks again.

Re: Meso-map stopped working

Posted: Wed 20 Dec 2023 4:04 pm
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.

Re: Meso-map stopped working

Posted: Wed 20 Dec 2023 5:25 pm
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.

Re: Meso-map stopped working

Posted: Thu 11 Jan 2024 8:32 pm
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.

Re: Meso-map stopped working

Posted: Thu 11 Jan 2024 8:56 pm
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

Re: Meso-map stopped working

Posted: Mon 08 Apr 2024 10:48 pm
by Mapantz
It has stopped working for me again. :(

It was OK a few days ago.

Re: Meso-map stopped working

Posted: Mon 08 Apr 2024 11:04 pm
by saratogaWX
Running /mmap/mesonet-map-json.php?debug=y on your site
shows you're getting the wsidchk challenge like @Bridger .. contact ukwx.net and have them either allow your ip w/o challenge or to turn off the immunify plugin on their hosting.

Re: Meso-map stopped working

Posted: Thu 11 Apr 2024 3:41 pm
by Mapantz
I sent an email on Tuesday but haven't had a reply.