コード例 #1
0
    def __init__(self, powerswitchNode):
        """\brief Initializes the class
            \param powerswitchNode (\c PowerswitchNode) A PowerswitchNode object containing information to instantiate the class with
        """
        Powerswitch.__init__(self, powerswitchNode)

        #self.__theURL = "http://"+str(self.getUsername())+":"+str(self.getPassword())+"@"+str(self.getIPAddress())+"/Set.cmd?CMD="
        self.__theURL = "http://" + str(self.getIPAddress())
コード例 #2
0
ファイル: aviosys.py プロジェクト: benroeder/HEN
    def __init__(self, powerswitchNode):
        """\brief Initializes the class
            \param powerswitchNode (\c PowerswitchNode) A PowerswitchNode object containing information to instantiate the class with
        """
        Powerswitch.__init__(self, powerswitchNode)
        
	
        #self.__theURL = "http://"+str(self.getUsername())+":"+str(self.getPassword())+"@"+str(self.getIPAddress())+"/Set.cmd?CMD="
	self.__theURL = "http://"+str(self.getIPAddress())
コード例 #3
0
ファイル: blackbox.py プロジェクト: sohonet/HEN
    def __init__(self, powerswitchNode):
        """\brief Initializes the class
        \param powerswitchNode (\c PowerswitchNode) A PowerswitchNode object containing information to instantiate the class with
        """
        Powerswitch.__init__(self, powerswitchNode)

        self.__theURL = "http://" + str(self.getIPAddress()) + "/"
        self.__postURL = "http://" + str(self.getIPAddress()) + "/rack.html"
        # Slave id of 1 is the master device.
        self.slaveID = 1
コード例 #4
0
ファイル: blackbox.py プロジェクト: benroeder/HEN
    def __init__(self, powerswitchNode):
        """\brief Initializes the class
        \param powerswitchNode (\c PowerswitchNode) A PowerswitchNode object containing information to instantiate the class with
        """
        Powerswitch.__init__(self, powerswitchNode)

	self.__theURL = "http://" + str(self.getIPAddress()) + "/"
	self.__postURL = "http://" + str(self.getIPAddress()) + "/rack.html"
        # Slave id of 1 is the master device.
        self.slaveID = 1
コード例 #5
0
ファイル: apc.py プロジェクト: benroeder/HEN
 def __init__(self, powerswitchNode):
     """\brief Initializes the class
     \param powerswitchNode (\c PowerswitchNode) A PowerswitchNode object containing information to instantiate the class with
     """
     Powerswitch.__init__(self, powerswitchNode)