Author Topic: Point Forecast Down?  (Read 3237 times)

0 Members and 1 Guest are viewing this topic.

Offline metzeric

  • Senior Member
  • **
  • Posts: 99
    • www.niagaracountyweatherwire.com
Re: Point Forecast Down?
« Reply #25 on: February 22, 2018, 01:16:18 PM »
Now i show it saying the following    it doesnt show an error anymore    but the forecast is still wrong    still a go daddy problem?
      <!-- advforecast2.php (multi) - V4.02 - 07-Nov-2015 -->
<!-- NWS URL: https://forecast.weather.gov/MapClick.php?lat=43.13564&lon=-78.69149&unit=0&lg=english&FcstType=text&TextType=2 -->
<!-- zone=NYZ001 -->
<!-- loading ./cache/forecast-NYZ001-0.txt - 65102 bytes -->
<!-- isZone='1' -->
<!-- start=22630 finish=26793 length=4163 -->
<!-- text zone forecast

Offline DaculaWeather

  • It's a Jeep thing... you wouldn't understand.
  • WxElement panel
  • Forecaster
  • *****
  • Posts: 3171
  • SCCA EM #156
    • North Georgia and US Weather
Re: Point Forecast Down?
« Reply #26 on: February 22, 2018, 01:18:29 PM »
I clicked on the link and it worked and has the correct date and time

 [ You are not allowed to view attachments ]

Offline metzeric

  • Senior Member
  • **
  • Posts: 99
    • www.niagaracountyweatherwire.com
Re: Point Forecast Down?
« Reply #27 on: February 22, 2018, 01:26:10 PM »
I clicked on the link and it worked and has the correct date and time

 [ You are not allowed to view attachments ]

the hard link   works fine  but the website isnt  updating it  still says National Weather Service Forecast for: Niagara County
Issued by: NWS Buffalo, NY
Updated: 929 AM EST Wed Feb 21 2018

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 6869
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Point Forecast Down?
« Reply #28 on: February 22, 2018, 01:26:30 PM »
Yes, the link is good.. if his webserver could get the IP address for forecast.weather.gov, the script would work also.

Something in the upstream DNS resolvers for his webserver is broken and that's for the hoster's tech support to fix.
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 metzeric

  • Senior Member
  • **
  • Posts: 99
    • www.niagaracountyweatherwire.com
Re: Point Forecast Down?
« Reply #29 on: February 22, 2018, 02:10:34 PM »
I switched back to the 5.02 version  form the 4.02 and everything is fine again   strange


Yes, the link is good.. if his webserver could get the IP address for forecast.weather.gov, the script would work also.

Something in the upstream DNS resolvers for his webserver is broken and that's for the hoster's tech support to fix.

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2035
    • SouthEast Lincoln, NE Weather
Re: Point Forecast Down?
« Reply #30 on: February 22, 2018, 03:23:07 PM »
Reverted back to 5.04 and now everything is working normally again.
Regards, Jerry Wilkins
gwwilk@inebraska.com

Offline daybreak

  • Senior Member
  • **
  • Posts: 71
    • Alma Weather
Re: Point Forecast Down?
« Reply #31 on: February 27, 2018, 11:59:16 AM »
Hi Ken,

Mine is not working today.  http://www.daybreakimagery.com/weather/ or http://www.daybreakimagery.com/weather/forecast.php.  On the forecast.php page it says this-
Forecast blank? Force Update.  Do I need to change scripts?

Thanks,

Richard

Offline Jasiu

  • Forecaster
  • *****
  • Posts: 330
    • LexMAWeather
Re: Point Forecast Down?
« Reply #32 on: February 27, 2018, 12:04:45 PM »
Hi Ken,

Mine is not working today.  http://www.daybreakimagery.com/weather/ or http://www.daybreakimagery.com/weather/forecast.php.  On the forecast.php page it says this-
Forecast blank? Force Update.  Do I need to change scripts?

Thanks,

Richard

Was just looking at this. FWIW the JSON version of the script is working for me if you want to try that temporarily.

