PDA

View Full Version : How to change tivo dial time?



Tictoc
07-06-2001, 05:11 PM
newbie MFS question please...

I want to edit NextCallAttempt in /Setup so that tivo will call once a week instead of once a day. I figured out that to do that, I have to set NextCallAttempt = LastSuccessCall + 604800 (7 days in seconds).

My question is, how to edit NextCallAttempt in /Setup?

Thank you in advance.

stryder
07-06-2001, 05:25 PM
#####
# ChangeDial.itcl
#####
tvsource $tcl_library/tv/Setup.itcl

Setup print
print loadDb
print setVal NextCallAttempt LastSuccessCall + 604800
print storeDb NextCallAttempt
print print
#####


See if that works. I don't have a tivo to test it on right now. I modified a script called immortal.tcl that was posted that showed how to change the ServiceState.

Let me knkow how it turns out

Tictoc
07-06-2001, 06:12 PM
Something's not right.

It looks like it did not recognize NextCallAttempt as a field. Btw, I get NextCallAttempt in /Setup directory from MFS browser (Tivo web server). Any idea where I did wrong?

Thanks a lot stryder.

Below is what I did.

bash-2.02# tivosh
% tvsource $tcl_library/tv/Setup.itcl
% Setup print
print
% print loadDb
retrying after errTmActiveLockConflict ...
% print setVal NextCallAttempt 994484000
07/06:21:02:35: tivosh: Setup::setVal unknown field: NextCallAttempt
% print storeDb NextCallAttempt
07/06:21:02:53: tivosh: Setup::storeDb unknown field: NextCallAttempt
% print print

Start Setup =====================
inventoryFile: |/TivoData/HeadendInventories/WI/WI48457/WI48457-11508-v60.slin
v
noPrivBackhaul: 1
serviceState: 5
stateExpiration: 0
backgroundHour:
serialNumber:
swSystemName: 2.0.1-002-000
dialConfig: 000
localAreaCode: 608
dialInNum: {}
dialInAreaCode: {}
dialInPrefix: {}
tollFreeNum:
tollFreeAuth: 2
forceBackhaul: 0
publicLogFilter: {(F|f)ata[l]|(D|d)ie[d]|aborte[d]|(E|e)xceptio[n]|(A|a)sser[t]|
Backtrac[e]|(S|s)egmentatio[n]|Kernel pani[c]|DriveStatusErro[r]|errDbNoMemor[y]
}
End Setup =====================

stryder
07-06-2001, 06:37 PM
Hmm.. I am not sure. Perhaps the NextCallAttempt field doesn't exist in that capacity. I don't have a tivo handy to look at at the moment, and I won't for the rest of the weekend. Perhaps next Monday.
I haven't poked around in the MFS really at all, that was just a hunch :).

Tictoc
07-10-2001, 10:45 AM
Okay,

got a solution adapted from eel-sushi serviceState script (http://www.dealdatabase.com/forum/showthread.php?s=&threadid=1923)

#####
# ChangeDialtime.itcl
#
# set dialtime 7 days from now
#####

#!/tvbin/tivosh

tvsource $tcl_library/tv/Setup.itcl
set now [clock seconds]
set nextCall [expr ($now) + 7*24*60*60]

set db [dbopen]
transaction { set setup [db $db open /Setup]
dbobj $setup set NextCallAttempt $nextCall
}

dbclose $db
~

with some effort, this script can be modified to ask user input about his preference of dialup time. for example, how many days from now, morning, noon, night, midnight, exact time, etc.

stryder
07-10-2001, 12:19 PM
Nice script,
I was going to offer another stab at a way of doing it after reading through the tcpphonehome.tcl script on my tivo. Looks like yours works though.

pasha
07-10-2001, 12:36 PM
do you guys have any idea how to get all variables from /Setup ?

stryder
07-10-2001, 01:32 PM
This ought to have anything you need in it.

pasha
07-10-2001, 03:45 PM
so what gonna happend if you gonna set last successfulcall to year from now and next call 2 years from now... ??? :) is it gonna freakout?