pyTivo Discussion Forum Forum Index pyTivo Discussion Forum
Answers and the development of pyTivo a TiVo transcoding server
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Dual pyTivo servers, um, dueling

 
Post new topic   Reply to topic    pyTivo Discussion Forum Forum Index -> Support
 View previous topic :: View next topic  
Author Message
JonMikelV



Joined: 22 Feb 2008
Posts: 40

PostPosted: Tue Mar 04, 2008 9:05 pm    Post subject: Dual pyTivo servers, um, dueling Reply with quote

If I have pyTivo running on two different machines, my NPL seems to flip flop between showing one or the other, but not both. I've got each of them set up with a different port # but I noticed beacon.py line 84 says:
b.add_service('TiVoMediaServer:9032/http')

I found another hard coded 9032 in httpserver.py around line 128. Ditto for the versions in the plugins folders.

I'm not exactly sure what all the services stuff does yet, but do these 9032s actually affect what port is used or does "port = config.getPort()" in pyTivo.py actually control it?

Thanks.

Jon-Mikel
Back to top
View user's profile Send private message
krkeegan
Site Admin


Joined: 04 Jan 2008
Posts: 412
Location: Los Angeles, CA

PostPosted: Tue Mar 04, 2008 11:12 pm    Post subject: Reply with quote

Here is what you need:
http://pytivo.armooo.net/wiki/ConfigurepyTivo#guid
Back to top
View user's profile Send private message Visit poster's website
JonMikelV



Joined: 22 Feb 2008
Posts: 40

PostPosted: Wed Mar 05, 2008 1:47 pm    Post subject: Reply with quote

Thanks! Is there a reason it's a fixed # instead of random, or 6 chars of the start time in seconds, something that includes port #, or even last 6 of the IP?

I mean, I realize this is how the TiVo recognizes different devices but would there be a problem if the GUID changed with each startup of the service?

Thanks again!

Jon-Mikel
Back to top
View user's profile Send private message
wmcbrine



Joined: 04 Jan 2008
Posts: 514

PostPosted: Wed Mar 05, 2008 7:37 pm    Post subject: Reply with quote

I can't see how it would be a problem, no. I proposed this back when armooo was still around, but nothing came of it, and I guess I kinda forgot about it.

There is a weird effect that you can see sometimes if you stop pyTivo and start it up with a different GUID while you're still in the Now Playing List: the whole list starts to flicker. However, you can stop it just by moving the highlight bar off of the pyTivo shares.

_________________
My pyTivo fork
Back to top
View user's profile Send private message
krkeegan
Site Admin


Joined: 04 Jan 2008
Posts: 412
Location: Los Angeles, CA

PostPosted: Wed Mar 05, 2008 11:46 pm    Post subject: Reply with quote

I mean maybe the ideal solution would just be to have pyTivo generate a random six digit number and write it to the pyTivo.conf file if non exists.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    pyTivo Discussion Forum Forum Index -> Support All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
Site is in NO WAY affiliated with TiVo Inc

Powered by phpBB © 2001, 2005 phpBB Group
phpBB SEO
[ Time: 0.1823s ][ Queries: 13 (0.0996s) ][ Debug on ]