Regional Weather Script |
The idea behind the script was to produce a table from selected weather stations, these weather stations use similar equipment to me. The home page of my site is based on one of the templates provided with Virtual Weather Station and has a table of up to 40 local weather stations data. This data is provided by Weather Underground. The problem with this was I had no control which stations data was displayed so the quality of data display was variable. This script can with the permission the other weather station owners display data collected with Weather Display software. It uses a basic PHP script I found on the TNET Weather web site. This basic script read a clientraw.txt file that Weather Display produces and stores the data elements in an array. My script uses this function to read the clientraw.txt file from the selected web sites and displays the results in a table. The script can be configured in many ways.
The table also uses a Javascript Table Sorting script by 'All My Scripts' which allows the data to sorted under most columns The zipfile includes my PHP scripts in a working example web pages. It include the Javascript table sort script and a text file with more information about my script and configurering. Before adding weather stations the your page it is highly recommended that you gain permission from the station owner. Generally weather station operators are only too pleased to share there data. I do not recommmend the you do not include more than about 12 sites in the script as each site you add slows down the rendering of the page. It is best to only include sites that regually operate 24/7 as sites that are offline slow the page load greatly. The script uses CSS so change to colour schemes are quite easy and are included in the example download To see the script in use as I use it on Clevedon Weather and an example what you get in the downloadable zip Example of Script in use |
The above script can be download Regional Weather Script requires PHP5 |
There are a number of weather station web
sites around the world that are using this script and some have modified
it to suit their own needs.Common modifications are to reduce the number
columns to allow the table to fit there page layouts. Below are a few
other sites using this script.
|