コード例 #1
0
 def __init__(self,
              hp=('', 0),
              mac='',
              root=None,
              name='',
              key=PK_KEY,
              password='',
              deviceid='',
              clientsessionid='',
              hp2=('', 0)):
     Device.__init__(self, hp, mac, root, name)
     ManTimerManager.__init__(self, root)
     IrManager.__init__(self, hp, mac, root, name)
     self.key = key
     self.fid = 0
     if len(clientsessionid) == 0:
         self.clientSessionId = generatestring(32)
     else:
         self.clientSessionId = clientsessionid
     if root is None:
         self.password = password
         self.deviceId = deviceid
         self.localPort = hp2[1]
         self.localIp = hp2[0]
     else:
         self.password = root.attributes['password'].value
         self.deviceId = root.attributes['deviceId'].value
         self.localPort = root.attributes['localPort'].value
         self.localIp = root.attributes['localIp'].value
コード例 #2
0
ファイル: devicesamsungctl.py プロジェクト: p3g4asus/orvpy
 def __init__(self, hp=('', 0), mac='', root=None, name='', conf=''):
     Device.__init__(self, hp, name, root, name)
     ManTimerManager.__init__(self, root)
     IrManager.__init__(self, hp, mac, root, name)
     self.remote = None
     self.last_init = 0
     self.fill_ir_list()
     if root is None:
         self.conffile = conf
     else:
         self.conffile = root.attributes['conffile'].value
     self.config = None
     self.offt = -1
     self.init_device()
コード例 #3
0
 def __init__(self,
              hp=('', 0),
              mac='',
              root=None,
              name='',
              location='',
              deviceobj=None):
     DeviceUpnp.__init__(self, hp, mac, root, name, location, deviceobj)
     ManTimerManager.__init__(self, root)
     IrManager.__init__(self, hp, mac, root, name)
     self.a = None
     if root is not None and root.hasAttribute('remote_name'):
         self.remote_name = root.attributes['remote_name'].value
         self.ir_load = True
     else:
         self.ir_load = False
         self.remote_name = self.name
     self.offt = -1
コード例 #4
0
ファイル: deviceudp.py プロジェクト: p3g4asus/orvpy
 def __init__(self,
              hp=('', 0),
              mac='',
              root=None,
              timeout=DEFAULT_RESUBSCRIPTION_TIMEOUT,
              name='',
              sec1900=0,
              lsa_timeout=DEFAULT_RESUBSCRIPTION_STIMEOUT):
     DeviceUDP.__init__(self,
                        hp=hp,
                        mac=mac,
                        root=root,
                        timeout=timeout,
                        name=name,
                        sec1900=sec1900,
                        lsa_timeout=lsa_timeout)
     ManTimerManager.__init__(self, root)
     IrManager.__init__(self, hp, mac, root, name)
コード例 #5
0
ファイル: devicerm.py プロジェクト: p3g4asus/orvpy
 def __init__(self, hp=('', 0), mac='', root=None, name='', inner=None):
     Device.__init__(self, hp, mac, root, name)
     ManTimerManager.__init__(self, root)
     IrManager.__init__(self, hp, mac, root, name)
     self.offt = -1
     self.inner = inner