WXforum.net
May 22, 2013, 03:39:56 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
Members: 6617  •  Posts: 178536  •  Topics: 18117
Please welcome TheMOX, our newest member.
Welcome to the the new hosting for WXforum.net.
 
   Home   Help Search Login Register  
Pages: 1 [2]   Go Down
  Print  
Author Topic: Multiple alerts on SWSP script  (Read 2255 times)
0 Members and 1 Guest are viewing this topic.
Curly
Forecaster
*****
Offline Offline

Posts: 476


WWW
« Reply #25 on: July 02, 2012, 08:24:50 PM »

Curly, your so good you must have 'scared' your script into working  Applause

Doug

The NWS must have heard me swearing at them.  Laughing
Logged
DaculaWeather
It's a Jeep thing... you wouldn't understand.
Forecaster
*****
Offline Offline

Posts: 2716


SCCA EM #156


WWW
« Reply #26 on: July 02, 2012, 08:38:52 PM »

Maybe some of my hell raising did something!  Very Happy

They got several nasty emails from me and a NWS met is filing a formal complaint in the morning.
Logged

Steve
Davis Vue, VWS, WDisplay, VVP, StartWatch CWOP 

n3ouc
Contributor
***
Offline Offline

Posts: 105



WWW
« Reply #27 on: July 02, 2012, 08:51:56 PM »

Hey Curly,
Thanks for working out the issue with the SWSP script. With the change you suggested, the script is now working on my site.

Take Care,
Mike
Logged

Mike Stanton
Air Products Campus Weather
SoMDWx
Forecaster
*****
Offline Offline

Posts: 610



WWW
« Reply #28 on: July 04, 2012, 10:51:00 AM »

Curly et al,
  It appears that the Heat Advisory that we have now is correct in the text, but the map and map legend aren't even close. I made the code change and also cleared the cache and still  no success..... ARGH!

Jim
Logged

Jim Wyman
Certificate In Weather Forecasting Graduate, Fall '11, PSU
Creator of Scit Pro
Southern Maryland Weather
http://somdweather.com
http://scit.somdweather.com
Curly
Forecaster
*****
Offline Offline

Posts: 476


WWW
« Reply #29 on: July 04, 2012, 11:25:22 AM »

Curly et al,
  It appears that the Heat Advisory that we have now is correct in the text, but the map and map legend aren't even close. I made the code change and also cleared the cache and still  no success..... ARGH!

Jim

At 11am this morning it looks correct.

