Author Topic: Propagation feature not working  (Read 1164 times)

0 Members and 1 Guest are viewing this topic.

Offline BKS97

  • Senior Contributor
  • ****
  • Posts: 178
    • Sartell East Weather
Propagation feature not working
« on: February 09, 2024, 01:37:55 PM »
The propagation feature on my wxradio page does not work,  I have tried the several fixes offered in this thread from last July to no avail:
https://www.wxforum.net/index.php?topic=45535

I reloaded the wxradio-V3.07 script including NWR-radios.js and refreshed the cache but no luck.  Any suggestions appreciated.  Thanks, Bill

www.sartelleastweather.com/wxradio.php

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9298
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Propagation feature not working
« Reply #1 on: February 10, 2024, 12:56:18 PM »
It looks like you are missing the NWR-coverage.php script on your website -- it's returning a 404-Not Found.
That script provides the data used for the coverage and propagation displays in the map.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline BKS97

  • Senior Contributor
  • ****
  • Posts: 178
    • Sartell East Weather
Re: Propagation feature not working
« Reply #2 on: February 10, 2024, 02:41:39 PM »
Thanks for taking a look, Ken. The NWR-coverage.php file actually is there along with the other radio files.  I tried deleting then reloading the file, but it still returns the 404-Not Found, as you have discovered.  However, the other NWR files do show properly when called for with no 404 error.  The radio page works properly but the NWR-coverage.php file acts as if it is not there.

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9298
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Propagation feature not working
« Reply #3 on: February 10, 2024, 10:10:22 PM »
Ok, you have a tough problem to solve.

Please install this update for the NWR-coverage.php -- it has additional diagnostic functions.
https://saratoga-weather.org/wxtemplates/USA/NWR-coverage.php?sce=view

Let me know when it's installed and I'll try additional debugging.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline BKS97

  • Senior Contributor
  • ****
  • Posts: 178
    • Sartell East Weather
Re: Propagation feature not working
« Reply #4 on: February 11, 2024, 06:32:43 AM »
Ken, the NWR-coverage.php update is now installed.

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9298
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Propagation feature not working
« Reply #5 on: February 11, 2024, 10:37:14 AM »
Thanks.. it's very strange.  What I'd expect to see with the debug enabled is
Code: [Select]
RADIO='WNG676'
NWRURL='https://www.weather.gov/source/nwr/shape/%s.zip'
URL='https://www.weather.gov/source/nwr/shape/WNG676.zip'
radioZIP='WNG676.zip'
 curl fetching 'https://www.weather.gov/source/nwr/shape/WNG676.zip'
 HTTP stats:  RC=200 dest=23.221.244.16 port=443 (from sce=74.208.252.86)
      Times: dns=0.060 conn=0.073 pxfer=0.106 get=0.282 total=0.387 secs

Headers:
HTTP/1.1 200 OK
Server: Apache
X-NIDS-ServerID: www6.mo
Last-Modified: Tue, 28 Mar 2023 17:03:26 GMT
Accept-Ranges: bytes
Content-Length: 44914
Content-Type: application/zip
Date: Sun, 11 Feb 2024 15:30:51 GMT
Connection: keep-alive
Strict-Transport-Security: max-age=31536000 ; includeSubDomains ; preload
JSON error: No JSON error
curl RC='200'

but on your site, it shows
Code: [Select]
RADIO='WNG676'
NWRURL='https://www.weather.gov/source/nwr/shape/%s.zip'
URL='https://www.weather.gov/source/nwr/shape/WNG676.zip'
radioZIP='WNG676.zip'

Headers:

JSON error:
curl RC='(not run)'
----------raw JSON string----------------

---------------------------------------

so it's missing all the curl statistics.

Can you check the error_log for the site and look for PHP errors for NWS-coverage.php script?

