If it looks like the wind display is in MPH when the page first loads, and then switches to km/h when the AJAX refresh happens, then your Settings.php is correct as-is. What needs to change is ajaxWDwx.js script var useMPH = false; // set to true to force MPH for both English and Metric units
to var useMPH = true; // set to true to force MPH for both English and Metric units
That will keep the rest of the units in metric and force the wind to display in MPH.
This is how it is now but the result is still wrong? i.e. changing from mph then km/h
// -- begin settings --------------------------------------------------------------------------
var flashcolor = '#00CC00'; // color to flash for changed observations RGB
var flashtime = 2000; // miliseconds to keep flash color on (2000 = 2 seconds);
var reloadTime = 10000; // reload AJAX conditions every 5 seconds (= 5000 ms)
var maxupdates = 12; // Maxium Number of updates allowed (set to zero for unlimited)
// maxupdates * reloadTime / 1000 = number of seconds to update
var clientrawFile = 'clientraw.txt'; // location of clientraw.txt relative to this page on website
var ajaxLoaderInBody = false; // set to true if you have <body onload="ajaxLoader(..."
var imagedir = './ajax-images'; // place for wind arrows, rising/falling arrows, etc.
var condIconType = '.jpg'; // ='.jpg' default, ='.gif' for animated meteotreviglio condition icons
var useunits = 'M'; // 'E'=USA(English) or 'M'=Metric
var decimalComma = false; // =false for '.' as decimal point, =true for ',' (comma) as decimal point
var useKnots = false; // set to true to use wind speed in Knots (otherwise
// wind in km/hr for Metric or mph for English will be used.
var useMPS = false; // set to true for meters/second for metric wind speeds, false= km/h
var useMPH = true; // set to true to force MPH for both English and Metric units
var useFeet = false; // set to true to force Feet for height in both English and Metric
var usehPa = false; // =true to force hPa for baro in both English and Metric
var useinHg = false; // =true to force baro to inHg for both English and Metric
var showUnits = true; // set to false if no units are to be displayed
var thermometer = './thermometer.php'; // script for dynamic thermometer PNG image (optional)