summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/recstat/recstat.py
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2010-03-25 17:02:36 (GMT)
committerJames Meyer <james.meyer@operamail.com>2010-03-25 17:02:36 (GMT)
commit08532d47763dea9985faa9ad996a31df87400fb7 (patch)
treea2a5c00dd8cb8be1d0a5c2dda2d3b787fed53581 /abs/extra-testing/recstat/recstat.py
parent1b80c6bf68b69f9b7befe14f975a079efc9d3811 (diff)
downloadlinhes_pkgbuild-08532d47763dea9985faa9ad996a31df87400fb7.zip
linhes_pkgbuild-08532d47763dea9985faa9ad996a31df87400fb7.tar.gz
linhes_pkgbuild-08532d47763dea9985faa9ad996a31df87400fb7.tar.bz2
recstat: added run file.
-More cleanup for recstat.py. -removed recstat which is used for init closes #632
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)