Anyway, it's getting 301 redirected because the URL is http rather than https - at least that's what I'm seeing.  I thought that was fixed in the code recently, but I'm looking at code based on version 4.02...

Will look at a quick patch but also await Ken's reply.

Offline DaculaWeather

  • It's a Jeep thing... you wouldn't understand.
  • WxElement panel
  • Forecaster
  • *****
  • Posts: 3171
  • SCCA EM #156
    • North Georgia and US Weather
Re: Point Forecast Down?
« Reply #33 on: February 27, 2018, 12:07:17 PM »
I think it has as much to do with the forecast office as much as anything. My 5.04 script is working fine today

Offline CNYWeather

  • Forecaster
  • *****
  • Posts: 2162
  • Yeah, I'm hugging my traffic light.
    • http://www.cnyweather.com
Re: Point Forecast Down?
« Reply #34 on: February 27, 2018, 12:10:54 PM »
Must be a general NWS issue today. No forecasts including forecast discussion or hazardous outlooks for me.
Tony




Offline ValentineWeather

  • Forecaster
  • *****
  • Posts: 5471
Re: Point Forecast Down?
« Reply #35 on: February 27, 2018, 12:17:27 PM »
4.02 is down here also force update not working either. I tried the 5.04 and it gave me a forecast for Feb 20th, 7 days old. Yikes! #-o
Randy

Offline Jasiu

  • Forecaster
  • *****
  • Posts: 330
    • LexMAWeather
Re: Point Forecast Down?
« Reply #36 on: February 27, 2018, 12:27:15 PM »
OK it isn't the HTTPS thing. Fixed that and I'm seeing this...

Code: [Select]
!-- loading https://forecast.weather.gov/MapClick.php?lat=42.4399&lon=-71.2405&unit=0&lg=english&FcstType=text&TextType=2 - 251 bytes -->
<!-- redirect found in
HTTP/1.1 301 Moved Permanently
Server: AkamaiGHost
Content-Length: 0
Location: https://forecast.weather.gov/MapClick.php?lat=42.4399&amp;lon=-71.2405&amp;unit=0&amp;lg=english&amp;FcstType=text&amp;TextType=2
Date: Tue, 27 Feb 2018 17:22:26 GMT
Connection: close

 -->
<!-- loading https://forecast.weather.gov/MapClick.php?zoneid=MAZ014&zflg=1 - 204 bytes -->
<!-- loading ./cache/forecast-MAZ014-0.txt - 204 bytes -->
<!-- loading https://forecast.weather.gov/MapClick.php?zoneid=MAZ014&zflg=1 - 204 bytes -->
<!-- isZone='' -->
<!-- HTML:
HTTP/1.1 301 Moved Permanently
Server: AkamaiGHost
Content-Length: 0
Location: https://forecast.weather.gov/MapClick.php?zoneid=MAZ014&zflg=1
Date: Tue, 27 Feb 2018 17:22:27 GMT
Connection: close


-->

Unless I'm missing something, the redirects are to the exact same URL.

Plugging URL into a browser works for me... Have other things to do at the moment but will come back to this later if no one has figured it out.

Offline DaculaWeather

  • It's a Jeep thing... you wouldn't understand.
  • WxElement panel
  • Forecaster
  • *****
  • Posts: 3171
  • SCCA EM #156
    • North Georgia and US Weather
Re: Point Forecast Down?
« Reply #37 on: February 27, 2018, 12:32:43 PM »
Yea, the AFD stuff is not working here, yet my forecast is. Go figure. That's why you never want to rely on the government if you want things done correctly.  :roll:

Offline DaculaWeather

  • It's a Jeep thing... you wouldn't understand.
  • WxElement panel
  • Forecaster
  • *****
  • Posts: 3171
  • SCCA EM #156
    • North Georgia and US Weather
Re: Point Forecast Down?
« Reply #38 on: February 27, 2018, 12:38:59 PM »
This just in....

NOUS42 KWNO 271712
ADMNFD

