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

Installing pyTivo on the Mac for Beginners

Discussion in 'TiVo Home Media Features & TiVoToGo' started by bareyb, Feb 21, 2012.

  1. Feb 22, 2012 #41 of 176
    Fofer

    Fofer XenForo Rocks! TCF Club

    82,126
    300
    Oct 29, 2000
    Yep, this is the crux. The fact is, all the AppleScript is doing is acting as a dumb launcher, sending a launch command. It's done after that. Indeed, the way AppleScript works is, it can send commands, but once you quit the AppleScript, it stops doing things.

    If you really want to dive in, here's some links/failed AppleScript attempts that might inspire:

    Still, that being said, you can't really use AppleScript in place of a pyTiVo GUI. At best you'll have to run a second AppleScript. Or maybe this is a job for Automator?

    -shrug-

    Which brings us full circle. If you want that kind of UI, why not just use PyTiVoX? Yes, it's abandonware, but the last beta works fine for me -- and I'm running Lion. I had to follow a few tips (in the PyTiVoX thread) but now it's working just dandy... with the same results as the "current" pyTiVo.
     
  2. Feb 22, 2012 #42 of 176
    ScottE22

    ScottE22 How YOU doin'?

    2,979
    0
    Sep 19, 2003
    Loveland, CO
    Thanks for the thorough tutorial, bareyb. I'm now more excited than ever for my return to the TiVo world with a new Premiere.
     
  3. Feb 22, 2012 #43 of 176
    gteague

    gteague golftango

    520
    0
    Apr 1, 2007
    dfw (euless)
    yes, my exact experience re pytivox, i had it working just fine. i just decided to go the separates route since most of those tools were being actively supported and now, tks to @bareby and the rest of you guys i know how to take all the components apart and put them back together. and i can run streambaby or pytivo as entirely separate processes and they can be updated separately, which is satisfying.

    /guy
     
  4. Feb 22, 2012 #44 of 176
    bareyb

    bareyb Under Maintenance TCF Club

    25,944
    8
    Dec 1, 2000
    Silicon Valley
    Well then, welcome back to the fold! The new Premiers are fantastic. I just got one myself. You will be an awesome test case for the Tutorial! Let us know how it goes and if it breaks down anywhere along the way for you. :)
     
  5. Feb 22, 2012 #45 of 176
    Wil

    Wil Senile Member

    4,115
    32
    Sep 26, 2002
    I still use it, and for 95% of my viewing I'm satisfied enough that I have not put in the effort to upgrade.

    I'm not even sure I have the latest PyTivoX (info says v1.3 8/27/2009) running on OS X 10.6.8. I don't think I even did any tweaking.

    But every once in awhile I get a a file that hesitates/stutters, or, more subtly, if you look at action sequences you can see some consistent frame skipping or something resulting in action not as smooth as it should be. I abort and use something like VLC to play these files, instead of the Tivo, but my wife has never really gotten into that switching.

    I also have the feeling that a more up to date ffmpeg might better recognize Tivo's playing capability and not transcode so many of the files, resulting in quicker transfers and smaller files on the Tivo.

    Are these the reasons you guys are moving forward from PyTivoX? If so, are you in fact getting better results in these areas?
     
  6. Feb 22, 2012 #46 of 176
    bareyb

    bareyb Under Maintenance TCF Club

    25,944
    8
    Dec 1, 2000
    Silicon Valley
    That's sort of why I got into this too. PyTivoX was working (sort of), but it's no longer getting updated, and is supposedly running an ancient version of pyTivo and ffmpeg. In fact, the first version of pyTivoX I tried was Transferring my HD Video in SD... :eek:

    It seems it did not recognize the new Premiere boxes and as such, defaults to Standard Def. Luckily I found a Beta version that wmcbrine put together that works with the new Premieres. So yeah, it's working again but for how long? I also must admit, I had a bit of a personal vendetta against pyTivo. :D

    I failed to get it working back in 2008 and I was REALLY wanting to find out why. Now that I've messed with both, I think pyTivo is probably the better App for my needs. I like that I can just stick videos and music in their regular folders and have my Tivos see them there.

    Fofer's little App is simply kick ass if you ask me. It's exactly what this thing needed. It launches the Terminal App (I like that better), it launches Safari (if it's not already), it launches pyTivo, and it launches the pyTivo Web Interface where you can quit, restart (thank you wmcbrine) or Shutdown as needed. It's simple and it works. I love it. :)
     
  7. Feb 22, 2012 #47 of 176
    Fofer

    Fofer XenForo Rocks! TCF Club

    82,126
    300
    Oct 29, 2000
    Cool, I am glad to have contributed! :)
     
  8. Feb 23, 2012 #48 of 176
    bareyb

    bareyb Under Maintenance TCF Club

    25,944
    8
    Dec 1, 2000
    Silicon Valley
    You're great to work with Fofer. You always turn the gear another notch... I wish I could replace my two business partners with two clones of YOU... We'd make a zillion dollars. :p
     
  9. Feb 23, 2012 #49 of 176
    ScottE22

    ScottE22 How YOU doin'?

    2,979
    0
    Sep 19, 2003
    Loveland, CO
    I store our media files on a HD attached to our family iMac - my kids use it primarily. They both have their own logins.

    With our current Roku setup, I usually login to the iMac and then use fast-user switching to put up the login window for the kids. That way my account has the little orange checkmark next to it and always stays logged in so that Plex Media Server (and a couple other servers) can be running which serves up our movies to the Roku. This is rarely a problem as long as I get myself logged in first whenever the iMac reboots.

    In setting up our new TiVo Premiere, I am wondering whether I could place the pyTiVo launch file into the /launchdaemons folder instead of /launchagents and have it launch on boot instead of on login. Admittedly, I don't have a very deep understanding of how UNIX logins and daemons work so I could be imagining a solution that won't work.

    It's certainly not a deal-breaker, but it would sure be nice not to have to worry about logging in my account any time we re-boot.

    Thoughts?
     
  10. Feb 23, 2012 #50 of 176
    bareyb

    bareyb Under Maintenance TCF Club

    25,944
    8
    Dec 1, 2000
    Silicon Valley
    There is a way to do what you describe (or at least I think there is) but it's beyond the scope of my knowledge at this point. You may want to post this over in the regular pyTivo thread. There's some guys over there who can point you to the right place.
     
  11. Feb 24, 2012 #51 of 176
    fluttersby8

    fluttersby8 New Member

    3
    0
    Nov 28, 2007
    First, thanks for all the useful info.

    I'm having trouble getting the .plist to function properly. The file looks precisely like the one you've posted, the path is correct (in fact, is identical to yours - I just copied/pasted), I've checked (several times) to make sure it's not a .txt or .rtf file. I reboot ... no joy.

    I use pyTivo all the time and intend to keep it running in the background. It works great when running it manually through Terminal, but having to restart it every time I reboot, and not having access to Terminal while it's running is getting really annoying. Any help would be greatly appreciated.

    Also ...
    Emphasis mine ... I assume this is a typo, and you meant "anything other than .plist"?
     
  12. Feb 24, 2012 #52 of 176
    fluttersby8

    fluttersby8 New Member

    3
    0
    Nov 28, 2007
    Yes, that was the first thing I checked - didn't work. Also, I think the fact that it doesn't show up in my NPL is a good indicator too, lol. As I said, it works perfectly when launched manually, so I know it's configured properly. I'm just not sure what's going on with the .plist.
     
  13. Feb 24, 2012 #53 of 176
    bareyb

    bareyb Under Maintenance TCF Club

    25,944
    8
    Dec 1, 2000
    Silicon Valley
    Bah! I probably should've tested it before I posted it. We'll get it working. We are packing up and leaving for home in a few minutes. In fact, I was just coming in here to shut down and pack the laptop. :p
     
  14. Feb 24, 2012 #54 of 176
    Iluvatar

    Iluvatar New Member

    377
    0
    Jul 22, 2006
    Apologies. I incorrectly typed the plist sample when I provided it to bareyb.

    This should work after updating and logoff/logon

    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    	<key>Label</key>
    	<string>pyTivo</string>
    	<key>ProgramArguments</key>
    	<array>
    		<string>python</string>
    		<string>/Applications/pyTivo/pyTivo.py</string>
    	</array>
    	<key>RunAtLoad</key>
    	<true/>
    </dict>
    </plist>
    
    
     
  15. Feb 24, 2012 #55 of 176
    fluttersby8

    fluttersby8 New Member

    3
    0
    Nov 28, 2007
    Excellent - that worked like a charm. Thanks so much.
     
  16. Feb 24, 2012 #56 of 176
    Iluvatar

    Iluvatar New Member

    377
    0
    Jul 22, 2006
    Great.

    The only downside to this method is pyTivo is not properly unloaded when logging off. The shares will eventually disappear from NPL on their own though after 5-10 min.
     
  17. Feb 24, 2012 #57 of 176
    bareyb

    bareyb Under Maintenance TCF Club

    25,944
    8
    Dec 1, 2000
    Silicon Valley
    Cool. Updated both websites with the updated Code. :up:

    ETA: Also updated the Pics...

    ETA2: Is there any way that "Run pyTivo in Background" could be an option added to the Web Interface? THAT would be awesome... Between including a copy of the pyTivo.conf file with the software, and doing THAT we could (almost) eliminate the need for this thread... :D
     
  18. Feb 24, 2012 #58 of 176
    bareyb

    bareyb Under Maintenance TCF Club

    25,944
    8
    Dec 1, 2000
    Silicon Valley
    @Iluvatar... I thought you said the new version of pyTivo didn't require Step four? I just downloaded it and there isn't any pyTivo.conf file in it... Did you mean something else? :)

    But now that I'm thinking about it... Why DOESN'T pyTivo just come with the pyTivo.conf file already in it? At least have it set up for Video any way... It's the SAME file for everyone right? Then why put us all through the hassle of having to create if from scratch every time??? Why not just put a copy in the pyTivo Software download? :confused:

    Couldn't I just skip all those directions in STEP FOUR and simply provide people with a completed pyTivo.conf file that they could just click on and download? Why are we making people create the basic pyTivo.conf file from scratch for every installation? More to the point, why not just include it in the package? What am I missing? :confused:
     
  19. Feb 24, 2012 #59 of 176
    Iluvatar

    Iluvatar New Member

    377
    0
    Jul 22, 2006
    It creates one if one doesn't exist. Rename your .conf file and open pyTivo to the WebAdmin settings. Change something like adding a share or whatever and it will create the pyTivo conf with those settings after saving.
     
  20. Feb 24, 2012 #60 of 176
    Iluvatar

    Iluvatar New Member

    377
    0
    Jul 22, 2006
    I wasn't around when that decision was made. Distributing with an xx.conf.dist file instead as an example for users is pretty common for GUI-less applications and scripts that provide lots of options.
     

Share This Page