New TivoWeb Module : Highlights

Discussion in 'TiVo Series 1 - UK' started by d33mb33, Feb 2, 2006.

  1. andonevris

    andonevris New Member

    22
    0
    Oct 23, 2001
    London, ,...

    Advertisements

    OK got digiguide working now:

    you need to change set web [socket 83.170.72.151 80]

    to set web [socket 89.234.33.26 80]

    and change puts $web "Host: 83.170.72.151"

    to puts $web "Host: library.digiguide.com"

    reload tivoweb
    clear cache
     
  2. crozati

    crozati New Member

    4
    0
    Mar 29, 2008
    France
    Thanks, andonevris: works for me too.
     
  3. mesaka

    mesaka travelling member

    133
    0
    Sep 27, 2002
    Thanks - that works here.

    To aid everyone else I have attached the file in this message. If it is OK with d33mb33 then he can add it to the 1st post.
     

    Attached Files:

  4. Pete77

    Pete77 New Member

    7,968
    0
    Aug 1, 2006
    Not Far...
    Is there any way to also change "puts $web" to use the domain name instead of the IP address to avoid these kind of problems in future when they change the physical IP address of the server they are using?
     
  5. Raisltin Majere

    Raisltin Majere The 96 YNWA

    1,668
    58
    Mar 12, 2004
    Devon

    Advertisements

    I would guess not, as I don't think TiVo can resolve domain names.
     
  6. Pete77

    Pete77 New Member

    7,968
    0
    Aug 1, 2006
    Not Far...
    Then how does it cope with:-

    puts $web "Host: www.radiotimes.com"

    and

    puts $web "Host: library.digiguide.com"

    or is puts $web different from "set web" in that the former can resolve domain names and the latter cannot? What about "set $web" - would that work as an alternative to using the IP address?
     
  7. Raisltin Majere

    Raisltin Majere The 96 YNWA

    1,668
    58
    Mar 12, 2004
    Devon
    As we are all aware, I;m no expert.

    But it looks to me like it is accessing the site via the IP address and is sending the domain name to the page - "puts", maybe as a referrer or something seems to be in the header I think? I really don;t know, but I am reasonably confident it is not using the domain name to actually connect to the site (or whatever the technical term would be)
     
  8. Raisltin Majere

    Raisltin Majere The 96 YNWA

    1,668
    58
    Mar 12, 2004
    Devon
    set assigns a value to a variable, puts is like "print"

    so if you had set web <ipaddress>

    the output of

    puts "$web www.domain.com"

    would be

    <ipaddress> www.domain.com

    (I think)
     
  9. crozati

    crozati New Member

    4
    0
    Mar 29, 2008
    France
    The Host: string is sent to the web server as part of
    the http request. So any domain name lookup
    based on the Host: string is done by the webserver,
    not the TiVo. What seems to have changed is that the
    RadioTimes and digiguide web servers now pay
    attention to the content of this - presumably
    they didn't before as the Host: string wasn't right, but it
    worked anyway.

    There's a bit more on why the Host: is there at all in
    http://en.wikipedia.org/wiki/HTTP . It can be useful if
    multiple web sites (domain names) are served from
    the same IP address.
     
  10. d33mb33

    d33mb33 New Member

    102
    0
    May 13, 2004
    Well done chaps.. First post and version number updated.
    Good bit of diagnosis on the host header Crozati :up:
    And well done for getting Digiguide working too Andronevis :up:
     
  11. jimwitt

    jimwitt New Member

    4
    0
    Oct 20, 2006
    Highlights has worked very well for some time, but now shows:

    INTERNAL SERVER ERROR
    --cut here--
    action_highlights '/' ''
    couldn't open socket: network is unreachable
    while executing
    "socket 78.136.19.14 80"
    (procedure "getRTShowsFromWeb" line 5)
    invoked from within
    "getRTShowsFromWeb "/${gtype}highlights/""
    (procedure "getShows" line 11)
    invoked from within
    "getShows"
    (procedure "::action_highlights" line 41)
    invoked from within
    "::action_$action $chan $part $env"
    ("eval" body line 1)
    invoked from within
    "eval {::action_$action $chan $part $env}"
    --cut here--

    I have downloaded the latest version of highlights, and done a full restart but still doesn't work. Any ideas what might have happened to stop it working?
     
  12. d33mb33

    d33mb33 New Member

    102
    0
    May 13, 2004
    Have you changed anything on your network configuration?
    Are you using the network for daily calls? (If you misconfigure TiVo to dialup for daily calls then you get this error..)
     
  13. jimwitt

    jimwitt New Member

    4
    0
    Oct 20, 2006
    Thanks. That could be it. I changed my Tivo back to dialup because of unreliable daily connections over my wireless connection.

    Does Highlights require the network for daily calls?
     
  14. d33mb33

    d33mb33 New Member

    102
    0
    May 13, 2004
    Yes, it needs the network configuration to route through the NIC when it gets the list of shows from RT and DigiGuide.
     
  15. jimwitt

    jimwitt New Member

    4
    0
    Oct 20, 2006
    That makes sense. Unfortunately, I may have to give up with this module, as I keep getting "service not available" when I use network connection! I can't work out why this is as I can talk to the Tivo from my wireless connection.
     
  16. AMc

    AMc Active Member

    2,623
    0
    Mar 22, 2002
    East of England
    IIRC changing from dialup to network can reset the default gateway that Tivo uses.
    If you changed it from the default then you may have internal connectivity but when Tivo tries to talk to the internet it tries to connect through an non-existant gateway and fails.
    Try pinging a known internal and then external IP address then check nic_config_tivo.

    Type carefully in nic_config_tivo as the IP and subnet can auto return at the end of a 3 figure entry which lost me my Tivo from the LAN once!
     
  17. jimwitt

    jimwitt New Member

    4
    0
    Oct 20, 2006
    Thanks for that. You were right - The gateway address had changed when I reverted back from dial-up to network. It works OK now.
     
  18. AMc

    AMc Active Member

    2,623
    0
    Mar 22, 2002
    East of England
    Glad you got sorted! :)
     
  19. Pete77

    Pete77 New Member

    7,968
    0
    Aug 1, 2006
    Not Far...
    I recently had cause to reinstall both Tivoweb 1.9.4 and TivoWebPlus 2.1 on my Tivo following a /var/hack/wipeout after having managed to avoid one of those for three and a half years since my hard drive upgrade and Cachecard install.

    In the course of this I also discovered that TivoWebPlus is a lot more stable and fully featured than any previous version of TivoWebPlus (including TivoWebPlus 2.0 which was rather bug ridden) and nearly worth considering abandoning Tivoweb 1.9.4 for. However TivoWebPlus 2.1 does not support the OzTivo Yahoo Widget and some of Ljay's UI extensions (Search by Advisory Codes or editing thumbs for all series stored on your Tivo) and also Mikerr's enhanced Now Playing module. But it does seem a very stable and fast version of the Tivoweb project.

    Combing back to the Highlights module a little while ago d33mb33 updated it to be compatible with TivoWebPlus 2.0, although said he hadn't fully tested it with it as he didn't use TivoWebPlus 2.0 himself.

    Whilst TivoWebPlus 2.1 pretends it must also have modules written exclusively for it I have found that the version of Highlights that is compatible with TivoWebPlus 2.0 (the latest version of the module) also works perfectly under TivoWebPlus if you are prepared to make the following very small modification to the module as follows:-

    1. Open the itcl file on the Tivo with a Linux text editor such as joe

    2. Add the following line to the top of the module

    3. Save and close the file.

    4. Do a full reload of TivoWebPlus 2.1

    The module is now ready to run and seems to work perfectly under TivoWebPlus 2.1 except for the Films section. This still works but seems to impose some intense load on the CPU of the computer as the fan runs all the time until you exit the films section of the module. To be honest this may also happen under Tivoweb 1.9.4 with the films section of the module.

    Highlights seems to me to actually run faster under TivoWebPlus 2.1 than under Tivoweb 1.9.4 unless it is my imagination. So some of you who use TivoWebPlus 2.1 may want to give this a try with a version of highlights.itcl edited as shown above.
     
  20. gyre

    gyre Wookie

    382
    0
    Nov 22, 2003
    Bristol, UK
    I'm not seeing the icon that shows how many slots are currently occupied next to the series link url.

    Have I borked something, or is www.tivohilights.com having problems?

    Thanks.

    -- gyre --
     

Share This Page

spam firewall

Advertisements