SENIOR DUTY METEOROLOGIST NWS ADMINISTRATIVE MESSAGE
NWS NCEP CENTRAL OPERATIONS COLLEGE PARK MD
1712Z TUE FEB 27 2018


WEB SERVICE CHANGES FOR NCO STARTING AT 28/1500Z...


Removal of Weak Ciphers from NCEP Web Sites

As required by US Department of Homeland Security Binding
Operational Directive 18-01,  NCEP/NCO will be making changes to
the underlying protocols that are used to access our public and
internal web sites. For web sites, the directive addresses
enforcement of secure HTTPS protocols for all access.


These changes will include:

    Enabling HTTPS for sites that were previously HTTP-only

    Redirecting HTTP traffic for all sites to the respective
HTTPS counterpart

    Restricting HTTPS handshakes to Cipher suites that are known
to be secure.

    Enabling a configuration that marks the affected sites for
HTTPS Strict Transport Security (HSTS)


The potential impacts that have been identified include:

    Scripts that are attempting to connect to the HTTP service
that do not honor the redirect to HTTPS will fail.

    Scripts or applications that do not support HTTPS protocols
will be unable to connect.

    Browsers that do not support secure ciphers may be unable to
connect (we believe that this would only affect browsers that are
already obsolete, but that does not mean that they are not
possibly still in-use. Example: IE8 on Windows XP)

    Users who have restrictive firewall rules at their side that
do not permit access to the HTTPS service may be unable to
connect.


Please be aware that all of the changes above are, in addition to
being mandated by DHS, considered ā??best practiceā?? in network
security and privacy.  For more information on the transition to
HTTPS-only, please see https://https.cio.gov/

Offline ValentineWeather

  • Forecaster
  • *****
  • Posts: 5471
Re: Point Forecast Down?
« Reply #39 on: February 27, 2018, 12:43:48 PM »
So today with no announcement they decided to make the changes.

My 5.04 starting working again. 4.02 is dead.
Randy

Offline DaculaWeather

  • It's a Jeep thing... you wouldn't understand.
  • WxElement panel
  • Forecaster
  • *****
  • Posts: 3171
  • SCCA EM #156
    • North Georgia and US Weather
Re: Point Forecast Down?
« Reply #40 on: February 27, 2018, 12:53:09 PM »
The AFD is working for me now

Offline Jasiu

  • Forecaster
  • *****
  • Posts: 330
    • LexMAWeather
Re: Point Forecast Down?
« Reply #41 on: February 27, 2018, 12:54:07 PM »
OK, I spent a few more minutes on this and got 4.02 working. These are the changes I made to 4.02 advforecast2.php and settings.php - not sure if all were necessary but....

1) The one change I'm sure about: Take the fetchUrlWithoutHanging() function from 5.04 and forklift/replace it into the 4.02 code.

2) Change $backupfileName to use HTTPS:

Code: [Select]
//$backupfileName = "http://forecast.weather.gov/MapClick.php?zoneid=$NOAAZone&zflg=1";
$backupfileName = "https://forecast.weather.gov/MapClick.php?zoneid=$NOAAZone&zflg=1";

3) Change $newurl to use HTTPS:

Code: [Select]
//  $newurl = 'http://forecast.weather.gov/MapClick.php?'.$newlatlong.'&unit=0&lg=english&FcstType=text&TextType=2';
  $newurl = 'https://forecast.weather.gov/MapClick.php?'.$newlatlong.'&unit=0&lg=english&FcstType=text&TextType=2';

4) I don't think this one is critical, but I changed $forecastwarnings to use HTTPS also.

Code: [Select]
//    $forecastwarnings .= '<a href="http://forecast.weather.gov/' . $warns[1][$i] . '" target="_blank">' .
//          '<strong><span style="color: red">'. $warns[2][$i] . "</span></strong></a><br/>\n";
    $forecastwarnings .= '<a href="https://forecast.weather.gov/' . $warns[1][$i] . '" target="_blank">' .
         '<strong><span style="color: red">'. $warns[2][$i] . "</span></strong></a><br/>\n";

