[HELP] OnScreensaverDeactivated
#1
I've just gotten a Raspberry Pi to use with XBMC, but normally I'd use Advanced Wake on Lan to wake up my media sever when XBMC and that's no longer possible with the Pi. So i've been looking around for an alternate and found 'OnScreensaverDeactivated'. I'm hoping this will be able to do what I want it to, which is, when I come to use XBMC on the Pi, it will stop the screensaver and wake up my server.

The problem is, is that i'm no coder and don't know how to put this together. I've been though this forum to see if I could figure out how to write something myself, or even better find that somebody else has already done it, but no joy. With trying to copy the layout of scripts from here and checking the debug log, I was able to write a script that didn't give me any errors, but I wasn't able to wake up my server.

I just don't know what i'm missing, or even if anything i've written is correct at all.


Code:
import xbmc

class wakeUp(xbmc.Monitor):
    while (not xbmc.abortRequested):
        def OnScreensaverDeactivated():
            xbmc.executebuiltin('XBMC.WakeOnLan(*MACAddress*)')
Reply

Logout Mark Read Team Forum Stats Members Help
[HELP] OnScreensaverDeactivated0