deformed-offering

Free Weather Website Templates

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 WXForum.net and Weather-Watch forums and saratogaWXPHP Twitter account as they become available.

This page was updated Wednesday, 10-Apr-2013 12:44 PM

PHP/AJAX Website Template Set - Cumulus Setup

Overview

There are two needed setups required in Cumulus for the proper operation of your template set. Please follow the setup instructions in the sections below to have Cumulus upload your CUtags.php file and your AJAX update data file (realtime.txt).

Setup to upload CUtags.php

Select either the CUtags-comments.txt file (larger, but with comments) or the CUtags.txt (smaller, without comments) as the template file source from the distribution WXtags-template-files directory.

NOTE: you may want to delete the following two lines from your chosen file:

wdirdata|<#wdirdata>:|:
wspddata|<#wspddata>:|:

as they result in a much larger CUtags.php file. They contain 3600 data points for wind direction and wind speed which are not used by the templates. I recommend you just delete those lines and save your FTP upload bandwidth.

Place the chosen file (after possible editing) in your cumulus\web directory

Use the Cumulus, Configuration, Internet, Files panel and select an unused entry:

Cumulus setup

Check the "Include Standard Images" box .. this will allow the graphs to be displayed on wxgraphs.php page.
You can uncheck the "Include Standard Files" box .. the template set uses only the graphs and CUtags.php for weather data.

In the Local Filenames, press Browse and select the chosen file as the local filename.
In the Remote Filenames box, enter the directory and CUtags.php as the Remote Filename to use.
Leave the Binary? box unchecked,
Check the Process? box.
Leave the Realtime? box unchecked.
Check the FTP? box.

Press OK on the Internet Settings dialog to close it and save the settings.

Then you can view the uploaded tags on your website as:

http://www.yourwebsite.com/CUtags.php?sce=view (see the raw source after processing by Cumulus)

http://www.yourwebsite.com/CUtags.php?sce=dump (see the contents of the resulting $WX[] array with Cumulus tag names and data values

Note: if you experience issues with your website showing PHP error messages like "unexpected end in CUtags.php", it may be due to a slow FTP connection such that your browser is accessing the website as Cumulus is uploading the CUtags.php, and has not yet finished.
To remedy this issue, you can upload your tags file to CUtags-new.php, make sure that CUtags.php is writable by PHP, and the V1.04 of top.php will automatically copy CUtags-new.php to CUtags.php to ensure you have a complete/fresh copy when your website is accessed.

Enable real-time updates using AJAX

Use the Cumulus, Configuration, Internet, Sites/Options panel

Cumulus Realtime

Check the 'Enable Realtime' entry.
Set the Realtime interval to 10 seconds.
Press OK to save the setting and close the Internet dialog.

You should now be able to see a data file on your website
http://www.yourwebsite.com/realtime.txt

This file will be used by the ajaxCUwx.js JavaScript to provide AJAX updates to your pages.


deformed-offering