5) Finally, in settings.php, similar change to $SITE['fcsturlNWS'],

Code: [Select]
//$SITE['fcsturlNWS'] = "http://forecast.weather.gov/MapClick.php?CityName=" .
$SITE['fcsturlNWS'] = "https://forecast.weather.gov/MapClick.php?CityName=" .

I think those are all of the changes and I now get the "old" style point forecast.

Offline ValentineWeather

  • Forecaster
  • *****
  • Posts: 5471
Re: Point Forecast Down?
« Reply #42 on: February 27, 2018, 01:12:08 PM »
I tried the https changes on the 4.02 and still doesn't work here. At least 5.04 is working now but don't like not having backup 4.02 because 5.04 was so unreliable.
Randy

Offline swohiowx

  • Member
  • *
  • Posts: 8
    • Horse Country Weather
Re: Point Forecast Down?
« Reply #43 on: February 27, 2018, 01:15:47 PM »
OK, I spent a few more minutes on this and got 4.02 working. These are the changes I made to 4.02 advforecast2.php and settings.php - not sure if all were necessary but....

......

I think those are all of the changes and I now get the "old" style point forecast.

those changes fixed me...thanks!

Offline daybreak

  • Senior Member
  • **
  • Posts: 71
    • Alma Weather
Re: Point Forecast Down?
« Reply #44 on: February 27, 2018, 01:24:40 PM »
I changed my script from 4.02 to 5.04 and mine is working now.  This is from the St. Louis office.

Richard

Offline ValentineWeather

  • Forecaster
  • *****
  • Posts: 5471
Re: Point Forecast Down?
« Reply #45 on: February 27, 2018, 02:02:59 PM »
I wonder if this was brought on by hackers. Yesterday malwarebytes was warning the NWS sites are malicious URL and asked if I wanted to continue.  I found it odd and now this.

This was the report:


-Blocked Website Details-
Malicious Website: 1
, , Blocked, [-1], [-1],0.0.0

-Website Data-
Category: Unspecified
Domain: zn9tslis2mj3kopgp-cfigroup.siteintercept.qualtrics.com
IP Address: 173.222.34.16
Port: [56386]
Type: Outbound
File: C:\Program Files (x86)\Google\Chrome\Application\chrome.exe



(end)
Randy

Offline 92merc

  • BismarckWeather.net
  • Forecaster
  • *****
  • Posts: 688
  • BismarckWeather.net
    • BismarckWeather.net
Re: Point Forecast Down?
« Reply #46 on: February 27, 2018, 03:01:25 PM »
I saw my V5 active script was reverting.  I flushed my JSON files from the cache, refreshed the page and it all came back.  I had to do the same thing yesterday morning.
http://www.BismarckWeather.net
Davis VP2, Cumulus, Blitzortung, Bloomsky, Saratoga Scripts

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 6869
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Point Forecast Down?
« Reply #47 on: February 27, 2018, 03:12:21 PM »
Grrr.  They changed the forecast.weather.gov site to force HTTPS.

So.. I've updated the OLD advforecast2.php to V4.03 and switched to curl for doing the access.

Use:  https://saratoga-weather.org/advforecast2-V4.03.php?sce=view to have the OLD script work again.

Dang 'em
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 ValentineWeather

  • Forecaster
  • *****
  • Posts: 5471
Re: Point Forecast Down?
« Reply #48 on: February 27, 2018, 03:19:40 PM »
Thanks Ken 4.03 is working here.
Randy

Offline DaculaWeather

  • It's a Jeep thing... you wouldn't understand.
  • WxElement panel
  • Forecaster
  • *****
  • Posts: 3171
  • SCCA EM #156
    • North Georgia and US Weather
Re: Point Forecast Down?
« Reply #49 on: February 27, 2018, 03:49:02 PM »
Knock on wood.... but I'm glad I didn't switch back. I've really had VERY few issues with 5.04 other than those times when the NWS screws up.