Need help with almost finished WOL service addon - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26) +--- Thread: Need help with almost finished WOL service addon (/showthread.php?tid=112548) |
Need help with almost finished WOL service addon - stoffmann - 2011-10-16 Hello, 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: Code: xbmc.executebuiltin('WakeOnLan(40:61:86:02:ff:b4)') I tried the following: Code: xbmc.executebuiltin('WakeOnLan(' + str(Addon.getSetting("mac")) + ')') I can output the MAC into the logfile with this line: Code: xbmc.log("Send WOL package to " + str(Addon.getSetting("mac"))) Can someone please help me with this? Stefan - amet - 2011-10-16 Code: xbmc.executebuiltin('WakeOnLan(%s)' % str(Addon.getSetting("mac"))) maybe that? - stoffmann - 2011-10-17 amet Wrote: Thanks for this. I will try it when I'm back home. - stoffmann - 2011-10-17 Hurray! Now it works! Thank You very much! |