diff options
author | James Meyer <james.meyer@operamail.com> | 2010-03-25 17:02:36 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2010-03-25 17:02:36 (GMT) |
commit | 08532d47763dea9985faa9ad996a31df87400fb7 (patch) | |
tree | a2a5c00dd8cb8be1d0a5c2dda2d3b787fed53581 /abs/extra-testing/recstat/recstat.py | |
parent | 1b80c6bf68b69f9b7befe14f975a079efc9d3811 (diff) | |
download | linhes_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.py | 17 |
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) |