Author Topic: Intermittent radar-status.php error  (Read 1261 times)

0 Members and 1 Guest are viewing this topic.

Offline Mark / Ohio

  • Live from Mars!
  • Forecaster
  • *****
  • Posts: 2511
    • Fairfield County Weather
Intermittent radar-status.php error
« on: October 21, 2016, 11:39:57 AM »
I get the correct status but intermittently I get the text shown below above the message:



Is this an issue with NOAA?
Mark 
2002 Davis VP I Wireless, WeatherLink (Serial), GRLevel3, VirtualVP, StartWatch, Weather Display, Windows 10


Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9288
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Intermittent radar-status.php error
« Reply #1 on: October 22, 2016, 11:39:33 AM »
It's likely this was related to the great internet DNS disturbance yesterday (massive DDoS against dyn.com).  Should be ok today.
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 Mark / Ohio

  • Live from Mars!
  • Forecaster
  • *****
  • Posts: 2511
    • Fairfield County Weather
Re: Intermittent radar-status.php error
« Reply #2 on: October 22, 2016, 02:32:56 PM »
I wondered about that too.  But still seeing it come and go today if I refresh the home page a number of times.   Course the DOS attack could be still going on at a reduced level too I suppose.
Mark 
2002 Davis VP I Wireless, WeatherLink (Serial), GRLevel3, VirtualVP, StartWatch, Weather Display, Windows 10


Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9288
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Intermittent radar-status.php error
« Reply #3 on: October 22, 2016, 08:37:12 PM »
Mark, when it happens again, capture the radar-status.txt file and post it.. I'll take a look.

Also, do a view-source of the page and look at what it says around
Quote
<!-- radar-status.php V1.14 - 24-Sep-2016 -->
<!-- using Cached version from ./radar-status.txt -->
<!-- Last-modified used for last update datetime -->
<!-- 201 radar status records found -->
<!-- html2 length is 8581 bytes -->
<!-- messages length is 8204 -->
Any fetch error messages should appear there.
« Last Edit: October 22, 2016, 08:39:31 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 Mark / Ohio

  • Live from Mars!
  • Forecaster
  • *****
  • Posts: 2511
    • Fairfield County Weather
Re: Intermittent radar-status.php error
« Reply #4 on: October 22, 2016, 11:12:46 PM »
Thanks Ken, see attached files below:

(I also converted my php file to txt so you could se my settings there.)   
« Last Edit: October 22, 2016, 11:26:29 PM by Mark / Ohio »
Mark 
2002 Davis VP I Wireless, WeatherLink (Serial), GRLevel3, VirtualVP, StartWatch, Weather Display, Windows 10


Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9288
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Intermittent radar-status.php error
« Reply #5 on: October 23, 2016, 10:14:45 AM »
Hi Mark,
The errata on lines 316 and 317 are
Code: [Select]
$messages = preg_replace('|??|Uis',"\n||NOUSnn",$messages); // remove garbage characters.
 $messages = preg_replace('|?|Uis','',$messages);  // remove garbage characters
in your source.  But.. the ISO-8859-1 source in the distribution has those lines as
Code: [Select]
$messages = preg_replace('|ÿÿ|Uis',"\n||NOUSnn",$messages); // remove garbage characters.
 $messages = preg_replace('|ð|Uis','',$messages);  // remove garbage characters
(note that your copy has those characters replaced by '?' and that is what is causing the issue)

I'd suggest you either replace your source from the distribution, or just comment out those two lines.  They were included long ago when the txt message feed was much more polluted with odd characters, which doesn't seem to be the case now.
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 Mark / Ohio

  • Live from Mars!
  • Forecaster
  • *****
  • Posts: 2511
    • Fairfield County Weather
Re: Intermittent radar-status.php error
« Reply #6 on: October 23, 2016, 10:52:45 AM »
Good eye Ken!   :grin:

Further investigation when I click on the download link at your website in Firefox it shows the "?" there.  When I did the same thing in IE it showed square boxes there.  But when I saved the link to desktop it had the correct little characters in place.   ;)

So looks like it was just an issue created by how I downloaded the file.  Have to remember that one.   8-)
Mark 
2002 Davis VP I Wireless, WeatherLink (Serial), GRLevel3, VirtualVP, StartWatch, Weather Display, Windows 10


Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9288
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Intermittent radar-status.php error
« Reply #7 on: October 23, 2016, 11:36:39 AM »
Oops... my bad.  When I switched to a VPS host, I forgot to change PHP to serve pages in ISO-8859-1 instead of UTF-8.  Now it's fixed.  Sorry for the confusion!
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 Mark / Ohio

  • Live from Mars!
  • Forecaster
  • *****
  • Posts: 2511
    • Fairfield County Weather
Re: Intermittent radar-status.php error
« Reply #8 on: October 23, 2016, 02:25:19 PM »
No problem.    UU

Thought I had done it that way in the past without messing up the code.  But once again been just long enough since my last update to any of the scripts I could not remember for sure.  ;)
Mark 
2002 Davis VP I Wireless, WeatherLink (Serial), GRLevel3, VirtualVP, StartWatch, Weather Display, Windows 10