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. wmcbrine

    wmcbrine Ziphead

    10,369
    22
    Aug 2, 2003
    OK, I finally installed Gtk in Windows, duplicated this, and fixed it. Apparently you can't use gtk.gdk.threads_init() in Windows; you have to use gobject.threads_init(). :rolleyes:

    Also in this version:
    - Added CLEAR command to the end of the SPS30 and Clock strings.
    - Added support for the numeric keypad (with or without NumLock).
    - When I was adding keyboard shortcuts, I'd temporarily forgotten that there was another program that already had keyboard shortcuts to simulate the TiVo remote: the Simulator from the Java HME SDK. Now, I've added the shortcuts from that program, where they didn't conflict with the ones already in use. (Fortunately most of them were already the same.)

    Edit: Slight problem with 0.9 -- some of the KP_* keys apparently aren't defined by Tkinter on all platforms. With 0.10, they'll be skipped there, but still work on the platforms where they are defined.

    [See sig for the latest version.]
     
  2. tivoq

    tivoq New Member

    15
    0
    Dec 1, 2002
    A little off topic, we can now over the network

    simulate the Tivo remote
    pull a now showing list
    transfer files in and out

    all without prom hacking. What's left is getting Todo and direct remote scheduling (without the Tivo central delay). Is there any indication that Tivo will ever let us do that?
     
  3. orev

    orev New Member

    81
    0
    Feb 16, 2003
    Don't forget the ability to delete a show remotely.
     
  4. SeanC

    SeanC ECT

    9,616
    6
    Dec 30, 2003
    Someplace
    I've tried both 9 and 10 but can't seem to get them to work. On version 8 all I did was edit the tivo_address = line to reflect my tivo's IP address.

    I did the same for both 9 and 10 but I can't run them. I renamed 10 to .py and ran it from a command prompt so I could get some output:

    C:\Documents and Settings\Sean\Desktop>remote.py
    Traceback (most recent call last):
    File "C:\Documents and Settings\Sean\Desktop\remote.py", line 441, in <module>

    sock.connect((tivo_address, 31339))
    File "<string>", line 1, in connect
    socket.error: (10060, 'Operation timed out')

    Not sure what the problem is....
     
  5. wmcbrine

    wmcbrine Ziphead

    10,369
    22
    Aug 2, 2003
    Are you sure you have the right address?
     
  6. SeanC

    SeanC ECT

    9,616
    6
    Dec 30, 2003
    Someplace
    Yeah. I still have the old .8 it's edited to say the correct IP and it works.

    .9 and .10 edited the same way, no response.
     
  7. wmcbrine

    wmcbrine Ziphead

    10,369
    22
    Aug 2, 2003
    Let me put it another way... that error is what I get (under Windows) if I put in a bogus address. I don't see any other way for it to arise.
     
  8. SeanC

    SeanC ECT

    9,616
    6
    Dec 30, 2003
    Someplace
    Ugh....

    I've been having issues with my ISP so I had to recable the network to troubleshoot with them. I fogot that I moved my laptop to a different network than the Tivo....

    Sorry about that.

    I'll just be over in the corner hanging my head in shame......
     
  9. tivorepo

    tivorepo New Member

    13
    0
    May 12, 2006
    Got it to work. I haven't had any issues so far but I haven't pushed it too hard yet.

    Is there any way to make the shortcut keys global so that I don't have to have the remote control window in focus to use a shortcut key?
     
  10. wmcbrine

    wmcbrine Ziphead

    10,369
    22
    Aug 2, 2003
    This version tries to connect to the TiVo and exchange TCD beacons, to determine the TiVo's name, and uses that in the title bar instead of the address.

    More significantly, if you don't specify the address (on the command line or by editing the file), it attempts to find suitable TiVos on your LAN automatically. If it finds only one, it connects; if more than one, it pops up a small window to let you choose. (I'm not crazy about this interface, BTW.) This feature relies on opening a fake HTTP server on a random port, so it may not get along with some firewalls.

    Also, the "-h" option was broken.

    [See sig for the latest version.]
     
  11. Jun 1, 2008 #191 of 692
    snathanb

    snathanb New Member

    462
    0
    Sep 13, 2006
    Thanks for fixing that. I should have been able to spot that myself, but I'm accustomed to the C bindings to GTK, so I overlooked it.

    Version 0.11 works great on my home network. I had to grant it an exception through Zone alarm, but afterwards it quickly located both my Series 3 tivos, allowing me to chose which to control.
     
  12. Jun 1, 2008 #192 of 692
    hixeldice

    hixeldice Body Massage Machine

    1
    0
    Apr 19, 2006
    Wilmington, NC
    if it would help anyone, i just downloaded the crestron module from their site - the zip archive contains a simpl windows file, a visiontools project, and a couple of other things.

    PM me if you could do anything with this.

    if not, i'll just dissect them and see if i can find anything out - i'm pretty handy with simpl and vtproe.
     
  13. Jun 2, 2008 #193 of 692
    wrecklass

    wrecklass New Member

    24
    0
    Dec 3, 2005
    Just a great big warning to people trying this out. I have been using 0.8 through 0.11 versions and one thing I recently ran into is when closing down the tool I have had my TiVo suddenly stop responding to most of my real remote control functions and after about 30 seconds the TiVo reboots. It has happened to me twice in the past 24 hours with both 0.8 and 0.11.

    Not sure what is going on, but it seems the software doesn't always close down the open session correctly and bang, you get reset.

    I wonder if it wouldn't be a better idea to open the session when a command is being sent, and close the session once the command is finished. Rather than leaving a session open that apparently can get hosed up and cause drastic problems for the TiVo.

    While I like this utility in general, I've had a couple of recordings messed up due to this problem. Use at your own risk!
     
  14. Jun 2, 2008 #194 of 692
    SeanC

    SeanC ECT

    9,616
    6
    Dec 30, 2003
    Someplace
    Good to know wrecklass.

    Just as another data point, I've never had that happen to me.

    I only have 1 S3 on my network, also I use the app very little, almost exclusively to turn closed captioning on and off. At most I think I've left the app running for 30 minutes.
     
  15. Jun 2, 2008 #195 of 692
    wmcbrine

    wmcbrine Ziphead

    10,369
    22
    Aug 2, 2003
    Discussed earlier in the thread.

    On what do you base that?

    I doubt it very much... I suspect that would make it worse (see earlier posts). It would also kill the status bar. Feel free to try it, though.
     
  16. Jun 8, 2008 #196 of 692
    ehgreen

    ehgreen A Quiet Observer

    10
    0
    Apr 28, 2002
    Cape Cod
    Lets see if I've got this right . . . .

    A) This concept works ONLY on Series 3 machines, not even dual tuner Series 2?

    B) Because of the lack of visability of where one is on the menu tree, effectively is limited to local usage, not trans=contentintal?

    C) There is no API for a "Query List" function which will give back an ordered list or "Table of Contents" that could then be the basis for one to issue a command like "delete n"

    Any pointers or suggestions would be appreciated !

    ehg
    TiVo near Boston and the riches of 'GBH
    Home near Los Angeles (cultural Wasteland)
    Quarterly trips to download good stuff not broadcast there
     
  17. Jun 9, 2008 #197 of 692
    wmcbrine

    wmcbrine Ziphead

    10,369
    22
    Aug 2, 2003
    Afraid so.

    As I recall it, when Crestron integration was introduced, it was presented as something of a luxury feature -- hence fitting with the "high-end" Series 3. That we also get it on the TiVo HD could even be an oversight.

    I know of no technical reason for it not to be implemented on the S2... it just wasn't.

    Um, yeah.

    You can get a list -- not from this, but via the https server. You could then use that as the basis for sending a series of commands to delete a program, if you were willing to make some assumptions about the state of the Now Playing menu. Personally, I'm not interested in pursuing that; it seems too risky, and not especially useful.
     
  18. wmcbrine

    wmcbrine Ziphead

    10,369
    22
    Aug 2, 2003
    In this version:

    - Delay a tenth of a second between each command. I can't say this will fix the crashing, since I can't produce crashes at will, and haven't personally seen one in some time. But it won't hurt, and it might help.

    - If no address is given, and the automatic TiVo finder doesn't work, put up a prompt for an address.

    - Some of the new keyboard shortcuts added in 0.9 didn't work in Gtk.

    - Eliminate potential hang up in the automatic TiVo finder.

    - Sort TiVo names in the list window.

    - The keyboard shortcut list from "-k" didn't look right in other than 80 columns.

    [See sig for the latest version.]
     
  19. ivanpiro

    ivanpiro New Member

    9
    0
    Jan 4, 2008
    I've been using your ultra-cool remote on my DELL Pocket PC and I can't say enough about it... Most of time I don't even need to use the pointer as the directional keys take care of most TiVo HD viewing, anywhere in my house.

    Well, the on exception being the "skip" function. So the one thing I'd like to suggest is the option to assign the "skip" to the enter key. With that extra feature one would very seldom have to use the pointer.

    Thanks for a great little program!
     
  20. Prestond

    Prestond New Member

    44
    0
    Feb 4, 2008
    Ivan,

    How did you get it to work on your pocket pc? I got Dell Axim with pocket pc 2003 installed...

    Did you install some sort of python for pocket pc?

    Sorry to be confused..
     

Share This Page