// Platform detection, looks for Apple platforms both OS X and iOS. var cfg_isApple = navigator.platform.match(/(Mac|iPhone|iPod|iPad)/i)?true:false; var debugGetStatus = "Y"; var FX_ID = 2; var CC_ID = 3; var FNDC_ID = 4; var RAD_ID = 6; var cfg_sysName = "Somewhat Crooked Camp Realtime Solar"; var cfg_sysVoltage = 48; var cfg_sysAbsorbVoltage = 59.6; var cfg_sysEndAmps = 5.9; var cfg_pvWattage = 12525; var cfg_sysBattCapacity = 1110; var cfg_genRating = 5500; var cfg_inverterMax = 7200; var cfg_chargerMax = 4320; var cfg_agsPort = 0; var cfg_shuntMax = new Array(); cfg_shuntMax[0] = 4000; cfg_shuntMax[1] = 2160; cfg_shuntMax[2] = 4000; cfg_shuntMax[3] = 2160; cfg_shuntMax[4] = 0; cfg_shuntMax[5] = 13000; var cfg_deviceLabel = new Array(); cfg_deviceLabel[1] = "Master Inverter - VFX3648"; cfg_deviceLabel[2] = "Slave Inverter - VFX3648"; cfg_deviceLabel[3] = "FNDC Battery Monitor"; cfg_deviceLabel[4] = "3780Watt Array - FM80"; cfg_deviceLabel[5] = "4020Watt Array - FM80"; cfg_deviceLabel[6] = "4725Watt Array - FM80"; cfg_deviceLabel[7] = ""; cfg_deviceLabel[8] = ""; cfg_deviceLabel[9] = ""; cfg_deviceLabel[10] = ""; var cfg_shuntLabel = new Array(); cfg_shuntLabel[1] = "Master Inverter Shunt"; cfg_shuntLabel[2] = "Slave Inverter Shunt"; cfg_shuntLabel[3] = "Charge Controller(s) Shunt"; var cfg_colorProduction = "#F2B807"; var cfg_colorUsage = "#0396A6"; var cfg_colorShuntA = "#0396A6"; var cfg_colorShuntB = "#F2B807"; var cfg_colorShuntC = "#4c328a"; var cfg_colorsChargers = []; cfg_colorsChargers.push('#fab800');cfg_colorsChargers.push('#f68a98');