I noticed the "Wind Run" on the dashboard updates only on page refresh.. I couldn't find any setting allowing it to update via ajax....or did I miss it.
Wind Run doesn't use ajax because it's a testtags.php variable, not a clientraw.txt variable, and therefore doesn't update every few seconds.
There is a problem with distance conversions in ajaxWDwx.js however. The current values in two locations make no sense and produce erroneous Wind Run conversion results.
Change
// distance miles and meters to km
case "m" : return (this / 1000);
case "miles" : return (this / 1.150779450);
to
// distance miles and meters to km
case "m" : return (this / 1000);
case "miles" : return (this / 1.6);
and
Number.prototype.convertDist = function() { // km
switch (uom.Dist) {
case "m" : return (this / 1000);
case "miles" : return (this / 1.150779450);
default : return (this * 1.0);
}
};
to
Number.prototype.convertDist = function() { // km
switch (uom.Dist) {
case "m" : return (this / 1000);
case "miles" : return (this / 1.6);
default : return (this * 1.0);
}
};
in order to obtain accurate Wind Run UOM conversion as seen on
my site.
There is one more suspicious '1.150779450' in ajaxWDwx.js in a mph conversion, but I couldn't find anything on my dashboard that was adversely affected by it.
As I'm sure most of you are aware, clicking on 'Refresh' after ajax times out only refreshes those values in clientraw.txt while doing nothing for the testtags.php values. Refreshing those values requires a full page refresh in the browser.