Weather station scripts

They're free, but use at your own risk

The scripts referenced here are used in the operation of this weather station, and may be freely copied and used to support your station. Please note that you use these scripts at your own risk. No warranty is expressed or implied. I accept no liability for any damages that may ensue from their use.
You will need to configure them for your own particular weather station website.
RSS feed for Scripts Updates A RSS Feed is available to help keep you informed on updates to the scripts.

If you find one or more of the scripts useful to you, please consider making a donation to help offset the routine expenses of operation of this website.
Thanks for your kind support!

A Version History is available -- check back from time to time to see if there are updates to scripts you have downloaded earlier. Announcements of version updates and new scripts are made on and Weather-Watch forums and saratogaWXPHP Twitter account as they become available.

This page was updated Wednesday, 18-Jul-2012 2:09 PM

Weather Warnings from (EUMETNET member countries)

I have received permission from to allow personal, non-commercial weather websites to use and republish the data from their website as long as the attribution text produced by the script is displayed.
See the script itself for additional information.

This script will read and cache a weather awareness warning from for a specified region in a country that participates in EUMETNET. The countries/areas in color are available.

METEOalarm countries

As a standalone script, it can be configured to display the warning in any one of the supported languages of the member countries. When used within the AJAX/PHP Base-World template, the language for the template set will be automatically selected. Please note that the translations for the contents are provided by , and no additional translation is done by the World-ML template set..

Settings in the file for non-template (or for non-English use in the World template) are:

// -------------Settings ---------------------------------
$Lang 'en';  // default language to be used (lowercase, must correspond to available 
//               template languages of
//              'en','ct','de','dk','el','es','fi','fr','it','nl','no','pl','pt','se'
$EUA_URL "";
// create a 'meteoalarm-en.txt' file in the same directory as the script.
// you may have to set the permissions on the file to '666' so it is writable
// by the webserver.  Repeat for each language supported by your site.
$EUAcacheName "./meteoalarm.txt";
// note:  will be changed to -.txt (like -en.txt) to allow languages to have unique cache files.
$EUArefetchSeconds 3600;  // refresh every hour
// -------------End Settings -----------------------------

For AJAX/PHP Base-World template users, only one setting needs to be changed in Settings.php.

$SITE['EUwarningURL'] = '<uri for detail page>';

To find the URL to use for $EUA_URL (or $SITE['EUwarningURL'] in Settings.php), use your browser to open website. Click on the map or country, and continue into the site until your region's warnings are displayed. The address bar in the browser now contains the URL to use .. highlight it, copy it to the clipboard and paste it into the $EUA_URL or $SITE['EUwarningURL'] contents area.

The get-meteoalarm-warning-inc.php script uses a cache file to store the return from the $EUA_URL page. The characters -{lang}.txt are appended to the file name, so for lang=en, the cache name is ./meteoalarm-en.txt, similarly for lang=es, the cache name would be ./meteoalarm-es.txt. Please make sure that all the cache file(s) for the languages offered on your website are writable by PHP [permission 666] so the cache will be enabled.

Include the following text on your page to display the output, and a live sample is shown below.

?> Weather warnings: Østjylland

 No special awareness required

Warning data courtesy of and Copyright © EUMETNET-METEOalarm (
Used with permission.
Time delays between this website and the website are possible, for the most up to date information about alert levels as published by the participating National Meteorological Services please use

Download: get-meteoalarm-warning-inc.php (V2.08 - 18-Jul-2012) (see Version History)
(note: this script is included with the AJAX/PHP Base-World website template )