Easier to use pyTivo

Discussion in 'TiVo Coffee House - TiVo Discussion' started by Dan203, Jan 23, 2017.

  1. pshovest

    pshovest New Member

    14
    1
    Oct 1, 2019
    Here's the screen shot.
    I'm able to transfer .tivo file to my HD and can convert w/tivo-libre to .mp4 using the browser.

    upload_2020-2-14_17-29-24.png
     
    Last edited: Feb 14, 2020
  2. Dan203

    Dan203 Super Moderator Staff Member TCF Club

    49,125
    5,174
    Apr 17, 2000
    Nevada
    That is really strange. You don't have multiple versions of pyTivo running do you? Like did you ever install the old python version as a service or something?

    Desktop is literally just a fancier web page that pulls the exact same data as that page you screen shot. There is no reason at all I can think of that the page you posted would work and Desktop would not.
     
  3. ThAbtO

    ThAbtO TiVoholic by the bay TCF Club

    11,262
    826
    Apr 6, 2000
    SF Bay Area
    Please remove the MAK from your post. That (and lines below) should only for your discretion only under [server].

    I do not see:
    tivo_username = {your tivo.com login}
    tivo_password = [your tivo.com password}
     
  4. pshovest

    pshovest New Member

    14
    1
    Oct 1, 2019
    I'm not intentionally running multiple versions.
    Install didn't create any desktop icons. I created icon to run by launching "C:\Program Files (x86)\pyTivo\desktop\pyTivoDesktop.exe".
    I have experimented by running "C:\Program Files (x86)\pyTivo\pyTivo.exe"
    Which should I be running to launch pyTivo?
    Likewise don't know about python.
    I installed pyTivo1.6.16 got an "new version" msg and then uninstalled 1.16 and installed 1.6.23.
     
  5. ThAbtO

    ThAbtO TiVoholic by the bay TCF Club

    11,262
    826
    Apr 6, 2000
    SF Bay Area
    Your network (intranet) is mostly private and no one can access your Tivos from outside (internet), unless you have set some port forwarding in your router to direct to them.
     
  6. Dan203

    Dan203 Super Moderator Staff Member TCF Club

    49,125
    5,174
    Apr 17, 2000
    Nevada
    Run pytivo.exe

    That's the tray app. That will launch the actual pyTivo server in the background. You can double click the little tray icon to launch the desktop app.
     
  7. pshovest

    pshovest New Member

    14
    1
    Oct 1, 2019

    MAK removed.
    That's the complete tivo.conf file.
    Are username and PW supposed to be in .conf file?
     
  8. pshovest

    pshovest New Member

    14
    1
    Oct 1, 2019
    OK, I do get the tray icon. Not sure if this helps, but when I double click the tray icon to launch the desktop app, it immediately goes to settings. I've removed the MAK from the screen shot. Doesn't matter if I close or save, the underlying screen says "finding Tivos..." and it never find the Tivo.


    upload_2020-2-14_19-2-32.png
     
  9. Dan203

    Dan203 Super Moderator Staff Member TCF Club

    49,125
    5,174
    Apr 17, 2000
    Nevada
    OK so when it pops up settings like that it's because it can't communicate with the TiVos it's found and thinks the MAK is incorrect. So double check your MAK, reenter it into the box and Save.
     
  10. Dan203

    Dan203 Super Moderator Staff Member TCF Club

    49,125
    5,174
    Apr 17, 2000
    Nevada
    No. With what we're doing user name is 'tivo' and password is your MAK, that's all it needs. Back in the old days there was a feature that allowed you to push recordings from your PC to your TiVo and that required contacting the TiVo servers and logging into your account. That did require your user/password. But TiVo discontinued that feature a few years back so that was removed from pyTivo.
     
  11. pshovest

    pshovest New Member

    14
    1
    Oct 1, 2019
    I've done this several times with no effect. Just repeated with no effect.
    Why does the browser let me read the Tivo, I don't enter the MAK when I go to localhost:9032?
     
  12. ThAbtO

    ThAbtO TiVoholic by the bay TCF Club

    11,262
    826
    Apr 6, 2000
    SF Bay Area
    I assumed it needed the Tivo login credentials, but no longer. I still have mine set in the PyTivo (Not desktop).
     
  13. Dan203

    Dan203 Super Moderator Staff Member TCF Club

    49,125
    5,174
    Apr 17, 2000
    Nevada
    The browser is using the MAK from the config file.

    The Desktop app literally gets it's list of TiVos from pyTivo, which is what you're seeing in the browser. So I really don't understand what's going on here. It's literally calling the same function as that browser link and just asking for the data to be returned as JSON instead of an HTML page. There is absolutely no reason it shouldn't work. It makes 0 sense that the browser is working and the Desktop app is not.

    But just as a test, go to the network tab and change the port. 9033 should be fine. When it's done restarting pyTivo close the Desktop app, right click the tray icon and exit pyTivo. Reboot your PC. Now start pyTivo and try again.

    If that doesn’t work I'm stumped. All we could do next is call the URLs with the added param to request the JSON data and see what it's retuning. That can be a bit complicated to parse so if you don’t want to go that route I completely understand. This is suppose to be easy to use, but for some odd reason, really odd reason, it's not working on your PC.
     
  14. Mikeguy

    Mikeguy Well-Known Member

    25,968
    8,352
    Jul 28, 2005
    @Dan203, a while back I had mentioned to you that the pyTivo Desktop icon shows up on the Windows 10 taskbar as pretty small. When I was checking something on the taskbar earlier today, I noticed that this seems to have to do with how taskbar icons are displayed: when displayed in large form, the pyTivo Desktop icon shows as a full icon image, in a square with intervening coloring; but when displayed with the taskbar small icons option selected, the pyTivo Desktop icon somehow only shows the center image, without the square and intervening coloring (the reason why it is so much smaller and harder to see). Here are screen captures. This happens with other taskbar colorings as well.

    [​IMG] [​IMG]

    And just for completeness, here is how the icon appears on the Start menu (in square form with intervening coloring).

    [​IMG]

    I don't know if this is something that Windows does automatically with taskbar icons when the small icons option is selected (although it didn't change the neighboring Windows Update icon of any of the other icons) or if it is something in the pyTivo Desktop icon itself. Simply FYI.
     
  15. pshovest

    pshovest New Member

    14
    1
    Oct 1, 2019
    Changed port to 9033, no change. Browser w/Local host 9033 works just like 9032 does.
    Don't know if this helps, but Task manager shows multiple instances of pyTivo Processes running.

    upload_2020-2-15_7-50-39.png

    If you're willing to keep trying, I'll try to follow your instructions and run any diagnostic you propose.
    Thanks.
     
  16. Dan203

    Dan203 Super Moderator Staff Member TCF Club

    49,125
    5,174
    Apr 17, 2000
    Nevada
    There should be two of each, but not 3. So you have an extra version of desktop running there. The two of each is how the exe wrapper programs I use work. They run once to extract the contents to a temp folder than a second time to actually run them.

    Let me get back to you on the other stuff. It's been a while and I don’t remember the exact URL syntax to get pyTivo to spit out JSON. I need to look at the code.
     
  17. Dan203

    Dan203 Super Moderator Staff Member TCF Club

    49,125
    5,174
    Apr 17, 2000
    Nevada
    When you create an icon file you create 4 sizes. 256x256, 48x48, 32x32 and 16x16. In my file the first 3 have the square, the last does not. Typically windows will use either the 48x48 or 32x32 icon for desktop, start menu and taskbar icons depending on the PPI of your monitor. These days most are set to 92, rather than 72, so the 48x48 is usually used. The big one is only used in an Explorer folder when you have "large" icons turned on. The little one is typically only used for the upper left corner of the program next to the name. I had no idea it was also used when you had the taskbar set to use small icons. But with the square at that size the TiVo guy is unrecognizable with so few pixels so that's why it doesn't have a square.

    In a normal Windows program the tray icon would also use this 16x16 size, but because I'm using python an wxWidgets for the UI on that it loads each icon for on/off individually from a png file. But they're basically just duplicates of the 16x16 icon from that file.

    For the tile in the start menu I'm not sure how that works. I'm not at my computer right now so I'm not sure if that's normal or some setting you have. There are a couple of intermediate sizes that can be used in an icon file that I'm not using, maybe adding one of those would make that bigger, I'm not sure. Before Windows 10 those didn’t exist and I don't actually use them personally so I never really paid attention to them. (could be a problem for VideoReDo too and I don’t even know it)
     
  18. pshovest

    pshovest New Member

    14
    1
    Oct 1, 2019

    On startup I get the following....

    upload_2020-2-15_13-41-27.png


    After I right click on tray icon and launch pyTivo Desktop, (3) desktop processes showup in task manager. Not sure how to fix.

    upload_2020-2-15_13-43-45.png
     
  19. Dan203

    Dan203 Super Moderator Staff Member TCF Club

    49,125
    5,174
    Apr 17, 2000
    Nevada
    I could be wrong. I updated to a newer build of Electron when I updated a few versions back so maybe it launches 3 now. I'm not at my PC so I can't check, but I seriously doubt that's the issue. If it was that browser based Desktop would work.
     
  20. HerronScott

    HerronScott Well-Known Member

    7,178
    1,020
    Jan 1, 2002
    Staunton, VA
    Wow, I'm having the same exact issue as pshovest. I can see the shows on our Roamio Pro hitting pyTivo directly (localhost:9032) but pyTivo Desktop doesn't report any TiVo's found. Same results changing the port to 9033 as well.

    Note that it worked immediately after I installed pyTivo Desktop but stopped at some point after that. TiVo Desktop works fine on this Windows 10 laptop.

    Would love to get this working as well. :(

    Scott
     

Share This Page