Web Weather > Weather Website PHP/AJAX scripting
PHP RSS for top NOAA warning display
saratogaWX:
This script is thanks to Jim at jcweather.us who combined a bit of my rss-advisory-test-c.php and Tom's of Carterlake.org advisory.php script to create a new script that reads the RSS feed for Zone warnings from NOAA, caches the XML, and sorts through the output to display the most severe warning for the area (based on the following list with most intense condition at top):
* Tornado Warning
* Other Warning
* Watch
* Advisory
* Special Statement
* Short Term Forecast
The script works with the rss-advisory-test-c.php script to display either nothing (for no active advisories), or a color-coded box/text (styled by CSS) to display the message and a link to the page to display the details.
Thanks for the design work Jim! I've added a few things to his script (and at his recommendation), posted the new script in the hope you might find it useful for your website too.
http://saratoga-weather.org/scripts-rss.php#topwarn
Best regards,
Ken
capeweather:
Thank you sir! I installed it last night and did a little tweaking to show an image next to the output. Very cool and easy to install! You da' man Ken.
saratogaWX:
Thanks Chris, and thanks to Jim at jcweather.us for the script mashup in the first place :grin:
Best regards,
Ken
jmcmurry:
--- Quote from: capeweather on November 10, 2007, 10:53:49 PM ---Thank you sir! I installed it last night and did a little tweaking to show an image next to the output. Very cool and easy to install! You da' man Ken.
--- End quote ---
Now that's a good idea! - Jim
anchorageweather:
Thank to all who had a hand in this!!!!!!!
Navigation
[0] Message Index
[#] Next page
Go to full version