NWS Public Alert Messenger PHP Script by Mike Challis
(old title)NOAA Top Weather Advisory Alerter PHP Script
Free PHP Scripts - www.642weather.com/weather/scripts.php
More Info        - www.642weather.com/weather/scripts-noaa-top-weather-alerter.php
Download         - www.642weather.com/weather/scripts/noaa-top-weather-alerter.zip
Live Demo        - www.642weather.com/weather/rss-weather-alerter.php
Contact Mike     - www.642weather.com/weather/contact_us.php
Donate:          https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2319642  

Version: 1.00 - 08-Jul-2009 - release

Version: 1.01 - 08-Jul-2009 - fix for adding zone name to the Alert message

Version: 1.02 - 08-Jul-2009 - added global user agent string for outbound connections

Version: 1.03 - 09-Jul-2009 - added feature to customize the email subject and message
- improved web page details that are displayed.

Version: 1.04 - 10-Jul-2009 - more improvements to web page details that are displayed.

Version: 1.05 - 10-Jul-2009 - fixed bug where the email message had the zone title added twice.

Version: 1.06 - 10-Jul-2009 - added feature, new setting:
// some areas get too many Short Term Forecast and would like warnings/watches alerts only
$ignore_forecasts = false; // change to true to ignore "Short Term Forecast" alerts

Version: 1.07 - 11-Jul-2009 - fixed another bug where the email message had the zone title added twice.
- added feature setting: $message_resend_enabled to allow resending alert messages at pre-determined intervals
some areas can have an active alert like a "High Wind Warning" for more than a day or two.
This feature allows resending the active alert messages like every 12 hours or so

Version: 1.08 - 14-Jul-2009 - added optional log file feature. Includes log-viewer.php, 
a section of code that you can insert in your advisory log page
when you are using the NOAA Top Weather Advisory Alerter PHP Script with logging enabled.

Version: 1.09 - 18-Jul-2009 - added email Bcc feature
- added "Last Updated:" timestamp for the advisory 

Version: 1.10 - 18-Jul-2009 - added timezone setting for "Last Updated:" timestamp for the advisory 

Version: 1.11 - 24-Jul-2009 - fixed ignore "Short Term Forecast" alerts (it was totally broke)
if you use this feature this is a critical update.

Version: 1.12 - 31-Aug-2009 - If you have one of the rss-asvisory.php or rss-top-warning.php script that is pre version 2.00  
the cache file could conflict with the other script.
If this condition is detected, the script will output: "Advisory Information Unavailable, cache file conflict, view source for details."
If you view the source you will see more details about the cause and how you can fix it (upgrade your other scripts to 2.00 or higher).

Version: 1.13 - 01-Sep-2009 - Fixed error when Air Quality Alert, improved top alert selection. 
If it cannot figure out which alert is the top most alert, it will select the 1st one.

Version: 1.14 - 02-Sep-2009 - Fixed zone name twice in alert message, and more improved top alert selection.

Version: 1.15 - 09-Sep-2009 - Added setting
// normally when the Advisory is canceled or expires, and the cache is updated,
// it sends out email/text alert stating "There are no active watches, warnings or advisories".
// disable this?
$disable_expired_message = false; // change to true to disable alert ended alert 

Version: 1.16 - 28-Oct-2009 - NWS recently added County codes in addition to Zone codes.
Change code to allow Zone or County codes.

Version: 1.17 - 16-Nov-2009 - add Return-Path header to email.

Version: 2.00 - 13-Jun-2010 - added OAuth/Twitter authentication (TweetWX642) because user/password authentication is being disallowed after June 30th, 2010 (Thanks to Joe Chung and Ken True for providing the auth code) See the readme.txt inside the TweetWX642 folder if you are upgrading and you use the Twitter feature.

Version: 2.10 - 15-Mar-2010 - Updated weather.gov feed URL
(new title)NWS Public Alert Messenger PHP Script by Mike Challis
(old title)NOAA Top Weather Advisory Alerter PHP Script by Mike Challis


Version: 2.11 - 16-Jun-2013 - updated to oath twitter api version 1.1 (uses SSL connection for better security)