Also, add to the top of the NWR-coverage.php script (just after the opening <?
Code: [Select]
error_reporting(E_ALL);
ini_set('display_errors','1');
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline BKS97

  • Senior Contributor
  • ****
  • Posts: 178
    • Sartell East Weather
Re: Propagation feature not working
« Reply #6 on: February 11, 2024, 12:12:35 PM »
I made the addition to the top of the NWR-coverage.php script as you requested.  Then, in checking the error_log for the script, this is what came up:

error_reporting(E_ALL); ini_set('display_errors','1');
Warning: session_start(): Session cannot be started after headers have already been sent in /home/sartelleast/www/www/Settings.php on line 378

Warning: Cannot modify header information - headers already sent by (output started at /home/sartelleast/www/www/NWR-coverage.php:1) in /home/sartelleast/www/www/NWR-coverage.php on line 141

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9298
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Propagation feature not working
« Reply #7 on: February 11, 2024, 03:32:31 PM »
Ok, we're getting closer.

Put
Code: [Select]
error_reporting(E_ALL);
ini_set('display_errors','1');
  AFTER the opening <?php in the script.

Then, try changing your WD c:\wdisplay\webfiles\testtags.txt and delete the closing ?> line at the end.  There appears to be a space after that and it's causing headers to be emitted early.

If that doesn't fix the issue (but you should leave it that way anyway), then try changing NWS-coverage.php from
Code: [Select]
  $cacheFileDir = './';   // default cache file directory
to
Code: [Select]
  $cacheFileDir = './cache/';   // default cache file directory
and
Code: [Select]
if (isset($SITE['cacheFileDir']))    {$cacheFileDir = $SITE['cacheFileDir']; }
to
Code: [Select]
# if (isset($SITE['cacheFileDir']))    {$cacheFileDir = $SITE['cacheFileDir']; }
to comment out include of Settings.php althogether.
« Last Edit: February 11, 2024, 03:36:26 PM by saratogaWX »
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline BKS97

  • Senior Contributor
  • ****
  • Posts: 178
    • Sartell East Weather
Re: Propagation feature not working
« Reply #8 on: February 11, 2024, 03:55:56 PM »
The testtags.php file on my site has this at the end:

// end of other addons
// end of testtags.txt/testtags.php
?>

Is this the ?> closing that I should delete?


Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9298
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Propagation feature not working
« Reply #9 on: February 11, 2024, 04:44:15 PM »
Yes
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9298
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Propagation feature not working
« Reply #10 on: February 12, 2024, 09:53:44 AM »
I've updated the NWR-coverage,php with even more diagnostics.
Please download from here and upload to your site and let me know when it's available.

Thanks...
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline BKS97

  • Senior Contributor
  • ****
  • Posts: 178
    • Sartell East Weather
Re: Propagation feature not working
« Reply #11 on: February 12, 2024, 10:34:33 AM »
Thank you, Ken.  The updated NWR-coverage.php file is now in place.

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9298
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Propagation feature not working
« Reply #12 on: February 12, 2024, 11:07:02 AM »
Ok, update it once more.

Also use your FTP program to change the permissions on NWR-radios-data.js to 755 so it can be written.  You have a very old version of that file
which is supposed to be updated by NWR-radios-data.php automatically, but somehow, it is not being updated.
After you change the permissions on NWR-radios-data.js, run NWR-radios-data.php?cache to manually update the cache.
« Last Edit: February 12, 2024, 11:24:51 AM by saratogaWX »
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9298
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Propagation feature not working
« Reply #13 on: February 12, 2024, 11:19:40 AM »
Also try this update for NWR-radios-data.php from here
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline BKS97

  • Senior Contributor
  • ****
  • Posts: 178
    • Sartell East Weather
Re: Propagation feature not working
« Reply #14 on: February 12, 2024, 11:33:24 AM »
Ken: That was the trick.  The propagation feature now works.  Thank you very much for all your time and trouble.  I much appreciate your great help.  --Bill

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9298
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Propagation feature not working
« Reply #15 on: February 12, 2024, 11:40:03 AM »
Whew!  I was running out of ideas, so I'm glad the last one finally worked.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9298
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Propagation feature not working
« Reply #16 on: February 12, 2024, 12:54:01 PM »
I've updated the radio script set to V3.08 with those updates.

Download from the script page or GitHub.
I do urge all users of the wxradio.php script set to update .. it fixes an issue to get the current noaaweatherradio.org radios available file.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP