Weather Display Conditions Messenger PHP Script by Mike Challis
Perfect for sending your current conditions to Twitter or Email.
Ken True recently posted a similar script, this one has more features.Partially based on a variation of the following scripts:
NOAA Top Weather Advisory Alerter PHP Script by Mike Challishttp://www.642weather.com/weather/scripts-noaa-top-weather-alerter.php
RSS Top Warning PHP Script by Ken True http://saratoga-weather.org/scripts.php
PHP NOAA Advisory Text by Tom Chaplin http://www.carterlake.org/weatherphp.php
Twitter Code by http://morethanseven.net/2007/01/20/posting-to-twitter-using-php/What does it do?
Ever want to receive current weather conditions by cell phone, blackberry, Twitter, or email? Now you can.
This PHP script is used to check the Weather Display Conditions on a timed schedule,
then send a message.
Uses Weather Display Conditions data from your own personal weather station's testtags.php.
The message is short enough to send to twitter, a cell phone, blackberry, or email.
Supports sending messages by Email and Twitter, each method can be enabled or disabled.
Messages can be customized in the script settings.
Includes some of the features of the NWS Weather Forecast Messenger PHP Script by Mike Challiswww.642weather.com/weather/scripts-nws-forecast-messenger.phpWhat do I need?
PHP 5 with CURL support is required
.. personal weather station with weather-display software uploading testtags.php to your web site
.. Web server hosting account with PHP support and ability to send emails from PHP
.. Ability to schedule a cron job or a scheduler program on your PC that can request a URL every 1 hour.
.. your PHP server MUST allow PHP scripts permission to write files.
... PHP safe_mode is recommended to be offHow to use it:
1) Set your settings in the "settings" of the PHP script.
Be sure to set your email address and the optional twitter user password.
Also set the settings for Email and Twitter to customize the messages, each method can be enabled or disabled.
2) Upload this php file to your web server
3) Test from a URL, see if you can see the HTML output
After testing, you can move it to a private non-public web server folder.
Warning: it is recommended that you put the PHP file in a non-public www directory!
because you do not want people clicking the URL and flooding you with emails and twitters!!
If you put it in a non-public www directory, then the only way you can call it is from a cron job
There is a flood filter setting that will prevent the flood problem and allow you to have it in a public folder,
but make sure you test it first, don't just "set it and forget it".
4) It is recommended that you test an email or twitter to make sure you will receive one.
5) Schedule automatic timed updates
see readme.txt for more info