Example #1
0
File: lirc.py Project: fazme/halirc
 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()
Example #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()
Example #3
0
File: vdr.py Project: fazme/halirc
 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
Example #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()
Example #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)
Example #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)
Example #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()
Example #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
Example #9
0
 def __init__(self, hal, device='/dev/steckerleiste'):
     Serializer.__init__(self, hal)
     self.device = device
Example #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()
Example #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))
Example #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))
Example #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
Example #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
Example #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()