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, 27-Jun-2012 11:48

PHP/AJAX Website Template Set - WxSolution Setup

Overview

There is one setup required in WxSolution for the proper operation of your template set. Please follow the setup instructions in the sections below to have WxSolution upload your WXStags.php file, and your daily graph file.

Setup to upload WXStags.php

Select either the WXStags-comments.txt file (larger, but with comments) or the WXStags.txt (smaller, without comments) as the template file source from the distribution .\WXtags-template-files directory in the WXS-plugin.zip distribution file.

Then copy the chosen file in to your wxsolution\Forms\HTML directory and name it WXStags.php

Configure WxSolution for internet uploads by going to the WxSolution, File, Properties, Station Setup, FTP Reports panel

WxSolution internet settings

Make sure to specify your FTP server name, your FTP userid and FTP password and tick the Enabled checkbox. Also tick the Daily Graph and use the WXSdailyGraph.png name for the graph. Then press the Additional Files... button.

WL Internet dialog

and press the Add button.

Fill in the entries on the FTP File form with:
Name: WXStags
Source File: (the location for the WXStags.php template file, usually in your Forms\HTML\ directory)
Destination File: WXStags.php
Interval: 5 minutes
File Type: Text

WXStags setup 1


Then press OK to save the entry.

WXStags setup 2
Press OK to close the FTP Files dialog.

Press OK on the FTP Reports to close it and save your configuration.

Then you can view the uploaded tags (after a WxSolution upload cycle) on your website as:

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

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

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

deformed-offering