var LASTPORT = 658;var MAX_RJ45 = parseInt("8");var MAX_DRY_CONTACT = parseInt("0");var curDateTime = new Date("04/06/2025 18:35:05");var theClock = curDateTime;var sensorName = new Array();sensorName[SS_0 ] = "N/C";sensorName[SS_TEMP ] = "Temperature";sensorName[SS_TEMP_ARRAY ] = "Temperature Array";sensorName[SS_SHT11_HUMIDITY ] = "Dual Humidity";sensorName[SS_SHT11_TEMP ] = "Dual Temperature";sensorName[SS_4_20MA ] = "4-20 mAmp";sensorName[SS_DC_VOLTAGE ] = "Digital Voltmeter";sensorName[SS_FUEL_LEVEL ] = "Fuel Level";sensorName[SS_TANK_SENDER ] = "Fuel Level Sensor";sensorName[SS_AIRFLOW ] = "Airflow";sensorName[SS_DRYCONTACT_INOUT ] = "Dry Contact I/O";sensorName[SS_DRYCONTACT_INPUT ] = "Dry Contact";sensorName[SS_MOTION ] = "Motion";sensorName[SS_WATER ] = "Water";sensorName[SS_WATER_ROPE ] = "Liquid Rope";sensorName[SS_SECURITY ] = "Security";sensorName[SS_SIREN ] = "Siren";sensorName[SS_RELAY ] = "Relay";sensorName[SS_AC_VOLTAGE ] = "AC Voltage";sensorName[SS_ADE7763_VRMS ] = "RMS Voltage";sensorName[SS_ADE7763_IRMS ] = "RMS Current";sensorName[SS_ADE7763_WATT ] = "Energy Meter";sensorName[SS_ADE7763_WATTHOUR ] = "Watt-hours Meter";sensorName[SS_PCF8574_XRELAY ] = "Relay";sensorName[SS_THERMOCOUPLE ] = "Thermocouple";sensorName[SS_SMOKE ] = "Smoke Detector";sensorName[SS_PCF8574_XDRY ] = "Dry Contact";sensorName[SS_TEMP_ARRAY ] = "Temperature Array";sensorName[SS_WATER_ROPE ] = "Liquid Rope";sensorName[SS_FUEL_LEVEL ] = "Fuel Level";sensorName[SS_TANK_SENDER ] = "Fuel Level Sensor";sensorName[SS_WIEGAND ] = "Reader";sensorName[SS_THERMOSTAT ] = "Thermostat";sensorName[SS_VIRTUAL ] = "Virtual Sensors";sensorName[SS_SOUND ] = "Sound Detector";sensorName[SS_SOFTMOTION ] = "Software Motion";sensorName[SS_NOSIGNAL ] = "No Video Signal";sensorName[SS_BOARD_STATE ] = "Module State";sensorName[SS_POWER_METER ] = "Power Meter";sensorName[SS_ACCESS ] = "Access Sensor";sensorName[SS_DOOR ] = "Door";sensorName[SS_TESTING ] = "Testing Sensor";sensorName[SS_PROBE_SWITCH ] = "Probe Switch";sensorName[SS_FINGERPRINT_READER] = "Fingerprint Reader";sensorName[SS_TIME_TRACKING ] = "Time Tracking";sensorName[SS_TAMPER ] = "Tamper";sensorName[SS_PCF8574_XDRY64 ] = "Dry Contact";sensorName[SS_STS31 ] = "NIST Temperature";var boardName = new Array();boardName[IN_POWERMETER] = "Power Meter";var boardNameType = new Array();boardNameType[DOOR_CONTROL_UNIT_BOARD] = "Door Control";var sensorStatusText = new Array();sensorStatusText[0 ] = "No Status";sensorStatusText[NOSTATUS ] = "No Status";sensorStatusText[SENSORNORMAL ] = "Normal";sensorStatusText[HIGHWARNING ] = "Warning";sensorStatusText[HIGHCRITICAL ] = "Critical";sensorStatusText[LOWWARNING ] = "Warning";sensorStatusText[LOWCRITICAL ] = "Critical";sensorStatusText[SENSORERROR ] = "Sensor Error";sensorStatusText[SWITCH_LOW_OUT ] = "Low output";sensorStatusText[SWITCH_HIGH_OUT ] = "High output";sensorStatusText[SWITCH_TIMED_TO_ON ] = "Wait for turn on";sensorStatusText[NO_DETECT ] = "No Status";var sensorStatus_arr = new Array();sensorStatus_arr[NOSTATUS ] = "No Status";sensorStatus_arr[SENSORNORMAL ] = "Normal";sensorStatus_arr[HIGHWARNING ] = "High Warning";sensorStatus_arr[HIGHCRITICAL ] = "High Critical";sensorStatus_arr[LOWWARNING ] = "Low Warning";sensorStatus_arr[LOWCRITICAL ] = "Low Critical";sensorStatus_arr[SENSORERROR ] = "Sensor Error";sensorStatus_arr[SWITCH_LOW_OUT ] = "Low Output (On)";sensorStatus_arr[SWITCH_HIGH_OUT ] = "High Output (Off)";sensorStatus_arr[CRITICAL ] = "Critical";var sensorStatusColor_arr = new Array();sensorStatusColor_arr[NOSTATUS ] = "#000000";sensorStatusColor_arr[SENSORNORMAL ] = "#00FF00";sensorStatusColor_arr[HIGHWARNING ] = "#FF9900";sensorStatusColor_arr[HIGHCRITICAL ] = "#FF0000";sensorStatusColor_arr[LOWWARNING ] = "#FF9900";sensorStatusColor_arr[LOWCRITICAL ] = "#FF0000";sensorStatusColor_arr[SENSORERROR ] = "#FF0000";sensorStatusColor_arr[SWITCH_LOW_OUT ] = "#FF0000";sensorStatusColor_arr[SWITCH_HIGH_OUT ] = "#00FF00";sensorStatusColor_arr[CRITICAL ] = "#FF0000";var VIRTUAL_STYLE_ANALOG = 1;var VIRTUAL_STYLE_SWITCH = 0;var oem = "CONTEG";