NWS Weather Forecast Messenger PHP Script by Mike Challis
More Info        - www.642weather.com/weather/scripts-nws-forecast-messenger.php
Download         - www.642weather.com/weather/scripts/nws-forecast-messenger.zip
Live Demo        - www.642weather.com/weather/nws-forecast-messenger.php
Free PHP Scripts - www.642weather.com/weather/scripts.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 - 10-Jul-2009 - release

Version: 1.01 - 10-Jul-2009 - fixed flood filter (do not use version 1.00)

Version: 1.02 - 10-Jul-2009 - added features: selectable temp units setting.
- if twitter message is too long, attempts to shorten it by abbreviating some weather condition words.
- prints on the web page how long the flood filter is still in effect for...
(Flood filter is in effect for 5 hours, 9 minutes, no twitter was sent)

Version: 1.03 - 14-Jul-2009 - fixed possible fatal error regarding attributes 

Version: 1.04 - 22-Jul-2009 - added post authentication feature. 
Now you can edit your cron job to use CURL and pass a username and password 
so that the script can be in public view and it only emails when called from your cron job with the correct username and password.
This is the best way to allow the script to be in public 
and have the most accurate cron times, such as I use: every 6 hours (3,9,16,22) 3pm,9pm,3am,9am
This is a sample of my cron: (be sure to set your_username and your_password)
curl -d 'username=your_username&password=your_password' http://www.642weather.com/weather/nws-forecast-messenger.php >/dev/null 2>&1 

Version: 1.05 - 22-Jul-2009 
- added configurable array of shorten_message words to settings.

- shorten_twitter function changed to a shorten_message function that can shorten emails and twitters
- added two more settings:
// number of characters to attempt to shorten email message to
$email_shorten = '120';

// number of characters to attempt to shorten twitter message to
$twitter_shorten = '140';   

Version: 1.06 - 15-Aug-2009
- added email Bcc feature
- improved instructions inside readme.txt
    
Version: 1.07 - 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.01 - 29-Sep-2011 - NWS changed the data URL, this update uses the correct URL.

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



   