642weather.com Passes Tsunami Warning Test
The NOAA/National Weather Service conducted a Tsunami Warning Test on September 16, 2009, at approximately at 10:15 AM PDT (OMB Control Number 0648-0539). I am happy to announce that almost immediately the alert was displayed at 642weather.com.
How did I do it?
For the web site alert, I used the “NOAA RSS Advisory PHP Script 2.0“. This is PHP script by Ken True that I have recently reworked into a new version 2.0 that is specific to the new beta NWS Atom feeds.
For the Facebook, Twitter, E-mail and Text message alerts I used my free PHP script called “NOAA Top Weather Advisory Alerter“. This PHP script automatically posted the alert in many formats:
Automatically posted to Twitter
When using my PHP script, the alert 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. PHP 5 with CURL support is required along with these other requirements:
.. 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 15 minutes.
.. Your PHP server MUST allow PHP scripts permission to write files.
.. PHP safe_mode is recommended to be off
Automatically posted to Facebook
Ever want to receive severe weather alerts by cell phone, blackberry, Twitter, or email? This PHP script is used to check the NOAA RSS Weather Alert feeds on a timed schedule, then message you if an alert status changes in the zone you have set.
How to send these messages to Facebook:
(Requires a Facebook and a Twitter account)
Log into Facebook and go to this app:
Click settings and add your Twitter username, then grant permissions.
End a tweet with #fb when you want it to update your Facebook status – simple.
I made a Facebook page for 642weather, then made a personal profile for myself, I am the admin of the page now. Pages and profiles are two different things.
You can see a sample of the output of NOAA Top Weather Advisory Alerter script here
PHP Scripts by Mike Challis
One of my hobbies is operating a personal weather station located in Long Beach, WA called 642weather.com. One of my other hobbies is PHP programming for the Internet. I offer free PHP Weather Scripts, and often help people with creating their own weather websites in the Weather Watch Forum.(MCHALLIS). And I am the author of some very popular WordPress Plugins.
I am your freelance computer repair guy at Mike’s Computer Repair. I offer Computer Repair, Remote Support, Web Hosting, and Web Sites. Serving Long Beach Peninsula, Naselle(WA), Astoria, Warrenton and Seaside(OR). Read Mike’s Computer Repair Blog.