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 

Windows Sleep/Hibernate

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



Joined: 17 Jan 2008
Posts: 8

PostPosted: Thu Jan 17, 2008 2:07 am    Post subject: Windows Sleep/Hibernate Reply with quote

I'm getting the following error when my computer goes into sleep mode. I understand that the Tivo would lose it's connection if the computer is asleep, but I would think that when i wake up the computer that pyTivo would be able to recover.

-
Exception in thread Thread-231:
Traceback (most recent call last):
File "C:\Program Files\Python2.5\lib\threading.py", line 460, in __bootstrap
self.run()
File "C:\Program Files\Python2.5\lib\threading.py", line 625, in run
self.function(*self.args, **self.kwargs)
File "C:\Program Files\Other Programs\pyTivo208\beacon.py", line 49, in start
self.send_beacon()
File "C:\Program Files\Other Programs\pyTivo208\beacon.py", line 46, in send_b
eacon
self.UDPSock.sendto(self.format_beacon(), (beacon_ip, 2190))
error: (10065, 'No route to host')
Back to top
View user's profile Send private message
wmcbrine



Joined: 04 Jan 2008
Posts: 2009
Location: Maryland

PostPosted: Thu Jan 17, 2008 3:47 am    Post subject: Reply with quote

A good example of why I don't use sleep mode on my laptop. Not because of pyTivo, that is, but because not everything is able to recover. In this case, it looks like pyTivo is trying to send its beacon before the network connection has come back up.
_________________
My pyTivo fork . My page
Back to top
View user's profile Send private message Visit poster's website
tigertime



Joined: 17 Jan 2008
Posts: 8

PostPosted: Thu Jan 17, 2008 3:40 pm    Post subject: Reply with quote

wmcbrine wrote:
In this case, it looks like pyTivo is trying to send its beacon before the network connection has come back up.


Maybe put in a retry loop if the beacon fails? And keep trying every couple minutes. And if it fails after 10 trys then quit.

At any rate, this is the best software I've found for the TIVO. Thanks for all your work.
Back to top
View user's profile Send private message
wmcbrine



Joined: 04 Jan 2008
Posts: 2009
Location: Maryland

PostPosted: Fri Jan 18, 2008 12:18 am    Post subject: Reply with quote

tigertime wrote:
Maybe put in a retry loop if the beacon fails?

Yeah, it automatically resends the beacon once a minute, and this line is already within a try/except block... hmm... OK, I can see by the line numbers in your error message that you're using an old version that doesn't protect this line. You need to upgrade.

_________________
My pyTivo fork . My page
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
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

Get pytivo at SourceForge.net. Fast, secure and Free Open Source software downloads
[ Time: 0.1124s ][ Queries: 12 (0.0129s) ][ GZIP on - Debug on ]