WXforum.net
May 24, 2013, 02:37:11 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
Members: 6619  •  Posts: 178757  •  Topics: 18134
Please welcome moranbahweather, our newest member.
Welcome to the the new hosting for WXforum.net.
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: NWS forecast script advforecast2.php updated with warning links  (Read 616 times)
0 Members and 1 Guest are viewing this topic.
saratogaWX
Administrator
Forecaster
*****
Offline Offline

Posts: 3741


Saratoga, CA, USA Weather - free PHP scripts


WWW
« on: December 14, 2010, 10:27:13 PM »

Now that the NWS is posting nice red links to watches, warnings, advisories, outlooks and special weather statements on point-printable (and Zone and regular pages), I thought it would be nice to capture that and display the links on the output of advforecast2.php

It also creates a new $forecastwarnings text string (empty if no warnings) so you can use it in non-printing mode to display as you like.

Regrettably, the NWS has chosen not to put Outlooks or Special Weather Statements in the ATOM feeds, so using this script is pretty much the only way to get these advisories in a usable format .. if you're using the atom-advisory/atom-top-warning, or Curly's atom-advisory script for multiple zones, be aware that for Watches or Warnings, this script will duplicate what those scripts say.

WD/AJAX/PHP template users (USA template) can just download the V2.16 advforecast2.php script and upload to your site.. no configuration is necessary.

http://saratoga-weather.org/scripts-carterlake.php#carterlake

Best regards,
Ken
Logged

Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis Vantage Pro Plus - FARS, Boltek-PCI/NexStorm, GRLevel3, WD, WL, VWS, Cumulus, Meteohub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP
DaculaWeather
It's a Jeep thing... you wouldn't understand.
Forecaster
*****
Offline Offline

Posts: 2746


SCCA EM #156


WWW
« Reply #1 on: December 17, 2010, 02:20:56 PM »

I did a work around on my Forecast page. http://www.daculaweather.com/forecast.php I have the AFD and HWO as links on the page that link back to those pages. I capture those using a modified version of one of your scripts I think Ken! However, it doesn't have a link for watches and warnings.
Thanks Ken!
Logged

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

Pages: [1]   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.107 seconds with 19 queries.
anything