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

pyTivoX

Discussion in 'TiVo Home Media Features & TiVoToGo' started by Yoav, Dec 10, 2008.

  1. Jan 25, 2009 #161 of 1437
    Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    Just to clarify, you were using pyTivoX before, installed the beta, and now it's not working? Before we try debugging it much, have you made any modifications to the pytivo.conf file? If not, can you just press the 'Apply' button and see if it fixes itself? For what it's worth, line 12 should be 'beacon=192.168.1.255'.. I don't believe any version of pyTivoX doesnt write that line correctly... so I'm not sure how that happened...

    Added note: I notice you have the application in a directory named pyTivoX-1.0.1. I'm not sure if that breaks anything, but it's definitely not needed. Generally, download the zip file, double-click on it. Open the new folder, and drag the application directly into the Applications folder... (don't drag the whole folder.. just the application).
     
  2. Jan 25, 2009 #162 of 1437
    NA9D

    NA9D New Member

    196
    0
    May 26, 2008
    Algonquin, IL
    I never had pyTivoX installed before. I did copy over the whole folder that pyTivoX was in after I extracted the zip file. So perhaps it's not expecting to be in that location?

    I looked at the config file but did not edit it...
     
  3. Jan 25, 2009 #163 of 1437
    Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    Well, try draggin the application out of that folder and into the main Applications folder (it REALLY shouldn't matter, but maybe it does). The more likely culprit is a bad config file though... Try hitting the 'restart' (if it's on the main release) or 'apply' button if on the beta and see if it fixes it?
     
  4. Jan 25, 2009 #164 of 1437
    NA9D

    NA9D New Member

    196
    0
    May 26, 2008
    Algonquin, IL
    I think I may have found the problem:

    Here was my config file w/o being edited:
    Code:
    # Created by pyTivoX, edits here WILL BE OVERWRITTEN
    
    [Admin]
    type=admin
    
    [Server]
    Port=9032
    
    ffmpeg=/Applications/pyTivoX.app/Contents/Resources/ffmpeg
    
    beacon=192.168.1.255
    192.168.1.255
    
    [iTivo]
    type=video
    path=/Volumes/Media/Video/iTivoDownloads
    
    [MPEG4]
    type=video
    path=/Volumes/Media/Video/MPEG4-H.264
    
    [My Share]
    type=video
    path=/Volumes/Barracuda/iTunes Video
    
    Look at the extra 192.168.1.255

    That was the way it came when I started it up...

    I removed that and now it appears to be working. But will a restart put that bad line back in?
     
  5. Jan 26, 2009 #165 of 1437
    Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    A click of the restart button would indeed re-break the file. However, you can always 'exit' and the run 'pyTivoX' again, and that will leave the file as-is.

    It looks like my method of detecting the beacon is failing for your setup. I'll put a fix in right now to just use one value (I assumed it always was). But I'm guessing there's something 'interesting' with your home network setup?

    Can you run the following command and in a Terminal.app and paste the results here?

    Code:
    ifconfig `route get default | sed -n -e 's/.*interface: \\(.*\\)/\\1/p'`
     
  6. Jan 26, 2009 #166 of 1437
    Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    Ok I just put up a new beta (1.1b6). It fixes the bug by forcing just one result for the beacon, and also has some new flags on streambaby (turns off h.264 aac as-is streaming, and streams using a higher quality audio bitrate). You'll need to hit 'apply' to generate the new config file...
     
  7. Jan 26, 2009 #167 of 1437
    NA9D

    NA9D New Member

    196
    0
    May 26, 2008
    Algonquin, IL
    Here you go:

    Code:
     ifconfig `route get default | sed -n -e 's/.*interface: \\(.*\\)/\\1/p'`
    en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
    	inet6 fe80::217:f2ff:fe02:4d82%en0 prefixlen 64 scopeid 0x4 
    	inet 192.168.1.10 netmask 0xffffff00 broadcast 192.168.1.255
    	inet 192.168.1.12 netmask 0xffffff00 broadcast 192.168.1.255
    	ether 00:17:f2:02:4d:82 
    	media: autoselect (1000baseT <full-duplex,flow-control>) status: active
    	supported media: autoselect 10baseT/UTP <half-duplex> 10baseT/UTP <full-duplex> 10baseT/UTP <full-duplex,hw-loopback> 10baseT/UTP <full-duplex,flow-control> 100baseTX <half-duplex> 100baseTX <full-duplex> 100baseTX <full-duplex,hw-loopback> 100baseTX <full-duplex,flow-control> 1000baseT <full-duplex> 1000baseT <full-duplex,hw-loopback> 1000baseT <full-duplex,flow-control>
    
    I do have two IP addresses assigned to this machine. Maybe that's it?
     
  8. Jan 26, 2009 #168 of 1437
    Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    Yep that was definitely it :). (The program is really designed for the most basic of setups). But anyways, with the change in the code I just pull out the first address and use it. So it should work for your setup.

    Not going to be perfect for everyone, but at least for those who know how to multi-home their machines, they probably also know how to edit config files, and can handle editting the config to fix it :).
     
  9. Jan 26, 2009 #169 of 1437
    westside_guy

    westside_guy Annoyingly ephemeral

    462
    1
    Mar 13, 2005
    The soggy...
    Well, I'm not sure this is always true. Running VMware gives you additional TCP/IP addresses, so a person who's not comfortable with editing a config file could still end up with a multi-homed computer.

    I'm not sure what you (as the developer) can do about that, though. :D
     
  10. Jan 26, 2009 #170 of 1437
    Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    Haha we're off on a huge tangent, but:
    Actually the reason there is this whole 'trying to figure out the right broadcast address' is because tools like parallels and vmware were generating additional interfaces/addresses on the computer.

    So pyTivo was sometimes trying to set up the beacon on the wrong address. I added some code to detect the default interface, and extract the broadcast address from that. For users with fusion or parallels, they still only have one IP address associated with the default route's network interface, and the code as written works.

    The reason it broke in the above situation is that the default interface was 'en1', and 'en1' had two broadcast addresses. Anyways, that was unexpected by me and it led to a bug. With the new beta code it will now just pull the first broadcast address, resolving this problem.

    Fwiw, that may still be buggy (the second address might be the right one for example). But I think for people in that situation, it is fair to tell them 'go manually fix the config file'.

    The logic chain is basically (you can run this in Terminal.app if you like):
    • route get default ;# extract the interface from this
    • ifconfig <interface> ;# extract the broadcast value from this
    Take only the first value.
     
  11. Jan 26, 2009 #171 of 1437
    westside_guy

    westside_guy Annoyingly ephemeral

    462
    1
    Mar 13, 2005
    The soggy...
    Oh yeah, I hope I didn't sound like I thought you needed to do more - in the end I have no doubt there'll always be at least a few cases where the end user still has to intervene. I just think that, even if the logical/fair solution is to tell the user to fix the config file, the user may not always have the level of understanding required.

    But certainly for the vast majority of Mac users you've made it extremely simple for them to get pyTivo running - which is pretty cool.
     
  12. Jan 26, 2009 #172 of 1437
    NA9D

    NA9D New Member

    196
    0
    May 26, 2008
    Algonquin, IL
    The reason I have two IPs on the same NIC is that one of them is used for hosting my website. So the NAT on the router sends all requests to my IP for www.na9d.net (my website) to the second IP on my MacPro. The first IP is actually associated with a different external IP address (I have a block of 5 fixed IPs).

    On the LAN it matters not what address is used. It's just for being able to NAT correctly from WAN to LAN that it matters.
     
  13. Jan 28, 2009 #173 of 1437
    raianoat

    raianoat TiVoBlog.com

    229
    0
    Jan 27, 2004
    For some reason I'm not able to get the Photo sharing feature to work within pyTiVoX. Whenever I try and access one of my photos it shows up as a broken image. I took a look at the log (/tmp/pyTivoX.log) and it shows that pyTiVo is throwing a 404 for all of my images. Any ideas?

     
  14. Jan 28, 2009 #174 of 1437
    raianoat

    raianoat TiVoBlog.com

    229
    0
    Jan 27, 2004
    BTW, I installed PIL (python image lib) and I think it is working based on the following info:

     
  15. Jan 28, 2009 #175 of 1437
    Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    I'll go try it out (to be honest, I've never bothered using pyTivo for music or photos...)
    Hopefully it's trivial to fix..
     
  16. Jan 29, 2009 #176 of 1437
    Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    Yep, It looks like pictures depends on PIL being installed, which in turn depends on a bunch of additional libraries (like libjpeg, libtiff, etc), most of which are installed if you use fink or ports, but none of which I can depend on.

    So, I think, for now, I'll disable gui support for photo media (since you're the first to even mention the bug, I suspect most people won't even notice). If you really want to be able to share photos, you can still manually edit the file in ~/Library/Application Support/pyTivoX/pytivo.conf and use that (and then you'll be responsible for installing PIL and all associated libraries).

    Not the best answer....
     
  17. Jan 29, 2009 #177 of 1437
    raianoat

    raianoat TiVoBlog.com

    229
    0
    Jan 27, 2004
    Thanks for trying this out. I had hoped to use pyTiVoX as a replacement for TD on my Mac. I guess I'll either have to get all the dependencies installed. I'll be sure to post back here if I get it working.
     
  18. Jan 29, 2009 #178 of 1437
    wmcbrine

    wmcbrine Ziphead

    10,364
    22
    Aug 2, 2003
    There were no dependencies when I installed PIL on my Mac. It was a nice simple package. I don't remember where I got it, but perhaps this will do:

    http://pythonmac.org/packages/py25-fat/index.html

    I have to say, I'm very disappointed to read that pyTivoX was released without testing photos or music.
     
  19. Jan 29, 2009 #179 of 1437
    pkscout

    pkscout Active Member

    3,928
    0
    Jan 10, 2003
    Honolulu, HI
    I tried the pyTiVo music and photos (when I had pyTiVo installed by hand) and really didn't like it. TiVo Desktop seemed to have much better options for dealing with playlists in iTunes. Just my two cents.
     
  20. Jan 29, 2009 #180 of 1437
    Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    Hey thanks for that link! Let me see if I can repackage the contents of that with pyTivoX...

    As for disappointment.. Sorry :).
     

Share This Page