Korrektur

Spalte $5 war korrekt. Nur wenn der User es ausführt, muss es $6 sein. Im Autostart ist es vollkommen inordnung so.
This commit is contained in:
Kaisa Marysia 2021-01-28 16:20:09 +01:00
parent 32ff08dc0e
commit 36d385b455

2
run.py
View file

@ -88,7 +88,7 @@ def CALL():
if FORK == 1:
FORK = GPIO.input(PinForkIn)
time.sleep(0.0001)
RINGCHECK = 'linphonecsh generic \'calls\' | sed -n 4p | awk \'{print $6}\''
RINGCHECK = 'linphonecsh generic \'calls\' | sed -n 4p | awk \'{print $5}\''
RINGVALUE = subprocess.check_output(['bash', '-c', RINGCHECK ]).decode().strip()
if RINGVALUE == 'IncomingReceived':
wecker()