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.

Many of these scripts are now available on GitHub at https://github.com/ktrue

Buy Me A Coffee 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.

Note: Twitter widget has been disabled 3-Jul-2023 since it no longer displays the recent update Tweets.

This page was updated Friday, 17-Feb-2023 1:37 PM

PHP/AJAX Website Template Set - Settings-weather.php - WD-Plugin

The configuration for Settings-weather.php discussed here is for the WD-Plugin.

<?php
#---------------------------------------------------------------------------
#  required settings for Weather-Display software
#---------------------------------------------------------------------------
$SITE['WXtags']            = 'testtags.php';  // for weather variables .. we're using the old name instead of WDtags.php
$SITE['ajaxScript']     = 'ajaxWDwx.js'// for AJAX enabled display
$SITE['clientrawfile']  = 'clientraw.txt';  // directory and name of Weather-Display clientraw.txt file
$SITE['graphImageDir']  = './';  // directory location for graph images with trailing /
# wxhistory.php settings
$SITE['HistoryStartYear'] = '2000';  // start year for station operation
$SITE['HistoryFilesDir']  = './';    // directory location for the [month][year].htm history files
$SITE['HistoryGraphsDir'] = './';    // directory location for the YYYYMMDD.gif graphic daily report files
# For NOAA reports
$SITE['NOAAdir']        = './';   // relative location of the NOAA report files directory
# Weather Station sensors and options for dashboard
$SITE['DavisVP']        = true;  // set to false if not a Davis VP weather station
$SITE['UV']                = true;  // set to false if no UV sensor
$SITE['SOLAR']            = true;  // set to false if no Solar sensor
$SITE['showSnow']        = true;   // set to false if snow not recorded on WD
$SITE['showSnowTemp']     = 4;      // show snow instead of rain if temp (C) is <= this amount
##########################################################################
# end of configurable settings
?>

Weather-Display Configuration settings in Settings-weather.php

$SITE['WXtags'] = 'testtags.php';
This setting specifies the filename of the Weather-Display weather tags file. This file is uploaded through Weather-Display and contains the current weather data associated with Weather-Display HTML tags. We are using the old name for this file (instead of WDtags.php) since Weather-Display now has a single checkbox option to create/upload testtags.php to your weather website.
$SITE['ajaxScript'] = 'ajaxWDwx.js';
This setting specifies the filename of the AJAX JavaScript that will read the clientraw.txt file and update your pages with new data.
Comment out this setting (by placing either # or // in the front of this line) if you do not want AJAX updates active on your website pages.
$SITE['clientrawfile'] = 'clientraw.txt';
This setting specifies the relative file location for the Weather-Display clientraw.txt. It is used by the thermometer.php for display of current/high/low temperature graphic.
$SITE['graphImageDir'] = './';
This setting specifies the relative file location of the directory containing the Weather-Display graph images (used by the wxgraphs.php page)
$SITE['HistoryStartYear'] = '2000';
This setting specifies the start year for your station station operation. It is used by the wxhistory.php page.
$SITE['HistoryFilesDir'] = './';
This setting specifies the relative file directory where the [month][year].htm history files are located. It is used by the wxhistory.php page.
$SITE['HistoryGraphsDir'] = './';
This setting specifies the directory location for the YYYYMMDD.gif daily graph files. It is used by the wxhistory.php page.
$SITE['NOAAdir'] = './';
This setting specifies the relative file location of the NOAA reports files. It is used by the wxnoaaclimatereports.php page.
$SITE['DavisVP'] = true;
This setting specifies whether you have a Davis VP/Vue station.
= true means you have a Davis VP/Vue station
= false means you do not have a Davis VW/Vue station and the display of the VP forecast on the ajax-dashboard is suppressed.
$SITE['UV'] = true;
This setting specifies whether your station has a UV sensor.
= true means your station has a UV sensor.
= false means your station does not have a UV sensor which will result in the ajax-dashboard displaying a UV forecast in that area instead of the UV sensor value.
$SITE['SOLAR'] = true;
This setting specifies whether your station has a Solar sensor.
= true means your station has a Solar Radiation sensor.
= false means your station does not have a Solar Radiation sensor which will result in the ajax-dashboard displaying a UV forecast in that area instead of the Solar sensor value.
$SITE['showSnow'] = true;
This setting is used by the ajax-dashboard to enable automatic display of snow instead of rain.
= true enables auto switchover to manually reported snow values
= false disables display of manually reported snow values. Use this setting if you do not use the Input Daily Weather, Snow Input feature of Weather-Display.
$SITE['showSnowTemp'] = 4;
This setting controls display of manually reported snow values on the ajax-dashboard to show snow instead of rain if the temperature (in Centigrade) is <= the number specified.
deformed-offering