1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Channel Map Tivoweb module

Discussion in 'TiVo Underground' started by Zirak, Jun 4, 2002.

  1. Oct 8, 2003 #101 of 156
    Francesco

    Francesco Summum Pontificem

    18,365
    0
    Oct 4, 1999
    Maricopa...
    Add: when I commit the change (even though the list says A&E is 42), it says there was nothing to change...
     
  2. Oct 8, 2003 #102 of 156
    Zirak

    Zirak New Member

    973
    0
    Apr 24, 2002
    New York
    A couple of things.

    1) You didn't explictly say that you hit the commit button after the restore and confirm. It IS necessary to do that again. Running the restore script is functionally equivalent to doing the remapping manually, short of hitting the Commit button.

    2) I'm not sure what page you are referring to in "page lists A&E as 42."

    The sequence of events should be something like the following, the object names will obviously be different.

    1) Make change to A&E manually, on return to the main channel map page there will be a message at the top " A&E (2452/6959) remapped to channel 42" This has changes the channel number in the lineup object, and will be reflected on this page.

    2) You then commit, and choose the appropriate lineups to use in the process. A page displaying the individual changes will appear, with messages along the lines of "Applying change for AMC 42 (Was 39) object 2252/2505" This has made the change in the active channel list.

    3) Go back to the main page and press the "Restore from saved button." It will tell you that its done, and you still need to commit. This will change all the channel numbers in all the lineups that exist on your tivo to however they were saved. The exact actions show up in the file /tmp/CMS.out. Not done yet.

    4) Press the commit button again. It will again have you select the lineups to use in performing the commit. You will again see a page with all the changes along the lines of "Applying change for A&E 39 (Was 42) object 2252/2505" Done.

    If there are problems, let me know which step failed, as well as posting the appropriate lines from the CMS.out file.
     
  3. Oct 8, 2003 #103 of 156
    Zirak

    Zirak New Member

    973
    0
    Apr 24, 2002
    New York
    This would seem to imply that the restore button isn't actually running the script, or something is failing therein. Look to CMS.out.
     
  4. Oct 8, 2003 #104 of 156
    Francesco

    Francesco Summum Pontificem

    18,365
    0
    Oct 4, 1999
    Maricopa...
    Well, I jumped the gun again, and figured there was a problem with channelmap.itcl, so I downloaded from lightn.org again, changed the headend setting from 0 to 1 on the three lines, and loaded it into /modules. I restarted TiVoweb, opened Channelmap, and tried to change A&E back to 39. When I try to commit, I get a long sleep then this error:
    Code:
    INTERNAL SERVER ERROR
    --cut here--
    action_BuildActiveChannels '/' 'set "L1" "on";set "L2" "on";set "BuildActiveChannels" "Commit Changes";'
    can't read "firstid": no such variable
        while executing
    "db $db openidconstruction $firstid $secondid"
        ("uplevel" body line 3)
        invoked from within
    "uplevel $body"
        invoked from within
    "transaction {uplevel $body}"
        (procedure "RetryTransaction" line 5)
        invoked from within
    "RetryTransaction {
    		scan $resid {%[0-9]%[/]%[0-9-]} firstid slash secondid
    		set chanobj [db $db openidconstruction $firstid $secondid]
    		set channum..."
        (procedure "changenum" line 9)
        invoked from within
    "changenum $object $channelnumber "Applying""
        (procedure "::action_BuildActiveChannels" line 47)
        invoked from within
    "::action_$action $chan $part $env"
        ("eval" body line 1)
        invoked from within
    "eval {::action_$action $chan $part $env}"
    --cut here--
    
    But rechecking Listchan shows that the change stuck. Go figure.

    FWIW, yes, I followed all the exact steps you detail.

    I will try the test again after work, and look at CMS.out...

    Thanks
     
  5. Oct 9, 2003 #105 of 156
    TiVoJedi

    TiVoJedi Member

    506
    0
    Mar 1, 2002
    Maybe I missed this, but I have a scenario that I wonder can be fixed or not.

    I use antenna+satellite and recently discovered an antenna channel (WB)72 miles away that tunes in acceptably. Since my satellite dish has a rain fade problem, I would hate to miss my favorite shows during a rain and could use the antenna station as a backup. The only problem is TiVo has no data for this distant WB station and re-running the guided setup doesn't help. I got a response from TiVo stating they were sorry I could not incorporate that station in my lineup for my area. Is there a way I could do it with a channel remap module in tivoweb?
     
  6. Oct 9, 2003 #106 of 156
    Zirak

    Zirak New Member

    973
    0
    Apr 24, 2002
    New York


    It apparently committed the change on A&E before it hit this error. resid in the RetryTransaction must be something unexpected.

    The module doesn't add channels, just changes the map for what is already there.
     
  7. Oct 9, 2003 #107 of 156
    cresny

    cresny New Member

    1
    0
    Jan 31, 2002
    I just installed ChannelMap and noticed that I have a Lineup (Cable Ready) that doesn't show up on the available Lineups.

    Does anyone know if I can make this lineup active (without changing source from cable box)?
     
  8. bdaalex

    bdaalex New Member

    76
    0
    Jun 4, 2003
    Bermuda
    While I was able to "Save Current Channel State" the first time I made changes, I am no longer able after making a few more. Tivoweb returns the following error:

    Script has been written to -NOWHERE! error opening /tivoweb/ChannelMapScript.tcl

    My suspicion is that the file system is RO and thus, the ChannelMapScript.itcl file cannot be over written. However, I want to be sure before I do anything.

    Does anyone know if that is the case? If not, what?

    thanks,
    Alex
     
  9. Zirak

    Zirak New Member

    973
    0
    Apr 24, 2002
    New York
    Bingo. Its has nothing to do with overwriting as you can't create OR modify a file on an RO filesystem. It must have been mounted RW when you made the first changes.
     
  10. bdaalex

    bdaalex New Member

    76
    0
    Jun 4, 2003
    Bermuda
    I'll remount and then retry.

    i don't suppose you can do that through Tivoweb. I have to use telenet?

    thanks for the help
     
  11. bdaalex

    bdaalex New Member

    76
    0
    Jun 4, 2003
    Bermuda
    A new question. Given that this module is able to back up the mappings and restore them on request, I was wondering if that could be automated. In other words, is there a way that I can make my TIVO autamatically restore my modified lineup every night at, say, 7pm, so that it is ready for primetime.

    Or, would this be better tackled in windows. A program that opened IE and clicked the right buttons, daily?

    I have recently experienced my first revert to the actual lineup and it was frustrating. Havn't tried the restore yet as it is actually at a friends house... my cable is still out from a hurricane 2 months ago.
     
  12. Zirak

    Zirak New Member

    973
    0
    Apr 24, 2002
    New York
    It could be automated by installing cron and making a stand alone tcl program by pulling the relevant pieces out of the module. You would probably need to hard code which lineups you use.

    It could also be done from an automated web client that sends the right commands, but I would never make something that actually opens a browser and clicks buttons. Thats kinda insane.
     
  13. bdaalex

    bdaalex New Member

    76
    0
    Jun 4, 2003
    Bermuda
    I consulted a far more programming proficient friend and created a script that will do that later of what you suggested (will share it with anyone interested once I test it for a bit). I am just wondering when the best time to schedule it is. There are two choices:

    one, late afternoon, right before any recording would begin.

    second, right after Tivo might make any changes. Does anyone know when Tivo does this? For example, do they always make changes at midnight or is it random?

    suggestions?
     
  14. Zirak

    Zirak New Member

    973
    0
    Apr 24, 2002
    New York
    Random times.

    If you have gone that far, why not take it just a wee bit further. You can determine if a lineup change has occurred by looking for the date and "A lineup change has occurred" here: http://tivo/listmail.

    If a lineup change has occurred today, and you haven't already remapped the channels today, then remap the channels. Then you could run it however frequently you wish, something like once an hour. (Yes, you need to be careful about "today" when its shortly after midnight.)
     
  15. Francesco

    Francesco Summum Pontificem

    18,365
    0
    Oct 4, 1999
    Maricopa...
    OK, got a lineup change, and tried to restore again, no go.

    Tried to run the script from BASH and a problem glared out at me - apparently the script is case-sensitive and my FTP program changes ChannelMap.itcl to channelmap.itcl... Renamed it and now it is able to restore from saved; the channels show up correctly before the "commit" step. However, when I try to commit now, I get this error:
    Code:
                                           Applying change for TVGOS 2 (Was ) object 
    
    INTERNAL SERVER ERROR
    --cut here--
    action_BuildActiveChannels '/' 'set "L1" "on";set "L2" "on";set "BuildActiveChannels" "Commit Changes";'
    can't read "firstid": no such variable
        while executing
    "db $db openidconstruction $firstid $secondid"
        ("uplevel" body line 3)
        invoked from within
    "uplevel $body"
        invoked from within
    "transaction {uplevel $body}"
        (procedure "RetryTransaction" line 5)
        invoked from within
    "RetryTransaction {
    		scan $resid {%[0-9]%[/]%[0-9-]} firstid slash secondid
    		set chanobj [db $db openidconstruction $firstid $secondid]
    		set channum..."
        (procedure "changenum" line 9)
        invoked from within
    "changenum $object $channelnumber "Applying""
        (procedure "::action_BuildActiveChannels" line 47)
        invoked from within
    "::action_$action $chan $part $env"
        ("eval" body line 1)
        invoked from within
    "eval {::action_$action $chan $part $env}"
    --cut here--
    
    and of course the restored changes don't commit to the active channels list. How can this module work for everyone else??
     
  16. Zirak

    Zirak New Member

    973
    0
    Apr 24, 2002
    New York
    It looks like TVGOS is in one of the lineups that you told it to use in the remapping, but it isn't currently in your active channel list. They also have to "match" both in the name ("A & E Network") and Callsign ("A&E").

    So, it would appear that TVGOS either isn't in the active lineup, or the name and callsign don't match.

    I suppose thats a bug, but it would seem that the conditions that trigger it should never happen.

    You can hack around it by adding an additional check that "object" != "" in the conditional immediately preceding the "Applying Change" message.
     
  17. Jan 6, 2004 #117 of 156
    mitkraft

    mitkraft New Member

    563
    0
    Feb 21, 2003
    Texas
    I can't figure out how to add my OTA HD channels that my HD Dtv receiver receives. Basically I have normal DirecTV w/ Locals, but the box also tunes OTA HD channels. The major problem is that TIVO won't recognize non satellite channels as part of my lineup unless I use Satellite + Broadcast. However then it tries to tune to the actual channel for the HD using its internal tuner (i.e. 35 instead of 2-1).

    I guess there are two issues to be tackled here.

    1. Can this module remap a channel to the STB that TiVo thinks is broadcast OTA?

    2. Can this module map a channel to an STB channel with a "-" in it (2-1, 2-2, 8-1 etc..)?

    Any help would be greatly appreciated. I've never had to use remap before because I only recently got rid of cable (yaay me!) :)

    Thanks,

    Michael
     
  18. Mar 7, 2004 #118 of 156
    Snoopy

    Snoopy New Member

    80
    0
    Jan 8, 2003
    Waco
    I am currently using TiVoWebPlus which I have not found on this board yet. Please advise. Channel Map looks like it could be still be a usefull module.
     
  19. 1equals0

    1equals0 New Member

    13
    0
    Jun 19, 2002
    hi,
    this thread seems to be the most active on channel mapping, so please forgive if this is not the appropriate thread.

    will this code still work in version 3.0 standalone series 1 tivo? it worked great under 2.0/2.5 versions:

    Code:
    source /tvlib/tcl/tv/mfslib.tcl
    proc getchannel { db ch } {
    set obj [db $db openid 363859]
    foreach l [dbobj $obj get Lineup] {
    foreach c [dbobj $l get Channel] {
    if {$ch == [dbobj $c get Number] } {
    return $c
    set res [dbobj $c fsid]/[dbobj $c subobjid]
    }
    }
    }
    return $res
    } 
    proc changenum {oldnum newnum} {
    set db [dbopen]
    RetryTransaction {
    dbobj [getchannel $db $oldnum] set Number $newnum
    }
    dbclose $db
    }
    
    i was able to batch renumber multiple channels at once by creating a text file and running it like:

    changenum 6 606
    changenum 7 607
    changenum 8 608
    changenum 9 609
    .
    .
    .

    but i am afraid to run this changenum script under 3.0 for fear it might break something now.
    so has the database structure remained the same such that it will still work under 3.0?

    i havent installed the channel remap tivoweb module you are discussing here.
    does it work and will that allow me to do batch channel reorders?
    thank you
     
  20. Zirak

    Zirak New Member

    973
    0
    Apr 24, 2002
    New York
    Yes, it works on 3.0.
     

Share This Page