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

Multiple Network Remotes

Discussion in 'TiVo Suggestion Avenue' started by TonyBlunt, May 16, 2014.

  1. eelton

    eelton Member

    104
    0
    Jun 10, 2001
    Chicago, IL
    Thanks, wmcbrine. This is fantastic. The app works great for me, allowing me to control the TiVo from two different tablets running iRule.
     
  2. TonyBlunt

    TonyBlunt Member

    33
    0
    Jan 27, 2014
    One issue, whenever the Tivo is restarted I have to reboot the Mac as well for the remotes to take effect, is there an easier way to maintain connection?
     
  3. telemark

    telemark New Member

    1,544
    0
    Nov 12, 2013
    I'll chime in some talking points...

    It's possible to put a retry that would attempt to connect after a Tivo restart, assuming its IP didn't change.

    A couple examples makes it debatable if this is the best way to handle it.

    What if the Tivo wasn't restarted but was switched off? Shouldn't the proxy exit instead of hanging around? Then how to tell the difference?

    Even if the Tivo's coming back, is it fair to the connected clients to accept commands that won't be sent out.

    Haven't fully thought it through, but I'm guessing it would be cleaner to exit whenever a Tivo goes missing. Then either external or internal controls should restart it (if desired) to a state of waiting around for a good broadcast.

    And disclaimer: my opinion doesn't matter, while wmcbrine's does.
     
  4. telemark

    telemark New Member

    1,544
    0
    Nov 12, 2013
    This is the smallest patch I could find against 0.5, that will cause rproxy to exit when it gets a network error back from the Tivo.

    If you set Lingon to "Always", rproxy should exit when the Tivo is back up, and Lingon will restart it.

    Turning off the Tivo for an extended time might eventually cause undesirable behavior on the Mac, as described earlier but really depends on how Lingon is written.
    Code:
    # diff ~/rproxy0.5/rproxy.py /usr/local/bin/rproxy.py 
    282,283c282,283
    <     thread.start_new_thread(status_update, (tivo, listeners, target, verbose))
    <     serve(queue, listeners, host_port)
    ---
    >     thread.start_new_thread(serve, (queue, listeners, host_port))
    >     status_update(tivo, listeners, target, verbose)
    Edited: a second patch that reintroduced KeyboardInterrupt detection
     
  5. wmcbrine

    wmcbrine Ziphead

    10,364
    22
    Aug 2, 2003
    These both make sense to me, so, that's what I've done now. :)

    http://wmcbrine.com/tivo/#rproxy

    Reconnecting is the default, similar to how it works in Network Remote. This doesn't (yet) work if the TiVo changes IP. To instead get telemark's behavior -- exit on disconnect -- specify "-x" when starting.

    This version also reports more info in verbose mode, and -- unless you specify the server port to use -- it will automatically try the next nine ports if 31339 is already bound. This makes it a little easier to proxy multiple TiVos from the same machine.
     
  6. tyd450

    tyd450 New Member

    21
    0
    Jul 21, 2014
  7. Jacksteraz

    Jacksteraz New Member

    1
    0
    Oct 9, 2014
    Do you think this program would run on a Raspberry pi or an NAS, for those of us that don't leave our computers on all the time?
     
  8. telemark

    telemark New Member

    1,544
    0
    Nov 12, 2013
    Yes, as long as they have python available, which if they're running linux should be available.
     
  9. jonstrasser

    jonstrasser New Member

    1
    0
    Nov 6, 2015
    Hi
    I'm a total newbie at TiVO but have been an irule user since it's inception.
    Do I just run this program on my mac, then point the rule IP to my mac's ip? also, what port do I use?
     
  10. wmcbrine

    wmcbrine Ziphead

    10,364
    22
    Aug 2, 2003
    Yes.

    31339 is the default.
     

Share This Page