projects
/
vuplus_dvbapp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8ca7a05
)
mytest.py: set RTC Time on e2 shutdown when not dvb transponder time update is used
author
ghost
<andreas.monzner@multimedia-labs.de>
Wed, 4 Mar 2009 23:12:40 +0000
(
00:12
+0100)
committer
ghost
<andreas.monzner@multimedia-labs.de>
Wed, 4 Mar 2009 23:12:40 +0000
(
00:12
+0100)
add debug output
mytest.py
patch
|
blob
|
history
diff --git
a/mytest.py
b/mytest.py
index
261ff2a
..
b58ec2d
100755
(executable)
--- a/
mytest.py
+++ b/
mytest.py
@@
-466,8
+466,8
@@
def runScreenTest():
runReactor()
profile("wakeup")
runReactor()
profile("wakeup")
- from time import time
- from Tools.DreamboxHardware import setFPWakeuptime, getFPWakeuptime
+ from time import time
, strftime, localtime
+ from Tools.DreamboxHardware import setFPWakeuptime, getFPWakeuptime
, setRTCtime
#get currentTime
nowTime = time()
wakeupList = [
#get currentTime
nowTime = time()
wakeupList = [
@@
-479,11
+479,16
@@
def runScreenTest():
wakeupList.sort()
recordTimerWakeupAuto = False
if wakeupList:
wakeupList.sort()
recordTimerWakeupAuto = False
if wakeupList:
+ from time import strftime
startTime = wakeupList[0]
if (startTime[0] - nowTime) < 330: # no time to switch box back on
wptime = nowTime + 30 # so switch back on in 30 seconds
else:
wptime = startTime[0] - 300
startTime = wakeupList[0]
if (startTime[0] - nowTime) < 330: # no time to switch box back on
wptime = nowTime + 30 # so switch back on in 30 seconds
else:
wptime = startTime[0] - 300
+ if not config.misc.useTransponderTime.value:
+ print "dvb time sync disabled... so set RTC now to current linux time!", strftime("%Y/%m/%d %H:%M", localtime(nowTime))
+ setRTCtime(nowTime)
+ print "set wakeup time to", strftime("%Y/%m/%d %H:%M", localtime(wptime))
setFPWakeuptime(wptime)
recordTimerWakeupAuto = startTime[1] == 0 and startTime[2]
config.misc.isNextRecordTimerAfterEventActionAuto.value = recordTimerWakeupAuto
setFPWakeuptime(wptime)
recordTimerWakeupAuto = startTime[1] == 0 and startTime[2]
config.misc.isNextRecordTimerAfterEventActionAuto.value = recordTimerWakeupAuto