def __init__(self): # local variables self.guiLock = threading.Lock() self.apiDef = IpMgrDefinition.IpMgrDefinition() self.notifClientHandler = None self.guiUpdaters = 0 self.oap_clients = {} # create window self.window = dustWindow.dustWindow("MeshOfMeshes", self._windowCb_close) # add a connection frame self.connectionFrame = dustFrameConnection.dustFrameConnection( self.window, self.guiLock, self._connectionFrameCb_connected, frameName="manager connection", row=1, column=0, ) self.connectionFrame.apiLoaded(self.apiDef) self.connectionFrame.show() # add a mote list frame columnnames = [ # role {"name": COL_ROLE, "type": dustFrameMoteList.dustFrameMoteList.LABEL}, # bridge {"name": COL_BRIDGE, "type": dustFrameMoteList.dustFrameMoteList.LABEL}, # temperature {"name": COL_TEMPERATURE, "type": dustFrameMoteList.dustFrameMoteList.LABEL}, # led {"name": COL_LED, "type": dustFrameMoteList.dustFrameMoteList.ACTION}, # counters {"name": COL_NOTIF_DATA, "type": dustFrameMoteList.dustFrameMoteList.LABEL}, {"name": COL_NOTIF_HEALTHREPORT, "type": dustFrameMoteList.dustFrameMoteList.LABEL}, ] self.moteListFrame = dustFrameMoteList.dustFrameMoteList( self.window, self.guiLock, columnnames, row=2, column=0 ) self.moteListFrame.show() # add a status (text) frame self.statusFrame = dustFrameText.dustFrameText(self.window, self.guiLock, frameName="status", row=3, column=0) self.statusFrame.show()
def __init__(self): # log log.debug("Creating PkGenGui") # local variables self.guiLock = threading.Lock() self.apiDef = IpMgrDefinition.IpMgrDefinition() self.notifClientHandler = None self.guiUpdaters = 0 self.oap_clients = {} # create window self.window = dustWindow.dustWindow('PkGen', self._windowCb_close) # add a API selection frame self.apiFrame = dustFrameApi.dustFrameApi( self.window, self.guiLock, self._apiFrameCb_apiLoaded, row=0, column=0, deviceType=dustFrameApi.dustFrameApi.MANAGER) self.apiFrame.show() # add a connection frame self.connectionFrame = dustFrameConnection.dustFrameConnection( self.window, self.guiLock, self._connectionFrameCb_connected, frameName="manager connection", row=1, column=0) # add a mote list frame columnnames = [ # PkGen { 'name': COL_PKGEN_NUM, 'type': dustFrameMoteList.dustFrameMoteList.LABEL, }, { 'name': COL_PKGEN_PPS, 'type': dustFrameMoteList.dustFrameMoteList.LABEL, }, { 'name': COL_PKGEN_CLR, 'type': dustFrameMoteList.dustFrameMoteList.ACTION, }, { 'name': COL_PKGEN_RATE, 'type': dustFrameMoteList.dustFrameMoteList.SETTHREEVAL, }, ] self.moteListFrame = dustFrameMoteList.dustFrameMoteList(self.window, self.guiLock, columnnames, row=2, column=0) self.moteListFrame.show() # add a status (text) frame self.statusFrame = dustFrameText.dustFrameText(self.window, self.guiLock, frameName="status", row=3, column=0) self.statusFrame.show()
def __init__(self): # local variables self.guiLock = threading.Lock() self.notifClientHandler = None self.macs = [] self.oldData = {} # create window self.window = dustWindow.dustWindow( 'Xively Publisher', self._windowCb_close, ) # add a connection frame self.connectionFrame = dustFrameConnection.dustFrameConnection( self.window, self.guiLock, self._connectionFrameCb_connected, frameName="manager connection", row=0,column=0, ) self.connectionFrame.apiLoaded(IpMgrDefinition.IpMgrDefinition()) self.connectionFrame.show() # add a form frame self.apiKeyFrame = dustFrameForm.dustFrameForm( self.window, self.guiLock, self._apiKeyButtonCb, "Xively API key", row=1,column=0 ) self.apiKeyFrame.show() self.apiKeyFrame.setVal(DFLT_API_KEY) # add a mote list frame columnnames = [ { 'name': COL_NUMDATARX, 'type': dustFrameMoteList.dustFrameMoteList.LABEL, }, { 'name': COL_NUMDATAPUB, 'type': dustFrameMoteList.dustFrameMoteList.LABEL, }, { 'name': COL_NUMDATAPUBOK, 'type': dustFrameMoteList.dustFrameMoteList.LABEL, }, { 'name': COL_CLR, 'type': dustFrameMoteList.dustFrameMoteList.ACTION, }, { 'name': COL_URL, 'type': dustFrameMoteList.dustFrameMoteList.ACTION, }, ] self.moteListFrame = dustFrameMoteList.dustFrameMoteList( self.window, self.guiLock, columnnames, row=2,column=0, ) self.moteListFrame.show() # add a tooltip frame self.toolTipFrame = dustFrameText.dustFrameText( self.window, self.guiLock, frameName="tooltip", row=5,column=0, ) self.toolTipFrame.show()
def __init__(self): # local variables self.guiLock = threading.Lock() self.apiDef = IpMgrDefinition.IpMgrDefinition() self.notifClientHandler = None self.latencyCalculator = None self.guiUpdaters = 0 self.oap_clients = {} # create window self.window = dustWindow.dustWindow('Heliostat', self._windowCb_close) # add a API selection frame self.apiFrame = dustFrameApi.dustFrameApi( self.window, self.guiLock, self._apiFrameCb_apiLoaded, row=0, column=0, deviceType=dustFrameApi.dustFrameApi.MANAGER) self.apiFrame.show() # add a connection frame self.connectionFrame = dustFrameConnection.dustFrameConnection( self.window, self.guiLock, self._connectionFrameCb_connected, frameName="manager connection", row=1, column=0) # add a mote list frame columnnames = [ # led { 'name': COL_LED, 'type': dustFrameMoteList.dustFrameMoteList.ACTION, }, # counters and latency { 'name': COL_NOTIF_DATA, 'type': dustFrameMoteList.dustFrameMoteList.LABEL, }, { 'name': COL_NOTIF_IPDATA, 'type': dustFrameMoteList.dustFrameMoteList.LABEL, }, { 'name': COL_NOTIF_HR, 'type': dustFrameMoteList.dustFrameMoteList.LABEL, }, { 'name': COL_LAT_MIN, 'type': dustFrameMoteList.dustFrameMoteList.LABEL, }, { 'name': COL_LAT_CUR, 'type': dustFrameMoteList.dustFrameMoteList.LABEL, }, { 'name': COL_LAT_MAX, 'type': dustFrameMoteList.dustFrameMoteList.LABEL, }, { 'name': COL_NOTIF_CLR, 'type': dustFrameMoteList.dustFrameMoteList.ACTION, }, # temperature { 'name': COL_TEMPERATURE, 'type': dustFrameMoteList.dustFrameMoteList.LABEL, }, { 'name': COL_TEMP_NUM, 'type': dustFrameMoteList.dustFrameMoteList.LABEL, }, { 'name': COL_TEMP_CLR, 'type': dustFrameMoteList.dustFrameMoteList.ACTION, }, { 'name': COL_TEMP_RATE, 'type': dustFrameMoteList.dustFrameMoteList.GETSETONEVAL, }, # control and latency { 'name': COL_ACTION1, 'type': dustFrameMoteList.dustFrameMoteList.ACTION, }, ] self.moteListFrame = dustFrameMoteList.dustFrameMoteList(self.window, self.guiLock, columnnames, row=2, column=0) self.moteListFrame.show() # add a status (text) frame self.statusFrame = dustFrameText.dustFrameText(self.window, self.guiLock, frameName="status", row=3, column=0) self.statusFrame.show()
def __init__(self): # local variables self.guiLock = threading.Lock() self.apiDef = IpMgrDefinition.IpMgrDefinition() self.notifClientHandler = None self.guiUpdaters = 0 self.oap_clients = {} # create window self.window = dustWindow.dustWindow( 'MeshOfMeshes', self._windowCb_close ) # add a connection frame self.connectionFrame = dustFrameConnection.dustFrameConnection( self.window, self.guiLock, self._connectionFrameCb_connected, frameName="manager connection", row=1,column=0 ) self.connectionFrame.apiLoaded(self.apiDef) self.connectionFrame.show() # add a mote list frame columnnames = [ # role { 'name': COL_ROLE, 'type': dustFrameMoteList.dustFrameMoteList.LABEL, }, # bridge { 'name': COL_BRIDGE, 'type': dustFrameMoteList.dustFrameMoteList.LABEL, }, # temperature { 'name': COL_TEMPERATURE, 'type': dustFrameMoteList.dustFrameMoteList.LABEL, }, # led { 'name': COL_LED, 'type': dustFrameMoteList.dustFrameMoteList.ACTION, }, # counters { 'name': COL_NOTIF_DATA, 'type': dustFrameMoteList.dustFrameMoteList.LABEL, }, { 'name': COL_NOTIF_HEALTHREPORT, 'type': dustFrameMoteList.dustFrameMoteList.LABEL, }, ] self.moteListFrame = dustFrameMoteList.dustFrameMoteList( self.window, self.guiLock, columnnames, row=2,column=0 ) self.moteListFrame.show() # add a status (text) frame self.statusFrame = dustFrameText.dustFrameText( self.window, self.guiLock, frameName="status", row=3,column=0 ) self.statusFrame.show()
def __init__(self): # local variables self.guiLock = threading.Lock() self.notifClientHandler = None self.macs = [] self.oldData = {} # create window self.window = dustWindow.dustWindow( 'Xively Publisher', self._windowCb_close, ) # add a connection frame self.connectionFrame = dustFrameConnection.dustFrameConnection( self.window, self.guiLock, self._connectionFrameCb_connected, frameName="manager connection", row=0, column=0, ) self.connectionFrame.apiLoaded(IpMgrDefinition.IpMgrDefinition()) self.connectionFrame.show() # add a form frame self.apiKeyFrame = dustFrameForm.dustFrameForm(self.window, self.guiLock, self._apiKeyButtonCb, "Xively API key", row=1, column=0) self.apiKeyFrame.show() self.apiKeyFrame.setVal(DFLT_API_KEY) # add a mote list frame columnnames = [ { 'name': COL_NUMDATARX, 'type': dustFrameMoteList.dustFrameMoteList.LABEL, }, { 'name': COL_NUMDATAPUB, 'type': dustFrameMoteList.dustFrameMoteList.LABEL, }, { 'name': COL_NUMDATAPUBOK, 'type': dustFrameMoteList.dustFrameMoteList.LABEL, }, { 'name': COL_CLR, 'type': dustFrameMoteList.dustFrameMoteList.ACTION, }, { 'name': COL_URL, 'type': dustFrameMoteList.dustFrameMoteList.ACTION, }, ] self.moteListFrame = dustFrameMoteList.dustFrameMoteList( self.window, self.guiLock, columnnames, row=2, column=0, ) self.moteListFrame.show() # add a tooltip frame self.toolTipFrame = dustFrameText.dustFrameText( self.window, self.guiLock, frameName="tooltip", row=5, column=0, ) self.toolTipFrame.show()
def __init__(self): # local variables self.guiLock = threading.Lock() self.apiDef = IpMgrDefinition.IpMgrDefinition() self.notifClientHandler = None self.latencyCalculator = None self.guiUpdaters = 0 self.oap_clients = {} # create window self.window = dustWindow.dustWindow('TempMonitor', self._windowCb_close) # add a API selection frame self.apiFrame = dustFrameApi.dustFrameApi( self.window, self.guiLock, self._apiFrameCb_apiLoaded, row=0,column=0, deviceType=dustFrameApi.dustFrameApi.MANAGER) self.apiFrame.show() # add a connection frame self.connectionFrame = dustFrameConnection.dustFrameConnection( self.window, self.guiLock, self._connectionFrameCb_connected, frameName="manager connection", row=1,column=0) # add a mote list frame columnnames = [ # led { 'name': COL_LED, 'type': dustFrameMoteList.dustFrameMoteList.ACTION, }, # counters and latency { 'name': COL_NOTIF_DATA, 'type': dustFrameMoteList.dustFrameMoteList.LABEL, }, { 'name': COL_NOTIF_IPDATA, 'type': dustFrameMoteList.dustFrameMoteList.LABEL, }, { 'name': COL_NOTIF_HR, 'type': dustFrameMoteList.dustFrameMoteList.LABEL, }, { 'name': COL_LAT_MIN, 'type': dustFrameMoteList.dustFrameMoteList.LABEL, }, { 'name': COL_LAT_CUR, 'type': dustFrameMoteList.dustFrameMoteList.LABEL, }, { 'name': COL_LAT_MAX, 'type': dustFrameMoteList.dustFrameMoteList.LABEL, }, { 'name': COL_NOTIF_CLR, 'type': dustFrameMoteList.dustFrameMoteList.ACTION, }, # temperature { 'name': COL_TEMPERATURE, 'type': dustFrameMoteList.dustFrameMoteList.LABEL, }, { 'name': COL_TEMP_NUM, 'type': dustFrameMoteList.dustFrameMoteList.LABEL, }, { 'name': COL_TEMP_CLR, 'type': dustFrameMoteList.dustFrameMoteList.ACTION, }, { 'name': COL_TEMP_RATE, 'type': dustFrameMoteList.dustFrameMoteList.GETSETONEVAL, }, ] self.moteListFrame = dustFrameMoteList.dustFrameMoteList(self.window, self.guiLock, columnnames, row=2,column=0) self.moteListFrame.show() # add a status (text) frame self.statusFrame = dustFrameText.dustFrameText( self.window, self.guiLock, frameName="status", row=3,column=0) self.statusFrame.show()
def __init__(self): # log log.debug("Creating PkGenGui") # local variables self.guiLock = threading.Lock() self.apiDef = IpMgrDefinition.IpMgrDefinition() self.notifClientHandler = None self.guiUpdaters = 0 self.oap_clients = {} # create window self.window = dustWindow.dustWindow('PkGen', self._windowCb_close) # add a API selection frame self.apiFrame = dustFrameApi.dustFrameApi( self.window, self.guiLock, self._apiFrameCb_apiLoaded, row=0,column=0, deviceType=dustFrameApi.dustFrameApi.MANAGER) self.apiFrame.show() # add a connection frame self.connectionFrame = dustFrameConnection.dustFrameConnection( self.window, self.guiLock, self._connectionFrameCb_connected, frameName="manager connection", row=1,column=0 ) # add a mote list frame columnnames = [ # PkGen { 'name': COL_PKGEN_NUM, 'type': dustFrameMoteList.dustFrameMoteList.LABEL, }, { 'name': COL_PKGEN_PPS, 'type': dustFrameMoteList.dustFrameMoteList.LABEL, }, { 'name': COL_PKGEN_CLR, 'type': dustFrameMoteList.dustFrameMoteList.ACTION, }, { 'name': COL_PKGEN_RATE, 'type': dustFrameMoteList.dustFrameMoteList.SETTHREEVAL, }, ] self.moteListFrame = dustFrameMoteList.dustFrameMoteList(self.window, self.guiLock, columnnames, row=2,column=0) self.moteListFrame.show() # add a status (text) frame self.statusFrame = dustFrameText.dustFrameText( self.window, self.guiLock, frameName="status", row=3,column=0) self.statusFrame.show()
def __init__(self): # local variables self.guiLock = threading.Lock() self.apiDef = IpMgrDefinition.IpMgrDefinition() self.notifClientHandler = None self.latencyCalculator = None self.guiUpdaters = 0 self.oap_clients = {} # create window self.window = dustWindow.dustWindow('TempMonitor', self._windowCb_close) # add a connection frame self.connectionFrame = dustFrameConnection.dustFrameConnection( self.window, self.guiLock, self._connectionFrameCb_connected, frameName="manager connection", row=0,column=0) self.connectionFrame.apiLoaded(self.apiDef) self.connectionFrame.show() # add a mote list frame columnnames = [ # led { 'name': COL_LED, 'type': dustFrameMoteList.dustFrameMoteList.ACTION, }, { 'name': COL_LEDOFF, 'type': dustFrameMoteList.dustFrameMoteList.ACTION, }, #DIGITAL INPUT { 'name': COL_GETD0, 'type': dustFrameMoteList.dustFrameMoteList.ACTION, }, { 'name': COL_D0, 'type': dustFrameMoteList.dustFrameMoteList.LABEL, }, { 'name': COL_GETD1, 'type': dustFrameMoteList.dustFrameMoteList.ACTION, }, { 'name': COL_D1, 'type': dustFrameMoteList.dustFrameMoteList.LABEL, }, { 'name': COL_GETD2, 'type': dustFrameMoteList.dustFrameMoteList.ACTION, }, { 'name': COL_D2, 'type': dustFrameMoteList.dustFrameMoteList.LABEL, }, { 'name': COL_GETD3, 'type': dustFrameMoteList.dustFrameMoteList.ACTION, }, { 'name': COL_D3, 'type': dustFrameMoteList.dustFrameMoteList.LABEL, }, ] self.moteListFrame = dustFrameMoteList.dustFrameMoteList(self.window, self.guiLock, columnnames, row=1,column=0) self.moteListFrame.show() # add a status (text) frame self.statusFrame = dustFrameText.dustFrameText( self.window, self.guiLock, frameName="status", row=2,column=0) self.statusFrame.show()