Kodi Community Forum

Full Version: Python newbie needs little help with xbmc service addon
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

i'm currently developing a wol service addon for xbmc. Unfortunately my python experience is very bad.

The service works when i hardcode the mac address in my script, but i wan't it to be configurable from the GUI. The GUI itself works too, but i don't know how to pass the parameter entered in the GUI into the WOL command.

The command working is:


I tried the following:

xbmc.executebuiltin('WakeOnLan(' + str(Addon.getSetting("mac")) + ')')

I can output the MAC into the logfile with this line:

xbmc.log("Send WOL package to " + str(Addon.getSetting("mac")))

Can someone please help me with this?

I close this thread, because i opened it again in the development forum http://forum.xbmc.org/showthread.php?tid=112548