|
| Author |
Message |
tigertime
Joined: 17 Jan 2008 Posts: 8
|
Posted: Thu Jan 17, 2008 2:07 am Post subject: Windows Sleep/Hibernate |
|
|
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 |
|
 |
wmcbrine

Joined: 04 Jan 2008 Posts: 2009 Location: Maryland
|
Posted: Thu Jan 17, 2008 3:47 am Post subject: |
|
|
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 |
|
 |
tigertime
Joined: 17 Jan 2008 Posts: 8
|
Posted: Thu Jan 17, 2008 3:40 pm Post subject: |
|
|
| 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 |
|
 |
wmcbrine

Joined: 04 Jan 2008 Posts: 2009 Location: Maryland
|
Posted: Fri Jan 18, 2008 12:18 am Post subject: |
|
|
| 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 |
|
 |
|