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