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. May 2, 2008 #81 of 692
    SuperC142

    SuperC142 New Member

    1
    0
    May 2, 2008
    Omikron - this is awesome; thank you for posting!!

    I think the biggest goldmine will be the KEYBOARD command. I'm wondering if there's some kind of escape code for literal characters. Such as the IRCODE command requiring NUM[n]. I've tried obvious stuff: "KEYA", "LETA", "KEY0x65", "\A", etc., etc., but can't get it yet. But when you think about it, it might need this to differentiate between literal strings and special keys (like "CTRL") so that it doesn't take the special keys literally. Just a thought.
     
  2. May 2, 2008 #82 of 692
    wmcbrine

    wmcbrine Ziphead

    10,368
    22
    Aug 2, 2003
    Even if we can't get "KEYBOARD" to do anything, we can still use port 31339 to get easier keyboard entry -- we just translate a string to the appropriate sequence of up, down, left, right, and select.
     
  3. May 2, 2008 #83 of 692
    windracer

    windracer joined the 10k club

    11,580
    3
    Jan 3, 2003
    St. Pete, FL
    Yikes ... we'll need another utility to generate the strings!

    With all of the different ouija board layouts, that could be "fun."
     
  4. May 2, 2008 #84 of 692
    ThAbtO

    ThAbtO TiVoholic by the bay

    6,736
    8
    Apr 6, 2000
    SF Bay Area
    After hitting Ctrl-], entering 'C' will close connection and 'O address' will open another without closing the telnet client. Hitting 'Q' will close the client though.
     
  5. May 2, 2008 #85 of 692
    BiloxiGeek

    BiloxiGeek Reality Challenged

    502
    0
    Nov 18, 2001
    Gulfport,...
    That's a pretty good stab, remind me not to meet up with you in a dark alley!! :)

    Is there any way to have it display the current channel being shown?

    Another button that might be nice to have is one that brings up the NPL by sending two 'TIVO' signals.
     
  6. May 2, 2008 #86 of 692
    ThAbtO

    ThAbtO TiVoholic by the bay

    6,736
    8
    Apr 6, 2000
    SF Bay Area
    Just send in a 'TELEPORT NOWPLAYING' or 'IRCODE NOWPLAYING'
     
  7. May 2, 2008 #87 of 692
    BiloxiGeek

    BiloxiGeek Reality Challenged

    502
    0
    Nov 18, 2001
    Gulfport,...
    That works once you replace NOWPLAYING with NOWSHOWING.

    And using the remote.py with NOWPLAYING before I saw the difference just caused my TiVo HD to reboot.

    I've modified the script lines 32 and 33 to be:

    It works good for getting straight to the NPL now.
     
  8. May 2, 2008 #88 of 692
    BiloxiGeek

    BiloxiGeek Reality Challenged

    502
    0
    Nov 18, 2001
    Gulfport,...
    Plus you have to either remember where you're at on the ouija board before the next character, or get the character in, then reverse course back to a known starting place before going for the next character. But I bet it would be cool as hell to watch as those commands stream into the TiVo.
     
  9. May 2, 2008 #89 of 692
    ThAbtO

    ThAbtO TiVoholic by the bay

    6,736
    8
    Apr 6, 2000
    SF Bay Area
    I looked at my list and I have:

    IRCODE NOWSHOWING
    TELEPORT NOWPLAYING
     
  10. May 2, 2008 #90 of 692
    windracer

    windracer joined the 10k club

    11,580
    3
    Jan 3, 2003
    St. Pete, FL
    Ha, cool. I got it working on my Eee PC. Nice.
     
  11. May 3, 2008 #91 of 692
    KRKeegan

    KRKeegan Im lost and confused

    215
    0
    Jul 20, 2004
    Los Angeles, CA
    I finally thought of a good use for this, but I am not sure how accurate it would be.

    Currently there is no way to delete a program on the TiVo without being in front of the TiVo(Or through something like slingbox). But now you can do the same thing with this feature, albeit in a very roundabout fashion, and there is a danger that you could delete the wrong item, but it would be possible.
     
  12. May 3, 2008 #92 of 692
    bicker

    bicker bUU

    10,382
    43
    Nov 9, 2003
    Georgia
    That's great -- well -- all except for that deleting the wrong item part.

    :)
     
  13. May 3, 2008 #93 of 692
    morac

    morac Cat God

    8,954
    22
    Mar 14, 2003
    NJ
    Actually I thought of a number of uses for this, but all of them won't work unless you can actually view the results of the commands. At that point you might as well just use a Slingbox.

    For example I thought a good idea would be to write a HME application to control one TiVo from another, but you'd be flying blind unless you set up some kind of close circuit feed to display your other TiVo.

    So really it's only good for what it was originally designed to do.


    BTW does anyone know what emulation it uses? I tried using the telnet command prompt in Windows XP, but the results displayed as gibberish. Hypertrm.exe worked (kind of), but I need to issue a command before I can see any status.
     
  14. May 3, 2008 #94 of 692
    PaulS

    PaulS Member

    674
    1
    Sep 16, 2002
    Southern NH
    Worked fine for me with putty in RAW mode.
     
  15. May 3, 2008 #95 of 692
    kcl

    kcl New Member TCF Club

    26
    0
    Jul 4, 2000
    Davis, CA
    For this to be able to interface to an external driver (like in CQC), you would like to have some way to acknowledge the receipt of a valid message. From what I'm reading here, there's only a response for an invalid message. Without a validation message, you can't set up any reasonable handshaking within the driver. (For example, if there was an "acknowledge" switch and/or command that you could add to a command, that would do the job nicely.)
     
  16. May 3, 2008 #96 of 692
    wmcbrine

    wmcbrine Ziphead

    10,368
    22
    Aug 2, 2003
    For those who don't have PyGTK, here's a version based on Tkinter, so you only need the basic Python installation. Tested on Linux, Mac OS X and Windows. I've also included the PyGTK version in the archive, slightly trimmed and renamed "remote-gtk.pyw", but with no change in functionality. That's next...

    [See sig for the latest version.]
     
  17. May 3, 2008 #97 of 692
    spiralman

    spiralman New Member

    3
    0
    Jan 16, 2008
    I threw together a simple little Python/Tkinter app for doing a "Search By Title."

    To run it:
    Windows: I think you need to rename tivo-search.py to tivo-search.pyw, then you can double-click it to run (it has to stay in the tivo-search folder, though)
    Mac OSX/Linux: in a terminal, cd into tivo-search and run: python tivo-search.py

    To Use it:
    1) Type in your Tivo's IP address or hostname and click "Connect"
    2) Type in the search you want to do and click "search." Listen to that keyboard type away!
    3) You can re-search and it'll just clear the keyboard and start over.

    Currently the "Disconnect" feature is broken. You'll have to quit and re-run it.

    For the Python-literate, I implemented two modules with it: tivo.py (for sending commands to the tivo), and keyboard.py for navigating the On-Screen-Keyboard. I haven't put them in a proper package yet, though.

    It's pretty hack-ish. I haven't figured out the KEYBOARD command, so I'm just doing navigation among the on screen keyboard.

    The other missing piece is being able to figure out if you're on the "TiVo Central" page or not. If you are, sending an IRCODE/TELEPORT TIVO command takes you to the Now Playing, which you don't want. So, instead I send it to LiveTV first, and then back to Tivo Central, before navigating the menus.

    Enjoy,
    Thomas
     

    Attached Files:

  18. May 3, 2008 #98 of 692
    pzand

    pzand New Member

    53
    0
    Jul 27, 2003
    Anyone marry this up with the "Now Playing" info that's available over http/https from TiVo yet?

    https://<ip>/TiVoConnect?Command=QueryContainer&Container=&#37;2FNowPlaying
    username: tivo
    password: <your MAK>
     
  19. May 3, 2008 #99 of 692
    wmcbrine

    wmcbrine Ziphead

    10,368
    22
    Aug 2, 2003
    You could speed this up by sending IRCODE CLEAR instead of navigating to CLR and selecting it.
     
  20. May 4, 2008 #100 of 692
    ThAbtO

    ThAbtO TiVoholic by the bay

    6,736
    8
    Apr 6, 2000
    SF Bay Area
    I have a shorter line:

    https://<tivo's IP>/nowplaying/index.html
     

Share This Page