working except leds

This commit is contained in:
2024-03-13 00:01:31 +01:00
parent 6bd5838c24
commit 19ab152729
2 changed files with 4 additions and 2 deletions

View File

@@ -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)

View File

@@ -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