1
0
mirror of https://github.com/MarkParker5/STARK.git synced 2025-07-12 22:50:22 +02:00
This commit is contained in:
MarkParker5
2021-02-27 14:29:39 +02:00
parent 35bc0ff517
commit d4f23c20e8

View File

@ -12,7 +12,7 @@ def method(params):
if shedule:
voice = voice + ' Расписание на сегодня: ' + shedule
while True:
if os.system('echo \'pow 0.0.0.0\' | cec-client -s -d 1 |grep power') == 'power status: on':
if os.popen('echo \'pow 0.0.0.0\' | cec-client -s -d 1 |grep power').read() == 'power status: on':
break
return Response(text = text, voice = voice)