Author Topic: NOAA Local Storm Report  (Read 1373 times)

0 Members and 1 Guest are viewing this topic.

Online yamiacaveman

  • Forecaster
  • *****
  • Posts: 440
    • Penn Lake Weather
NOAA Local Storm Report
« on: March 03, 2018, 03:37:32 PM »
http://www.pennlake.us/wxNWSlsr.php

My Noaa Local Storm Report, (wxNWSlsr.php) stopped working the other day, I use, BGM, Binghamton, NY as the base, I was just wondering if something had changed there.

Anyone else having issue's with this script??

yamiacaveman

Offline tmabell

  • Forecaster
  • *****
  • Posts: 394
    • Mishawaka Weather
Re: NOAA Local Storm Report
« Reply #1 on: March 03, 2018, 04:29:59 PM »
Mine went belly up as well.  Attached is the latest version I got from Curly.

Online yamiacaveman

  • Forecaster
  • *****
  • Posts: 440
    • Penn Lake Weather
Re: NOAA Local Storm Report
« Reply #2 on: March 03, 2018, 04:48:23 PM »
Boy Thanks I'll give it a try!

Please, give my regards to Curly.


yamiacaveman

Offline tmabell

  • Forecaster
  • *****
  • Posts: 394
    • Mishawaka Weather
Re: NOAA Local Storm Report
« Reply #3 on: March 03, 2018, 04:54:05 PM »
That one won't work now either.  I was hoping someone might have a fix  :grin:

Online yamiacaveman

  • Forecaster
  • *****
  • Posts: 440
    • Penn Lake Weather
Re: NOAA Local Storm Report
« Reply #4 on: March 03, 2018, 05:07:38 PM »
Yep -- I just found that out, lol. I see the information seems to be available, but it is way beyond me on how to get it to my page.

By that I mean if in the old one I click on "Storm Report Office"
https://forecast.weather.gov/product.php?site=BGM&issuedby=BGM&product=LSR&format=TXT&version=1&glossary=0

It looks like the way the old info was - but like I said -- how to get it to my site, way beyond me.

Thanks for the suggestion and assistance.

yamiacaveman

Online yamiacaveman

  • Forecaster
  • *****
  • Posts: 440
    • Penn Lake Weather
Re: NOAA Local Storm Report
« Reply #5 on: March 03, 2018, 09:42:50 PM »
I see some people are using a little different script - I don't have it but that isn't working either.
wxLSRreports2tab.php

Offline lddaly

  • Forecaster
  • *****
  • Posts: 490
Re: NOAA Local Storm Report
« Reply #6 on: March 03, 2018, 10:18:29 PM »
I don't have this script on my site, but it is probably related to the changes the NWS made this week.

Try changing this:
Code: [Select]
$nwslsr  = "http://forecast.weather.gov/product.php?site=".strtoupper($wfo_id)."&issuedby=".strtoupper($wfo_id2)."&product=LSR&format=TXT&version=".$rep_ver."&glossary=0";To:
Code: [Select]
$nwslsr  = "https://forecast.weather.gov/product.php?site=".strtoupper($wfo_id)."&issuedby=".strtoupper($wfo_id2)."&product=LSR&format=TXT&version=".$rep_ver."&glossary=0";
and

This:
Code: [Select]
$url = str_replace("http://","",$URL);To:
Code: [Select]
$url = str_replace("https://","",$URL);

Online yamiacaveman

  • Forecaster
  • *****
  • Posts: 440
    • Penn Lake Weather
Re: NOAA Local Storm Report
« Reply #7 on: March 03, 2018, 10:57:41 PM »
Hey -- Thanks  --- In the script I have I don't have those lines but you gave me the direction to go!

Line 87               $noaasr  = "https://forecast.weather.gov/product.php?site=".strtoupper($noaa_id)."&issuedby=".strtoupper($noaa_id2)."&product=LSR&format=TXT&version=".$noaa_page."&glossary=0";

Changed the http to https   and all is good now.


Thanks Iddaly!!!!!!!!!!!!!!

Offline lddaly

  • Forecaster
  • *****
  • Posts: 490
Re: NOAA Local Storm Report
« Reply #8 on: March 03, 2018, 11:08:06 PM »
Glad it worked. My suggestion was based on the LSRreports_inc.zip file attached previously in this thread.

Offline tmabell

  • Forecaster
  • *****
  • Posts: 394
    • Mishawaka Weather
Re: NOAA Local Storm Report
« Reply #9 on: March 04, 2018, 07:37:18 AM »
Thanks lddaly, that did fix my version!

Offline mikeym2m

  • Senior Contributor
  • ****
  • Posts: 153
    • MikeyM's Thornhurst PA Weather
Re: NOAA Local Storm Report
« Reply #10 on: March 04, 2018, 10:32:19 AM »
Thanks lddaly fixed it for me also!  \:D/

Cheers

 :grin:

MikeyM