def __init__(self): super().__init__('Control Page') self.settings = [ Setting_Text('Main Header Text', 'headerTxt'), Setting_YesNo('Auto Refresh', 'autoRefresh'), Setting_Text('Refresh Rate', 'refreshRate'), Setting_Checkbox('Relay 1 Display State', 'dispR1'), Setting_Checkbox('Relay 1 Display On/Off Buttons', 'dispOOB1'), Setting_Checkbox('Relay 1 Display Pulse Button', 'dispPB1'), Setting_Checkbox('Relay 2 Display State', 'dispR2'), Setting_Checkbox('Relay 2 Display On/Off Buttons', 'dispOOB2'), Setting_Checkbox('Relay 2 Display Pulse Button', 'dispPB2'), Setting_Checkbox('Relay 3 Display State', 'dispR3'), Setting_Checkbox('Relay 3 Display On/Off Buttons', 'dispOOB3'), Setting_Checkbox('Relay 3 Display Pulse Button', 'dispPB3'), Setting_Checkbox('Relay 4 Display State', 'dispR4'), Setting_Checkbox('Relay 4 Display On/Off Buttons', 'dispOOB4'), Setting_Checkbox('Relay 4 Display Pulse Button', 'dispPB4'), Setting_Checkbox('Relay 5 Display State', 'dispR5'), Setting_Checkbox('Relay 5 Display On/Off Buttons', 'dispOOB5'), Setting_Checkbox('Relay 5 Display Pulse Button', 'dispPB5'), Setting_Checkbox('Relay 6 Display State', 'dispR6'), Setting_Checkbox('Relay 6 Display On/Off Buttons', 'dispOOB6'), Setting_Checkbox('Relay 6 Display Pulse Button', 'dispPB6'), ]
def __init__(self): super().__init__('Control Page Setup') self.settings = [ Setting_Text('Main Header Text', 'hT'), Setting_YesNo('Auto Refresh Page', 'autoRefresh'), Setting_Text('Duration', 'refreshDur'), ]
def __init__(self): super().__init__('Network') self.settings = [ Setting_IP('IP Address', ['ip1', 'ip2', 'ip3', 'ip4']), Setting_IP('Subnet Mask', ['nm1', 'nm2', 'nm3', 'nm4']), Setting_IP('Gateway', ['gw1', 'gw2', 'gw3', 'gw4']), Setting_IP('Preferred DNS Server', ['pdns1', 'pdns2', 'pdns3', 'pdns4']), Setting_IP('Alternate DNS Server', ['adns1', 'adns2', 'adns3', 'adns4']), Setting_Text('HTTP Port', 'lP'), Setting_Netspeed('Speed', 'nS'), Setting_Netmode('Mode', 'nM'), Setting_Text('Mail Server(SMTP)', 'sA'), Setting_Text('Mail Server Port', 'msp'), Setting_Text('User Name(If Required)', 'sUN'), Setting_Password('Password(If Required)', 'sP'), Setting_Text('Return Email', 'sndA'), Setting_Text('Email 1', 'email1'), Setting_Text('Email 2', 'email2'), Setting_Text('Email 3', 'email3'), Setting_Text('Email 4', 'email4'), Setting_Text('Email 5', 'email5'), Setting_EmailLength('Email Length', 'eCType'), ]
def __init__(self): super().__init__('Network') self.settings = [ Setting_IP('IP Address', ['ip1', 'ip2', 'ip3', 'ip4']), Setting_IP('Netmask', ['nm1', 'nm2', 'nm3', 'nm4']), Setting_IP('Broadcast', ['bc1', 'bc2', 'bc3', 'bc4']), Setting_IP('Gateway', ['gw1', 'gw2', 'gw3', 'gw4']), Setting_Text('TCP Port', 'lport'), Setting_Text('Modbus Port', 'mbusport'), Setting_Netspeed('Speed', 'netSpeed'), Setting_Netmode('Mode', 'netMode'), ]
def __init__(self): super().__init__('Relay/Input') self.settings = [ Setting_RelayMode('Relay Mode', 'relayMode'), Setting_Text('Pulse Duration', 'pulseDur'), Setting_Select('Relay Options', 'relayOption'), Setting_Select('Remote Relay Options', 'rmtRelayOption'), Setting_IP('Remote Relay IP Address', ['rmtIpOne', 'rmtIpTwo', 'rmtIpThree', 'rmtIpFour']), Setting_Text('Remote TCP Port', 'rport'), Setting_Text('Relay #', 'relayNumber'), Setting_Select('Keep Alive', 'pingRmt'), ]
def __init__(self): super().__init__('Network') self.settings = [ Setting_IP('IP Address', ['ipOne', 'ipTwo', 'ipThree', 'ipFour']), Setting_IP('Netmask', ['nmaskOne', 'nmaskTwo', 'nmaskThree', 'nmaskFour']), Setting_IP('Broadcast', [ 'bcastOctOne', 'bcastOctTwo', 'bcastOctThree', 'bcastOctFour' ]), Setting_IP('Gateway', ['gwOne', 'gwTwo', 'gwThree', 'gwFour']), Setting_Text('TCP Port', 'lport'), Setting_Text('Modbus Port', 'mbusport'), Setting_Netspeed('Speed', 'netSpeed'), Setting_Netmode('Mode', 'netMode'), ]
def __init__(self, number): name = 'Relay {}'.format(number) super().__init__(name) self.number = number self.settings = [ Setting_Text('Relay Description', 'rD'), Setting_YesNo('Display Relay Status', 'dRS'), Setting_FourColor('Status ON Color', 'sOnC'), Setting_Text('Status ON Text', 'sOnT'), Setting_FourColor('Status OFF Color', 'sOffC'), Setting_Text('Status OFF Text', 'sOffT'), Setting_NumButtons('ON/OFF Buttons', 'nB'), Setting_Text('Button1 Label', 'b1L'), Setting_Text('Button2 Label', 'b2L'), Setting_YesNo('Pulse Button', 'pB'), Setting_Text('Pulse Button Label', 'pBL'), Setting_Text('Pulse Duration', 'pulseDur'), ]
def __init__(self, number): name = 'Relay {}'.format(number) super().__init__(name) self.number = number self.settings = [ Setting_Text('Relay Description', 'rDesc'), Setting_Text('On Button Label', 'onbLbl'), Setting_Text('Off Button Label', 'offbLbl'), Setting_Text('Pulse Button Label', 'pbLbl'), Setting_Text('On Status Text', 'onLbl'), Setting_Text('Off Status Text', 'offLbl'), Setting_Text('Pulse Duration', 'pulseTime'), Setting_Select('Relay State At Powerup', 'rlyPwrState'), Setting_Select('Email Option', 'rlyEmailOpt'), Setting_Checkbox('Use Email Address 1', 'rem1'), Setting_Checkbox('Use Email Address 2', 'rem2'), Setting_Checkbox('Use Email Address 3', 'rem3'), Setting_Checkbox('Use Email Address 4', 'rem4'), Setting_Checkbox('Use Email Address 5', 'rem5'), Setting_Checkbox('Send State Msg/Trap on Relay Change', 'rmtEvnt'), ]
def __init__(self): super().__init__('Advanced Network') self.settings = [ Setting_YesNo('Modbus Enabled', 'modEnbl'), Setting_Text('Modbus Port', 'mP'), Setting_YesNo('Remote Services Enabled', 'rmtSrvEnbled'), Setting_Text('Server Name/IP Address', 'rmtSrvName'), Setting_Text('Connection String', 'rmtSrvStr'), Setting_Text('Connection Interval', 'rmtSrvInt'), Setting_YesNo('SNMP Enabled', 'snmpEnbl'), Setting_IP('SNMP Manager IP', ['sip1', 'sip2', 'sip3', 'sip4']), Setting_Text('SNMP Port', 'snmpP'), Setting_Text('SNMP Trap Port', 'sTP'), Setting_IP('IP Filter Range 1 Low', ['ipRL11', 'ipRL12', 'ipRL13', 'ipRL14']), Setting_IP('IP Filter Range 1 High', ['ipRH11', 'ipRH12', 'ipRH13', 'ipRH14']), Setting_IP('IP Filter Range 2 Low', ['ipRL21', 'ipRL22', 'ipRL23', 'ipRL24']), Setting_IP('IP Filter Range 2 High', ['ipRH21', 'ipRH22', 'ipRH23', 'ipRH24']), ]
def __init__(self): super().__init__('Control Page Setup') self.settings = [ Setting_Text('Main Header Text', 'headerTxt'), Setting_Text('Relay Description', 'relayDesc'), Setting_YesNo('Display Relay Status', 'dispRelayStat'), Setting_TwoColor('Status ON Color', 'statOnCol'), Setting_Text('Status ON Text', 'statOnTxt'), Setting_TwoColor('Status OFF Color', 'statOffCol'), Setting_Text('Status OFF Text', 'statOffTxt'), Setting_NumButtons('ON/OFF Buttons', 'numBttns'), Setting_Text('Button1 Label', 'bt1Label'), Setting_Text('Button2 Label', 'bt2Label'), Setting_YesNo('Pulse Button', 'pulsBttnOn'), Setting_Text('Pulse Button Label', 'pulsBtnLabel'), Setting_YesNo('Display Input Status', 'dispInpStat'), Setting_Text('Input Description', 'inpDesc'), Setting_TwoColor('Input ON Color', 'inputOnCol'), Setting_Text('Input ON Text', 'inpOnTxt'), Setting_TwoColor('Input OFF Color', 'inputOffCol'), Setting_Text('Input OFF Text', 'inpOffTxt'), Setting_YesNo('Auto Refresh Page', 'autoRefresh'), Setting_Text('Duration', 'refreshDur'), ]