// ajaxWDwx.js setup for Bashewa Weather Station: www.bashewa.com
SettingsVersion = 9.08;
SettingsDate = "17-Jan-2009";
function loadSettings () {
wxStation.problemNr= 0;
wxStation.problemMsg[1]='Note: our station is currently out of order.\nWe hope to have it up and running by next week.';
wxStation.problemMsg[2]='Note: our UV meter is currently out of order.\nWe hope to have it fixed in due cause.';
wxStation.showAlert=true;
//------------------------------------------------------------------------------
useUOM  = 'E';
  showUOM = true;
  clientrawFile = './clientraw.txt';
  update   .maxupdates  = 120;
  update   .reloadTime = 10000;
  flash    .time = 2000;
 imgDir = './ajax-images/'; 

  wxIcon  .src    = imgDir+"icon/2/{PIC}.gif";
  wxIcon  .width  = 170;
  wxIcon  .height = 127;
//wxIcon  .style  = "border: 1px solid silver;";
  wxIcon  .useName= 2;

  wrImg   .src    = imgDir+"wr-{LANG}{DIR}.png";
  wrImg   .width  = 75;
  wrImg   .height = 75;
  wrImg   .xlate  = false;

  fireImg .src    = "./fwi/firedangerWD.php";
  fireImg .width  = 92;
  fireImg .height = 73;
  fireImg .style  = "border: 1px solid #4682B4";

  thermometerImg.src   = "./thermometer.php";
  thermometerImg.width = 54;
  thermometerImg.height= 170;
  thermometerImg.style  = "border: 2px solid silver;";
  thermometerImg.useTag = "ajaxthermometer";

cloudImg.src    = "./cloud-base.php";
cloudImg.width  = 100;
cloudImg.height = 200
cloudImg.style  = "border: 2px solid silver;";
cloudImg.useTag = "ajaxcloudheightimg";

moonImg.src   = imgDir+"moon/{BG}/{NS}-moon{AGE}.gif"; // replacements: {BG}=[w=white|b=black], {NS}=[NH|SH], {AGE}=[00..27]
moonImg.bg    = "w"; // {BG} = [ w | b ]
moonImg.width = 50;
moonImg.height= 50;
moonImg.useTag= "ajaxmoonimg";
  
 
  webcamImg.srcNgt= "./jpgwebcam.jpg";
  webcamImg.src   = "./jpgwebcam.jpg";
//webcamImg.width = 170;
//webcamImg.height= 127;
  webcamImg.style = "border: 2px solid silver;";
  webcamImg.swapIconWithWebcam = true;
  webcamImg.useTag  = "ajaxwebcamimg";

// ENGLISH UOM ---------------
//imperialUOM.Temp = '&deg;F';
//imperialUOM.Wind = 'mph';
//imperialUOM.Baro = 'inHg';
//imperialUOM.Rain = 'in';
//imperialUOM.Snow = 'in';
//imperialUOM.Alti = 'ft';
imperialUOM.Dist = 'miles';
//imperialUOM.Deg  = '&deg;';
//imperialUOM.dateFmt = "m/j/Y";
//imperialUOM.timeFmt = "g:i:s a";
//imperialUOM.timeHM  = "g:i a";

// English decimal places
//imperialDP.Temp = 1;
//imperialDP.Wind = 1;
//imperialDP.Baro = 2;
//imperialDP.Rain = 2;
//imperialDP.Snow = 2;
//imperialDP.Alti = 0;
imperialDP.Dist = 2;
//imperialDP.UV   = 0;


// METRIC UOM --------------
//metricUOM.Temp = '&deg;C';
//metricUOM.Wind = 'kph';
//metricUOM.Baro = 'hPa';
//metricUOM.Rain = 'mm';
//metricUOM.Snow = 'cm';
//metricUOM.Alti = 'm';
//metricUOM.Dist = 'km';
//metricUOM.Deg  = '&deg;';
//metricUOM.dateFmt = "j-M-Y";
//metricUOM.timeFmt = "H:i:s";
//metricUOM.timeHM  = "H:i";

// Metric decimal places
//metricDP.Temp = 1;
//metricDP.Wind = 1;
//metricDP.Baro = 0;
//metricDP.Rain = 1;
//metricDP.Snow = 0;
//metricDP.Alti = 0;
metricDP.Dist = 2;
//metricDP.UV   = 0;

  
//------------------------------------------------------------------------------
}; // end loadSettings
gotSettings = true;

