Need help with almost finished WOL service addon

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
stoffmann Offline
Junior Member
Posts: 29
Joined: Dec 2004
Reputation: 0
Location: Germany
Post: #1
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

  • ZOTAC IONITX-D-E Intel Atom N330 Dual Core 1.6 GHz NVIDIA ION
  • XBMC Live (Lucid) with Dharma Final on HDD
  • Harmony One,MS-Tech MS-1200 Case,Atric IR-Controller, WHS as Mediaserver
find quote
amet Offline
How do ya like them apples?
Posts: 3,938
Joined: Jul 2009
Reputation: 35
Location: Novi Sad / Dubai
Post: #2
Code:
xbmc.executebuiltin('WakeOnLan(%s)' % str(Addon.getSetting("mac")))

maybe that?


Always read the XBMC_Online_Manual,Frequently_Asked_Questions and search the forum before posting.
For troubleshooting and bug reporting use -> Log_file.
find quote
stoffmann Offline
Junior Member
Posts: 29
Joined: Dec 2004
Reputation: 0
Location: Germany
Post: #3
amet Wrote:
Code:
xbmc.executebuiltin('WakeOnLan(%s)' % str(Addon.getSetting("mac")))

maybe that?

Thanks for this. I will try it when I'm back home.

  • ZOTAC IONITX-D-E Intel Atom N330 Dual Core 1.6 GHz NVIDIA ION
  • XBMC Live (Lucid) with Dharma Final on HDD
  • Harmony One,MS-Tech MS-1200 Case,Atric IR-Controller, WHS as Mediaserver
find quote
stoffmann Offline
Junior Member
Posts: 29
Joined: Dec 2004
Reputation: 0
Location: Germany
Post: #4
Hurray! Now it works!

Thank You very much!

  • ZOTAC IONITX-D-E Intel Atom N330 Dual Core 1.6 GHz NVIDIA ION
  • XBMC Live (Lucid) with Dharma Final on HDD
  • Harmony One,MS-Tech MS-1200 Case,Atric IR-Controller, WHS as Mediaserver
find quote