I believe the NWS is converting the old pages to the new and some things just aren't updating like they use to.
For instance is their alert page  (http://alerts.weather.gov/) and their SWSP pages (http://forecast.weather.gov/afm/PointClick.php?lat=41.90190646489071&lon=-87.75444860888001).
I've seen missing icon file names in pages, late updates, and some xml files changing.

With all of the changes, the only thing that seems consistent is the forecast.
Reminds me when the they switched the alerts from CAP to ATOM. It wasn't that smooth and it was a couple of weeks before things smoothed out.

I am monitoring this and will give it a few more days to see if their changes are permanent.
Logged
Curly
Forecaster
*****
Offline Offline

Posts: 476


WWW
« Reply #30 on: July 04, 2012, 10:11:39 PM »

UPDATE

The NWS moved the original National Warnings continental US map that use to be on their main page.
http://www.nws.noaa.gov/view/nationalwarnings.php?map=on
They switched the map from individual WFO areas to the state information. The state information is completely different than before and there is no reference to their SWSP product.
If you use the National conus map, tomorrow you may not be able to click on the map.

It appears that this is going to get phased out and shifting towards to the large map on their main page.
http://www.weather.gov/

I'm still looking for alternatives.
Logged
ctccbc
Senior Contributor
****
Offline Offline

Posts: 151

Acurite 01035, Weather Display


WWW
« Reply #31 on: July 05, 2012, 10:17:35 AM »

I still haven't been able to figure out my original question. I see several of you who are able to get multiple headlines on your pages, but I'm still only able to get one. And sometimes things like an Air Quality Alert overrides a Special Weather Statement.

Thanks,
Chris
moreheadcityweather.com
Logged

n3ouc
Contributor
***
Offline Offline

Posts: 105



WWW
« Reply #32 on: July 05, 2012, 10:28:55 AM »

Chris,
Here is my config in the sws-config.php file that seems to control multiple alerts. The bold may be what you need to check for your setup. Just a side note, I have lost the SWSP alerts as of this morning. I still have the map but lost all text.

// Alert Box
$showHWOSTF = true;                     // true=show Hazardous Weather Outlook and Short Term Forecast    false= do not display
$useAlertBox = true;                    // true=writes a cache file for an alert box   false=not using an alert box
$newLine = true;                        // true=a new line for each type of alert  false=string alerts types
$SWSPcacheTime = 300;                   // cache file retention time in seconds before renewing
$alertDetailPage = 'SWSPnational.php';  // web page for displaying map & details
$alertCONUSmap = 'SWSPnational.php';    // page link for the Continental US map

$useCountyList = true;  // true=use the locations below in the WFO drop-down menu  false=don't add these locations




Mike
Logged

Mike Stanton
Air Products Campus Weather
SoMDWx
Forecaster
*****
Offline Offline

Posts: 610



WWW
« Reply #33 on: July 05, 2012, 10:40:14 AM »

Curly,
  Where can I get a copy of the AtomZone.php script? Did you create it or someone else?

Jim
Logged

Jim Wyman
Certificate In Weather Forecasting Graduate, Fall '11, PSU
Creator of Scit Pro
Southern Maryland Weather
http://somdweather.com
http://scit.somdweather.com
ctccbc
Senior Contributor
****
Offline Offline

Posts: 151

Acurite 01035, Weather Display


WWW
« Reply #34 on: July 05, 2012, 10:42:38 AM »

I just noticed, the text on the alert pages are missing now!
Logged

Curly
Forecaster
*****
Offline Offline

Posts: 476


WWW
« Reply #35 on: July 05, 2012, 10:49:21 AM »

Quote
I still haven't been able to figure out my original question. I see several of you who are able to get multiple headlines on your pages, but I'm still only able to get one. And sometimes things like an Air Quality Alert overrides a Special Weather Statement.

If you are seeing multiple headlines in an alert box, they have multiple locations. One alert headline per location.
You only have one location listed (Carteret County NC) and will get just one headline.  

The NWS controls which alert has the priority. The color coding of the map and the alert listed in the legend determines the headline.
Logged
Curly
Forecaster
*****
Offline Offline

Posts: 476


WWW
« Reply #36 on: July 05, 2012, 10:50:02 AM »

I just noticed, the text on the alert pages are missing now!

Yap. Things changed again this morning.
Logged
Curly
Forecaster
*****
Offline Offline

Posts: 476


WWW
« Reply #37 on: July 05, 2012, 11:08:46 AM »

Curly,
  Where can I get a copy of the AtomZone.php script? Did you create it or someone else?

Jim

The AtomFeed program is still available for the asking.
However this program is quite large, a little difficult to set up, and requires some type of a cron job to get the alerts because of the time involved fetching the data from the NWS.

A REPLACEMENT FOR THE ATOMFEED PROGRAM IS IN THE WORKS!
This new program will not require a cron job for one, or possibly two, locations. More than two locations will need some type of a cron job because of the time involved checking several codes. This depends on how many zone & county codes are listed for each location.
Beta testers have been using this for a few weeks and data downloads are faster. It's much easier to set up and half the size of the AtomFeed program.

This may also be a replacement for the SWSP program if the NWS continues to strip down their SWSP product.
Logged
SoMDWx
Forecaster
*****
Offline Offline

Posts: 610



WWW
« Reply #38 on: July 05, 2012, 11:13:36 AM »

Thanks Curly. Right now the SWSP stuff has gone to the &(*&@#%(@^%.    So right now, I have no details for the alerts being received.... Things are sorta of critical now , like with alot of people,  with the Heat Advisories and SEVERE WEATHER situations here in the east....

Jim
Logged

Jim Wyman
Certificate In Weather Forecasting Graduate, Fall '11, PSU
Creator of Scit Pro
Southern Maryland Weather
http://somdweather.com
http://scit.somdweather.com
Curly
Forecaster
*****
Offline Offline

Posts: 476


WWW
« Reply #39 on: July 05, 2012, 11:18:10 AM »

I'm working on another fix for this right now.
Logged
Curly
Forecaster
*****
Offline Offline

Posts: 476


WWW
« Reply #40 on: July 05, 2012, 12:14:36 PM »

UPDATE

All instances of the following line will need to be changed. Note the single quotes!
Code:
'http://www.srh.noaa.gov'

Replace all instances above, including the single quotes, with this:
Code:
'http://forecast.weather.gov'

Logged
SoMDWx
Forecaster
*****
Offline Offline

Posts: 610



WWW
« Reply #41 on: July 05, 2012, 12:23:35 PM »

I assume this affects only the core php file... How many instances showed be changed?

Jim
Logged

Jim Wyman
Certificate In Weather Forecasting Graduate, Fall '11, PSU
Creator of Scit Pro
Southern Maryland Weather
http://somdweather.com
http://scit.somdweather.com
ctccbc
Senior Contributor
****
Offline Offline

Posts: 151

Acurite 01035, Weather Display


WWW
« Reply #42 on: July 05, 2012, 12:30:48 PM »

Thanks Curly!
That did the trick on my site!

Chris
moreheadcityweather.com
Logged

Curly
Forecaster
*****
Offline Offline

Posts: 476


WWW
« Reply #43 on: July 05, 2012, 12:35:16 PM »

I assume this affects only the core php file... How many instances showed be changed?

Jim

Sorry, this is in the SWSP-core.php file.
Depending on the version used, there are 5 instances.

A complete SWSP-core.php file can be downloaded here: SWSP-core.php version 3.2
Logged
SoMDWx
Forecaster
*****
Offline Offline

Posts: 610



WWW
« Reply #44 on: July 05, 2012, 12:54:38 PM »

Works Nicely! Thanks again Curly..... Applause  Applause
Logged

Jim Wyman
Certificate In Weather Forecasting Graduate, Fall '11, PSU
Creator of Scit Pro
Southern Maryland Weather
http://somdweather.com
http://scit.somdweather.com
CNYWeather
Forecaster
*****
Offline Offline

Posts: 1386



WWW
« Reply #45 on: July 05, 2012, 02:40:08 PM »

Sorry, this is in the SWSP-core.php file.
Depending on the version used, there are 5 instances.

A complete SWSP-core.php file can be downloaded here: SWSP-core.php version 3.2


Works perfect Curly. Thanks as always for the extra effort.
Logged

n3ouc
Contributor
***
Offline Offline

Posts: 105



WWW
« Reply #46 on: July 05, 2012, 03:47:54 PM »

Curly,
Thank you for the fix!  Worked nicely..

Mike
Logged

Mike Stanton
Air Products Campus Weather
DaculaWeather
It's a Jeep thing... you wouldn't understand.
Forecaster
*****
Offline Offline

Posts: 2716


SCCA EM #156


WWW
« Reply #47 on: July 06, 2012, 09:06:11 AM »

I assume this affects only the core php file... How many instances showed be changed?

Jim

Sorry, this is in the SWSP-core.php file.
Depending on the version used, there are 5 instances.

A complete SWSP-core.php file can be downloaded here: SWSP-core.php version 3.2
I only see one instance...

Logged

Steve
Davis Vue, VWS, WDisplay, VVP, StartWatch CWOP 

jgillett
Forecaster
*****
Offline Offline

Posts: 484


Davis VP 2+ wireless, FARS, Boltek, Win7 Pro


WWW
« Reply #48 on: July 14, 2012, 12:58:11 PM »

UPDATE

All instances of the following line will need to be changed. Note the single quotes!
Code:
'http://www.srh.noaa.gov'

Replace all instances above, including the single quotes, with this:
Code:
'http://forecast.weather.gov'

Many thanks, curly! That fixed mine as well.
Logged

John
W7JKG

sacreyweather
John Sacrey - VP2 Pro
Forecaster
*****
Offline Offline

Posts: 404


Saline Weather


WWW
« Reply #49 on: July 28, 2012, 07:40:55 PM »

Thanks for the fix, Curly.  Just now came across this for my site.

John
Logged

CWOP: D2073, GR2AE, GR3, WD, PWS/weatherforyou.com, WxWeb,
CoCoRaHS: AR-SL-16, Weatherbug Station No. 25826
Saline Weather
Saline Weather on Twitter
Pages: 1 [2]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.093 seconds with 19 queries.