Author Topic: Script that displays Special Weather Statements?  (Read 628 times)

0 Members and 1 Guest are viewing this topic.

Offline UpstateWeather.com

  • Signature
  • Contributor
  • ***
  • Posts: 146
    • Upstate Weather
Script that displays Special Weather Statements?
« on: August 09, 2018, 04:29:48 PM »
Is there a script that displays a Special Weather Statement alert?

Something like the nws-alert.php does but specifically for Special Weather Statements?

Offline tmabell

  • Forecaster
  • *****
  • Posts: 391
    • Mishawaka Weather
Re: Script that displays Special Weather Statements?
« Reply #1 on: August 10, 2018, 07:39:55 AM »
nws-alerts.php does display special weather statements.  Are you wanting nothing but the SPS?

Offline UpstateWeather.com

  • Signature
  • Contributor
  • ***
  • Posts: 146
    • Upstate Weather
Re: Script that displays Special Weather Statements?
« Reply #2 on: August 10, 2018, 09:17:52 AM »
nws-alerts.php does display special weather statements.  Are you wanting nothing but the SPS?

@tmabell - So my news-alerts.php isn't displaying special weather statements. Is there a setting to enable / disable that? Or maybe I'm pulling from the wrong NWS links?

To answer your question - no, I don't want just the SPS. I want them to be included in my normal warnings/advisories.

Thanks!
EB

Offline Jasiu

  • Forecaster
  • *****
  • Posts: 946
    • LexMAWeather
Re: Script that displays Special Weather Statements?
« Reply #3 on: August 10, 2018, 09:34:25 AM »
Probably have to take a look at what's happening when you have an special weather statement active. There is nothing in the code that excludes them. Give a shout on this thread when you have that situation.
https://lexmaweather.info
On Mastodon: @LexMAWeather@toot.community

Offline UpstateWeather.com

  • Signature
  • Contributor
  • ***
  • Posts: 146
    • Upstate Weather
Re: Script that displays Special Weather Statements?
« Reply #4 on: August 10, 2018, 09:51:04 AM »
Probably have to take a look at what's happening when you have an special weather statement active. There is nothing in the code that excludes them. Give a shout on this thread when you have that situation.

Will do. Thank you!!

Offline tmabell

  • Forecaster
  • *****
  • Posts: 391
    • Mishawaka Weather
Re: Script that displays Special Weather Statements?
« Reply #5 on: August 10, 2018, 03:44:45 PM »
This may have already been stated or made obvious otherwise but in your nws-alerts-config.php you need to include both the County UGC as well as the Zone UGC for each county you've chosen.  The SPS is a zone product.  See my example below:

"St Joseph|INZ004|INC141",

Hope this helps.

Offline UpstateWeather.com

  • Signature
  • Contributor
  • ***
  • Posts: 146
    • Upstate Weather
Re: Script that displays Special Weather Statements?
« Reply #6 on: August 13, 2018, 04:38:37 PM »
This may have already been stated or made obvious otherwise but in your nws-alerts-config.php you need to include both the County UGC as well as the Zone UGC for each county you've chosen.  The SPS is a zone product.  See my example below:

"St Joseph|INZ004|INC141",

Hope this helps.

I have both in there - but i'll double check to make sure they are the right codes. Does it matter which one is first? Zone or County?

Offline tmabell

  • Forecaster
  • *****
  • Posts: 391
    • Mishawaka Weather
Re: Script that displays Special Weather Statements?
« Reply #7 on: August 13, 2018, 04:43:29 PM »
I don't think so but what I posted works.