hippojay / script.plexbmc.helper

PleXBMC Client Remote Helper
33 stars 30 forks source link

After wake up from suspend2ram the client gets not visible again, most times I tried #13

Open gdachs opened 9 years ago

gdachs commented 9 years ago

After wake up from suspend2ram the client gets not visible again for casting to it, most times I tried. Maybe it is possible to monitor the "OnWake" event with XBMCMonitor and restart the script?

gdachs commented 9 years ago

Forget what I wrote, it is nonsense. The Problem is that I start Kodi on boot before the network is ready. The Plex Helper doesn't get a connection to the server and this will, of course, not change on wake up after S3. I will use a sleep before starting Kodi.

It would be nice if the plex helper would try it harder to get a connection to the server, so that I don't need a sleep.

hippojay commented 9 years ago

Thanks - i'll be looking at the helper shortly as I'm going to be integrating it into the main plugin to allow better sharing of functions and data with plexbmc

On 4 June 2015 at 08:11, gdachs notifications@github.com wrote:

Forget what I wrote, it is nonsense. The Problem is that I start Kodi on boot before the network is ready. The Plex Helper doesn't get a connection to the server and this will, of course, not change on wake up after S3. I will use a sleep before starting Kodi.

It would be nice if the plex helper would try it harder to get a connection to the server, so that I don't need a sleep.

— Reply to this email directly or view it on GitHub https://github.com/hippojay/script.plexbmc.helper/issues/13#issuecomment-108760328 .

Dave

gdachs commented 9 years ago

Sorry for the late response. I understand why you want to integrate the script into the addon to eliminate duplicate code, but it will make me small problems. I use your script as a standalone application on my headless server. That means I wrote a wrapper in python that lets your script think that it is started by kodi. That allows me to choose my intel nuc as target for streaming without powering it on. Just in the moment when I start playing in the app my wrapper sends a WOL package to the nuc and proxies all requests to it when it is ready. Works just fine. Hopefully you will integrate the functionality modular enough so that I can recognize the files I need for my remote-plex-helper.