Initial commit of PQS
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env python
|
||||
from urllib2 import urlopen
|
||||
from time import sleep
|
||||
import os
|
||||
|
||||
while True:
|
||||
|
||||
sleep(5)
|
||||
response = urlopen('http://10.0.0.10/pqs/playFSTrainer.php')
|
||||
play = response.readline()
|
||||
|
||||
if ( play == "1" ):
|
||||
os.system('pkill omxplayer')
|
||||
os.system('omxplayer -b -o hdmi /home/pi/Downloads/BTFS_VTS_01_1.mp4 &')
|
||||
sleep(1)
|
||||
|
||||
Reference in New Issue
Block a user