summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/recstat/recstat.py
diff options
context:
space:
mode:
Diffstat (limited to 'abs/extra-testing/recstat/recstat.py')
-rw-r--r--abs/extra-testing/recstat/recstat.py17
1 files changed, 9 insertions, 8 deletions
diff --git a/abs/extra-testing/recstat/recstat.py b/abs/extra-testing/recstat/recstat.py
index 6e09da9..8def041 100644
--- a/abs/extra-testing/recstat/recstat.py
+++ b/abs/extra-testing/recstat/recstat.py
@@ -3,7 +3,7 @@
import httplib
import serial,time
-mythStatus = "localhost:6544"
+mythStatus = "127.0.0.1:6544"
encoder1 = "Encoder 1 "
encoder2 = "Encoder 2 "
recording = "is local on mythtv and is recording"
@@ -27,11 +27,12 @@ while(True):
s.setDTR(1)
else:
s.setDTR(0)
- if(results.find(encoder2+recording)!=-1):
- s.setRTS(1)
- elif (results.find(encoder2+watching) !=-1):
- s.setRTS(1)
- else:
- s.setRTS(0)
+
+ if(results.find(encoder2+recording)!=-1):
+ s.setRTS(1)
+ elif (results.find(encoder2+watching) !=-1):
+ s.setRTS(1)
+ else:
+ s.setRTS(0)
- time.sleep(1)
+ time.sleep(1)