Пример #1
0
 def __init__(self, hal, device='/var/run/lirc/lircd'):
     """the default lirc socket to listen on is /var/run/lirc/lircd.
     Change that by setting self.irwSocket in setup()"""
     Serializer.__init__(self, hal)
     self.irwSocket = device
     self.protocol = None
     self.open()
Пример #2
0
 def __init__(self, hal, device='/var/run/lirc/lircd'):
     """the default lirc socket to listen on is /var/run/lirc/lircd.
     Change that by setting self.irwSocket in setup()"""
     Serializer.__init__(self, hal)
     self.irwSocket = device
     self.protocol = None
     self.open()
Пример #3
0
 def __init__(self, hal, host='localhost', port=6419):
     Serializer.__init__(self, hal)
     self.host = host
     self.port = port
     self.protocol = None
     self.openDeferred = None
     self.prevChannel = None
     self.closeTimeout = 5
Пример #4
0
 def __init__(self, hal, host, port=50000, outlet=None):
     Serializer.__init__(self, hal, outlet)
     self.host = host
     self.port = port
     self.protocol = None
     self.mutedVolume = None
     self.answersAsEvent = True
     self.closeTimeout = 2000000
     self.open()
Пример #5
0
 def __init__(self, hal, device='/dev/denon', outlet=None):
     """default device is /dev/denon"""
     self.mutedVolume = None
     # never close because the Denon sends events
     # by its own if it is operated by other means (IR, front knobs)
     self.surroundIdx = 0
     self.lastSurroundTime = None
     Serializer.__init__(self, hal, outlet)
     self.__port = SerialPort(self, device, reactor)
Пример #6
0
 def __init__(self, hal, device='/dev/denon', outlet=None):
     """default device is /dev/denon"""
     self.mutedVolume = None
     # never close because the Denon sends events
     # by its own if it is operated by other means (IR, front knobs)
     self.surroundIdx = 0
     self.lastSurroundTime = None
     Serializer.__init__(self, hal, outlet)
     self.__port = SerialPort(self, device, reactor)
Пример #7
0
 def __init__(self, hal, host, port=50000, outlet=None):
     Serializer.__init__(self, hal, outlet)
     self.host = host
     self.port = port
     self.protocol = None
     self.mutedVolume = None
     self.answersAsEvent = True
     self.closeTimeout = 2000000
     self.open()
Пример #8
0
 def __init__(self, hal, host='localhost', port=6419):
     Serializer.__init__(self, hal)
     self.host = host
     self.port = port
     self.protocol = None
     self.openDeferred = None
     self.prevChannel = None
     self.closeTimeout = 5
     self.kodiProcess = None
Пример #9
0
 def __init__(self, hal, device='/dev/steckerleiste'):
     Serializer.__init__(self, hal)
     self.device = device
Пример #10
0
 def __init__(self, hal, device='/dev/LGPlasma', outlet=None):
     Serializer.__init__(self, hal, outlet)
     self.device = device
     self.videoMuted = None
     self.tvTimeout = 300
     self.connect()
Пример #11
0
 def __init__(self, hal, device='/dev/steckerleiste', outlets=4):
     Serializer.__init__(self, hal)
     self.device = device
     self.outlets = list(
         GembirdOutlet(self, x) for x in range(1, outlets + 1))
Пример #12
0
 def __init__(self, hal, device='/dev/steckerleiste', outlets=4):
     Serializer.__init__(self, hal)
     self.device = device
     self.outlets = list(GembirdOutlet(self, x) for x in range(1, outlets + 1))
Пример #13
0
 def __init__(self, hal, host, port=8102, outlet=None):
     Serializer.__init__(self, hal, outlet)
     self.host = host
     self.port = port
     self.protocol = None
Пример #14
0
 def __init__(self, hal, host, port=8102, outlet=None):
     Serializer.__init__(self, hal, outlet)
     self.host = host
     self.port = port
     self.protocol = None
Пример #15
0
 def __init__(self, hal, device='/dev/LGPlasma', outlet=None):
     Serializer.__init__(self, hal, outlet)
     self.device = device
     self.videoMuted = None
     self.tvTimeout = 300
     self.connect()