[RELEASE] Execute user scripts on specific XBMC actions (play starts/stops...)
Hi KenV99,

Advanced_WOL ist already installed and used by Kodi on my NUC - this way the idea with rsync is born...

But just this moment I found the ethtool in Openelec, has a switch for WOL.

Edit: Bad, only for setting the local port. - Searching continues.
Edit2: Just found this:

#!/usr/bin/env python
import socket
s=socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.setsockopt(socket.SOL_SOCKET, socket.SO_BROADCAST, 1)
s.sendto('\xff'*6+'\xQQ\xQQ\xQQ\xQQ\xQQ\xQQ'*16, ("255.255.255.255",9))

- It works perfectly!!!


If this works for me, then most problems have gone. Then I will write some shell-code for this job.
(looked into Python-doc -- puuuhh, some overkill I think)
Reply


Messages In This Thread
Great! - by gnorf - 2013-02-27, 22:50
[RELEASE] Pilulli Revisited - by KenV99 - 2014-06-28, 18:18
RE: [RELEASE] Execute user scripts on specific XBMC actions (play starts/stops...) - by wolfn48 - 2015-03-30, 09:52
Logout Mark Read Team Forum Stats Members Help
[RELEASE] Execute user scripts on specific XBMC actions (play starts/stops...)4