working except leds
This commit is contained in:
@@ -21,6 +21,8 @@ class CallManager:
|
||||
try:
|
||||
self.call_process = subprocess.Popen(['parole', '-c', station['host'], '-d', self.config['audio device']])
|
||||
s = socket.socket()
|
||||
print('host=', station['host'])
|
||||
print('port=', station['port'])
|
||||
s.connect((station['host'], station['port']))
|
||||
s.send(OP_CALL)
|
||||
response = s.recv(1024)
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
port: 8111
|
||||
audio device: plughw:1,0
|
||||
audio device: plughw:2,0
|
||||
stations:
|
||||
- host: rba
|
||||
port: 8111
|
||||
button: 25
|
||||
toogle button: False
|
||||
toogle button: True
|
||||
red led: 26
|
||||
green led: 12
|
||||
# - host: kuku
|
||||
|
||||
Reference in New Issue
Block a user