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

TiVo UI Control via Telnet - No Hacking Required!

Discussion in 'TiVo Underground' started by Omikron, Apr 30, 2008.

  1. gonzotek

    gonzotek tivo_xml developer

    2,404
    3
    Sep 24, 2004
    Outside...
    Use a PC as a proxy to pull it and republish it. Other than that, wmcbrine's right, you can't access it directly off the tivo without going through the security.
     
  2. crazybox

    crazybox New Member

    9
    0
    Jan 19, 2007

    Well not totally impossible but I would have to write the certificate and the encryption... I would also have to know what I was doing :)
     
  3. ivanpiro

    ivanpiro New Member

    9
    0
    Jan 4, 2008
    I must be missing something... What would be the point of establishing an SSL connection to your TiVo within your own private network, unless you wants to "pause" a program from work.

    Just curious,

    Ivan
     
  4. crazybox

    crazybox New Member

    9
    0
    Jan 19, 2007
    I need the SSL connection to get the XML file for the Now playing list so that I can display it on my touch panel then be able to select it. The sort of fake the selection with IR commands. With the teleport function I can always get to NPL from anywhere.
     
  5. wmcbrine

    wmcbrine Ziphead

    10,368
    22
    Aug 2, 2003
    ivanpiro, you have to use SSL because that's the only way to fetch the NPL. It's not because we want to. You'd have to ask TiVo why they made it that way.

    crazybox, I trust you've read post #153? This is a pretty risky approach IMHO.
     
  6. crazybox

    crazybox New Member

    9
    0
    Jan 19, 2007
    WMCbrine, I looked into this the XML says whether it is a folder or a video file... so you just put an identifier as a folder... so then you query the folder XML after the initial NPL query which it gives a link to. that way you can sort folder and use an indexing system so you know what entry it is on the NPL. You would have to use the teleport command and possibly IR up command so you know you are at the first entry.

    All this is good in talk. I have not even tried to write code for it because I am waiting until I can actually get to the XML directly from the crestron. This for my own home so I am not too concerned. I might just have to wait until crestron releases their next stage in the module so I can use it and see what all the direct telnet commands are.

    Until then I guess it is all wait and see...
     
  7. ivanpiro

    ivanpiro New Member

    9
    0
    Jan 4, 2008
    Ok. I get it now. And I was missing something indeed...
     
  8. BiloxiGeek

    BiloxiGeek Reality Challenged

    502
    0
    Nov 18, 2001
    Gulfport,...
    Just had a thought. Anyone tried to get this working on a Chumby?? I always thought those things were pretty useless, but a Chumby with this python script actually makes some sense. It's wifi so no wires, it gets you on the LAN, and it has a touchscreen. If you could make the remote.py work with the Chumby touchscreen you'd have a LAN based remote sitting on the couch next to you.
     
  9. wmcbrine

    wmcbrine Ziphead

    10,368
    22
    Aug 2, 2003
    Yeah, that's not the problem. The problem is that you don't know what state the TiVo's own view of the NPL is in -- folded or flat -- you can't determine it remotely, and you can't force it to a known state. So I'd be extremely reluctant to build anything that operated automatically on the NPL.

    But if it's just for your own use, and you know the state, then I guess it doesn't matter. I almost never unfold the list here, or change the sort order, so I could assume those.
     
  10. fyodor

    fyodor Member

    523
    0
    Sep 19, 2006
    What python interpreter are you using? I can't get it working my WM6 device.


     
  11. duckfin

    duckfin New Member

    10
    0
    May 5, 2008
    I've implemented this in the iPhone program. It is not ideal. The sorting/grouping options aren't a big deal. I'm sure I'm missing some specific sorting scenarios (a, an, the, lower case letters, etc.), but there are only four combinations of the sorting options. I don't know if people are changing these settings often (or ever), I know I don't.

    The messy part is setting the wait times for the different commands. Once a screen has reached some point, it will queue channel, and up/down commands, but play and select don't get queued. Depending on what the TiVo is doing, or was recently doing, the load times for each screen can take a different amount of time. It is very difficult to recreate difficult scenarios.
    (There are configuration options so anyone and everyone can try their hand at tuning the wait times. http://code.google.com/p/tivoremote/wiki/NowPlaying has information on the different settings.)

    I don't think there was anything particularly tricky about this, but I'd be happy to answer any questions anyone has about implementing this in other languages.
     
  12. snathanb

    snathanb New Member

    462
    0
    Sep 13, 2006
    I can only run it if I set "use_gtk" to False. If I try to use GTK I get just a blank window with the IP address as the title bar, and it locks up.

    All my other python/pyGTK apps seem to work ok.
    WindowsXp, Python 2.5, GTK 2.0
     
  13. wmcbrine

    wmcbrine Ziphead

    10,368
    22
    Aug 2, 2003
    Curious. Let me know if you figure it out. I only have Gtk on Linux here.
     
  14. jeffcox65

    jeffcox65 Rabid HD Junkie

    10
    0
    Jul 23, 2004
    SF, CA
    is anybody experiencing his or her TiVo box crashing from using any of these tools?

    I'm using both the python script and the iPhone tool. (Both are completely amazing as far as I'm concerned. The NowPlaying list displays on my phone, I select any show, and my TiVo magically starts it up. Amazing.)

    But every once in a while, the TiVo just shuts down and starts up again. This has only started happening since using this new way into the TiVo.

    Am I the only one?
     
  15. duckfin

    duckfin New Member

    10
    0
    May 5, 2008
    I heard someone was having a problem with the iPhone program messing up the video decoding. The person thought it had something to do with sending too many commands to the TiVo at once. I have since slowed down the frequency at which commands can be sent, but I haven't heard if it resolved the issue.

    My first day of playing around with the telnet interface led to a TiVo restart. I don't know if it was some key sequence I sent (I was typing directly on the socket), or if there was something else involved. I haven't seen any problems since.
    I may have been testing having multiple clients connecting to the TiVo at the same time when my crash occurred. Perhaps there is an issue with the TiVo handling multiple connections. (I think I remember the second connection evicting the first connection, which would be somewhat unusual socket behavior, I believe.)

    I'm interested if you find out anything more.
     
  16. ThAbtO

    ThAbtO TiVoholic by the bay

    6,739
    9
    Apr 6, 2000
    SF Bay Area
    Perhaps it is the telnet client's emulation, I tried using another telnet client and the tivo rebooted, so it was back to the plain telnet.
     
  17. wmcbrine

    wmcbrine Ziphead

    10,368
    22
    Aug 2, 2003
    I've had a total of three crashes (one spontaneous reboot, two lockups that I had to manually reboot from) while developing. One of those I can probably blame on a bug -- not in any released version -- in the keyboard simulator that caused a neverending stream of commands. But the other two seemed to be during normal usage. The only thing that might be a factor was having multiple copies open simultaneously (i.e., multiple connections to port 31339). So, my advice is to avoid that; also, to minimize it rather than closing it and opening it again in a short time. I haven't had a crash since I adopted that policy.

    But yeah, there's something a bit flaky on the TiVo side of this feature, I'm afraid.

    Edit: I posted that before I read duckfin's response. Looks like we had similar experiences.
     
  18. duckfin

    duckfin New Member

    10
    0
    May 5, 2008
    I don't know if anyone else is trying to implement Now Playing type functionality, but I noticed today that sending a "TELEPORT NOWPLAYING" will produce "LIVETV_READY" when the TiVo has finished loading the Now Playing screen. So, instead of waiting an arbitrary period of time after sending an "IRCODE NOWSHOWING" command, programmatically, you can determine when next to send a command, which makes TELEPORT much better for scripting purposes.

    (I've tried fiddling around with other parameters for the TELEPORT command but couldn't find anything. I wouldn't be surprised if there were more options, perhaps even one to start playing a recorded program.)
     
  19. nocturne1

    nocturne1 Member

    58
    0
    Aug 17, 2004
    Mostly off-topic, but since there's iPhone related TiVo development talk in here, I might as well pitch it...

    I would LOVE to have an iPhone app that can interface with TiVoCentral to search and setup recordings. The TCO website itself absolutely sucks on the iPhone, and having somewhat of a thin client running here would be a HUGE thing for me.

    Of course, if TiVo would just make an iPhone friendly version of that site, we wouldn't need this. But seeing that they can't even make a decent version of it for regular browsers, I'm not holding my breath.

    Anyways, that's my wish. And thanks to those who've been working on this telnet control - really cool stuff! :)
     
  20. gonzotek

    gonzotek tivo_xml developer

    2,404
    3
    Sep 24, 2004
    Outside...
    Maybe one of these other sites work better with an iPhone, they all have a TiVo Online Scheduling interface:
    * MeeVee.com – Look for the TiVo icon while browsing.
    * TVGuide.com – Select ‘Record with TiVo.’
    * Yahoo.com – Look for ‘Record to TiVo’ in TV listings.
    * Zap2it.com – Select ‘Record to TiVo.’

    *http://www.tivo.com/mytivo/howto/ge...html?wt.z_links=howto-schedule-shows-from-web
     

Share This Page