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. Aug 4, 2008 #221 of 692
    jhimmel

    jhimmel New Member

    499
    0
    Dec 27, 2002
    Hmmm...
    I just uncovered a little snafu with this app.

    I have two S3's. Both are in my basement. They feed into an HDMI matrix distribution and are controlled remotely through my whole-house IR system. So, one is set to Remote Address 1, the other is set to Remote Address 2.

    I noticed that occasionally something was going wrong and one of my S3's would lose its Remote Address setting. Today I found the problem. If you go into your system info screen with this app, it resets the Remote Address to (0), just like if you used a real remote that was set to (0) and accessed the System info screen.

    This may be far beyond the ability of the Telnet access, but thought I would ask -
    Is there ANY possible way that the virtual remote could query the current Remote Address setting and try to preserve it?
    Otherwise I'll just have to try and remember to stay away from the System Info screen when using it.

    By the way, wmcbrine, I use this little app ALL the time. I have a TV monitor in my home office. It is usually on while I'm at the computer. It's very handy to have the virtual remote open on the side of my screen for TiVo control while I am at the computer.

    Jim H.
     
  2. Aug 8, 2008 #222 of 692
    wmcbrine

    wmcbrine Ziphead

    10,360
    22
    Aug 2, 2003
    The changes in this version are all about making it work better on a Mac:

    - Removed sorted() calls so that it's compatible with the Python 2.3 that comes with OS X < 10.5.
    - Suppress the "console" window that's created by Tkinter.

    I wanted to provide an .app, but I couldn't find a way to distribute one that didn't care about the Python version, unless I bundled the whole interpreter. So, instead, I invite Mac users to make their own: First, rename remote.pyw to "remote.py" (or perhaps "TiVo Remote.py"). Then, pull up the context menu, and select "Open With...". You should see an option* to "Build applet". Select that, and you're done. The new app will work like a normal Mac app, with no extra console windows.

    Of course this version should work the same as always for Windows, Linux, etc.

    * Or two options, if you've installed your own Python. Either will work.

    [See sig for latest version.]
     
  3. Aug 8, 2008 #223 of 692
    jhimmel

    jhimmel New Member

    499
    0
    Dec 27, 2002
    William,

    Any thoughts of the resetting of the remote address? Any possible workaround?

    Jim H.
     
  4. Aug 8, 2008 #224 of 692
    wmcbrine

    wmcbrine Ziphead

    10,360
    22
    Aug 2, 2003
    No, apart from the workaround you already found (i.e., don't do that), sorry. I'll keep your problem in mind, though.
     
  5. Jeshimon

    Jeshimon New Member

    33
    0
    Jul 9, 2007
    One thing I really wish we had was a MUTE button.

    Using the KBD feature was fun to watch.
     
  6. goodtrips

    goodtrips New Member

    41
    0
    Jan 20, 2007
    First off, love the remote app. Really amazing work, wmcbrine!

    This might be a naive question, but is there anyway to enable remote access this app, and then have it execute locally on my home network?

    My vision is to have the app be accessible via an HTML page hosted on the machine running the remote app, that would then execute the telnet commands directly to the TiVo. I am not sure if this breaks or exceeds the limitations of python to be able to execute local commands from an HTML interface, though. I'm confident there are security implications that I should be nervous about, but the proof of concept is too intriguing.

    Why would anyone want do this? Remote scheduling would infinitely easier -- I imagine sending video output from the TiVo through a capture card on the computer, use webcam software to broadcast the images, and then have the remote functions next to it.

    And then, well, there is always the pie-in-the-sky idea of turning the set-up into a homemade slingbox...
     
  7. wmcbrine

    wmcbrine Ziphead

    10,360
    22
    Aug 2, 2003
    There are no real limitations in Python, apart from speed. :) But, the easiest way to do what you want is just to forward port 31339 from your router to the TiVo, and connect directly to the router's external address with the remote program. But as you note, there's no security there.
     
  8. goodtrips

    goodtrips New Member

    41
    0
    Jan 20, 2007
    Great idea, wmcbrine. I'll definitely give that shot to see if it works.

    Also been doing some reading up on telnet over http options out there. I'm sure this is all beyond anything I could pull off myself, but intrigued nonetheless.
     
  9. morac

    morac Cat God

    8,933
    19
    Mar 14, 2003
    NJ
    I'd be a bit wary of doing that. Not that I think someone will try and control your TiVo, but with all the people poking and prodding at ports out there, there's a chance (albeit slim) that one might hit that port and go to the TiVo. Based on posts here, sometimes sending unexpected commands to the TiVo causes it to reboot.
     
  10. pmiranda

    pmiranda New Member

    669
    0
    Feb 12, 2003
    Austin, TX
    I've just got to say this is SWEET! Goes well with the web interface to my Denon amp :)
     
  11. jhimmel

    jhimmel New Member

    499
    0
    Dec 27, 2002
    Something strange has happened. The app no longer finds my machines automatically - I have to enter the address when it starts.

    Any advice on where I should start looking for this problem?

    This problem just started out of nowhere about two weeks ago, but I have been away so I am just posting now.

    Jim H.
     
  12. JonHB

    JonHB New Member

    69
    0
    Aug 27, 2007
    Is this an external web app or integral to the Denon amp itself? More info please!:)
     
  13. pmiranda

    pmiranda New Member

    669
    0
    Feb 12, 2003
    Austin, TX
    Some Denon amps (like my 4806) have a built-in ethernet interface for streaming music and run a http server for web control. Multi-room source selection, volume, EQ settings, tuner control, etc. Wifi has better reach than any wireless remote I've found, so it works great throughout the house. I also run VNC on a PC with iTunes, so I have total remote control via any PC or laptop (or Palm TX) in the house :)
     
  14. wmcbrine

    wmcbrine Ziphead

    10,360
    22
    Aug 2, 2003
    Firewall? The app opens a random port to listen for http requests from the TiVos. If the requests are blocked, it has to fall back to manual address entry.
     
  15. jhimmel

    jhimmel New Member

    499
    0
    Dec 27, 2002
    No, local firewall is off. Only my router NAT firewall is up - just like before.
     
  16. SeanC

    SeanC ECT

    9,613
    5
    Dec 30, 2003
    Someplace
    I only have 1 Tivo and I've had this happen in the past, an upgraded version took care of it then, now out of the blue, nothing has changed here, the app started asking for the IP address of my Tivo.

    Since I only have the one I edited the IP address into the script, but it is weird that it just suddenly happens like this.
     
  17. jhimmel

    jhimmel New Member

    499
    0
    Dec 27, 2002
    That's pretty much what happened here. I can't think of anything that changed. Just all of a sudden, it started asking for address. I have looked around, but besides obvious network stuff (and it works fine once fed the address), I can't imagine where to look.

    Jim H.
     
  18. Sep 1, 2008 #238 of 692
    drivintin

    drivintin New Member

    2
    0
    Nov 15, 2007
    I really want to take a look at porting this over to S2 boxes. Can someone that has telnet shell access help me out here?

    From my understanding this is a daemon running that parses the telnet input into serial or IR commands. Can someone send me that file, and see if there are any related files that go with it.

    Thanks!
     
  19. Sep 1, 2008 #239 of 692
    Da Goon

    Da Goon Registered Abuser

    1,396
    0
    Oct 22, 2006
    it's not that simple. this is embedded within tivoapp. if you have a hacked S2, just use sendkeyplus (available from DDB).
     
  20. Sep 1, 2008 #240 of 692
    drivintin

    drivintin New Member

    2
    0
    Nov 15, 2007
    haha, well mostly i want to be able to interface it with the iPhone, since my wife can't seem to help but loose every damn remote. (but never looses her phone)

    do you know how in interacts with tivoapp? i thought it was actually interacting with the IR deamon.
     

Share This Page