Weather Display Conditions Messenger PHP Script by Mike Challis
More Info        - www.642weather.com/weather/scripts-wd-conditions-messenger.php
Download         - www.642weather.com/weather/scripts/wd-conditions-messenger.zip
Live Demo        - www.642weather.com/weather/wd-conditions-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 - 11-Jul-2009 - release

Version: 1.01 - 15-Jul-2009 - improved units of measures handling
- added rounding of wind units
- added settings for units of measure indicators
- added setting for testtags file path
- added setting for selecting one of two wind display options
- added timestamp to message 

Version: 1.02 - 15-Jul-2009 - added high/low temp to messages: (H84/L59)

Version: 1.03 - 17-Jul-2009 - improved shorten_twitter function
- added configurable array of shorten_twitter words to settings.
- changed current condition variable to use $Currentsolardescription instead of $weathercond,
this can be reversed on about line 256:
// uncomment only one of these two condition tags
$sCond = $Currentsolardescription; // current condition: Night Time/Dry/Cloudy
//$sCond = $weathercond;           // current condition: Dry

Version: 1.04 - 17-Jul-2009 - 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 twitter message to
$twitter_shorten = '140';

// number of characters to attempt to shorten email message to
$email_shorten = '120';

Version: 1.05 - 17-Jul-2009 - trim spaces from current conditions

Version: 1.06 - 19-Jul-2009 - added email Bcc feature

Version: 1.07 - 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 hour
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/wd-conditions-messenger.php >/dev/null 2>&1 

Version: 2.00 - 13-Jun-2010 - added OAuth/Twitter authentication (TweetWX) 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 TweetWX folder if you are upgrading and you use the Twitter feature.

Version: 2.01 - 14-Dec-2011 - Updated to fox some errors in the instructions for TweetWX.

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

