|
Curly
|
 |
« Reply #25 on: July 02, 2012, 08:24:50 PM » |
|
Curly, your so good you must have 'scared' your script into working  Doug The NWS must have heard me swearing at them. 
|
|
|
|
|
Logged
|
|
|
|
|
DaculaWeather
|
 |
« Reply #26 on: July 02, 2012, 08:38:52 PM » |
|
Maybe some of my hell raising did something!  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
|
 |
« 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
|
 |
« 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
|
|
|
|
|
Curly
|
 |
« 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
|
 |
« 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=onThey 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
|
 |
« 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
|
 |
« 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
|
 |
« 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
|
|
|
|
|
ctccbc
|
 |
« Reply #34 on: July 05, 2012, 10:42:38 AM » |
|
I just noticed, the text on the alert pages are missing now!
|
|
|
|
|
Logged
|
|
|
|
|
Curly
|
 |
« Reply #35 on: July 05, 2012, 10:49:21 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. 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
|
 |
« 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
|
 |
« 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
|
 |
« 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
|
|
|
|
|
Curly
|
 |
« Reply #39 on: July 05, 2012, 11:18:10 AM » |
|
I'm working on another fix for this right now.
|
|
|
|
|
Logged
|
|
|
|
|
Curly
|
 |
« 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! 'http://www.srh.noaa.gov' Replace all instances above, including the single quotes, with this: 'http://forecast.weather.gov'
|
|
|
|
|
Logged
|
|
|
|
|
SoMDWx
|
 |
« 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
|
|
|
|
|
ctccbc
|
 |
« Reply #42 on: July 05, 2012, 12:30:48 PM » |
|
Thanks Curly! That did the trick on my site!
Chris moreheadcityweather.com
|
|
|
|
|
Logged
|
|
|
|
|
Curly
|
 |
« 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
|
 |
« Reply #44 on: July 05, 2012, 12:54:38 PM » |
|
Works Nicely! Thanks again Curly..... 
|
|
|
|
|
Logged
|
|
|
|
|
CNYWeather
|
 |
« 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.2Works perfect Curly. Thanks as always for the extra effort.
|
|
|
|
|
Logged
|
|
|
|
|
n3ouc
|
 |
« 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
|
 |
« 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.2I only see one instance...
|
|
|
|
|
Logged
|
Steve Davis Vue, VWS, WDisplay, VVP, StartWatch CWOP  
|
|
|
|
jgillett
|
 |
« 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! 'http://www.srh.noaa.gov' Replace all instances above, including the single quotes, with this: 'http://forecast.weather.gov' Many thanks, curly! That fixed mine as well.
|
|
|
|
|
Logged
|
John W7JKG 
|
|
|
|
sacreyweather
|
 |
« 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
|
|
|
|
|