Wake on Lan

Posted on
Sun Jan 20, 2019 7:15 pm
ginganinja offline
Posts: 9
Joined: Jan 14, 2019

Wake on Lan

Hi All,

Was struggling with performing WakeOnLan functionality from within Indigo and found something I think is worth sharing.

It starts with the following piece of software, that is my favorite price, free!!!

http://www.readpixel.com/wakeonlan/

Download and install this on your Mac, now use their client software to test and troubleshoot your wake on lan functionality.

Once you get it working, you can then use Apple Script to call this app from within an Indigo Action Group.

Sample script:

tell application "WakeOnLan"
wakeup "192.168.4.135"
end tell

The other nice thing about this software is that I did a network sniff and basically the approach is to try about 6-7 different types of WakeOnLan signals (wonderful thing about standards is that there is so many to choose from). So your chance of getting it working is quite good.

Let me know if you have any questions/concerns, would be glad to help out.

Posted on
Tue Jan 22, 2019 7:05 am
DaveL17 offline
User avatar
Posts: 4886
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Wake on Lan

Interesting. I don't have a need for this, but thanks for sharing.

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Tue Jan 22, 2019 11:08 am
kw123 offline
User avatar
Posts: 6485
Joined: May 12, 2013
Location: Dallas, TX

Re: Wake on Lan

here a python version. No need to install anything
You can put this into an action script and replace MAC number with your device number and the IP number to your BroadCast # likely ends with .255 (192.168.0.255 etc)
Code: Select all
import socket

def sendWakewOnLan(MAC,ipN):
   data = ''.join(['FF' * 6, MAC.replace(':', '') * 16])
   sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
   sock.setsockopt(socket.SOL_SOCKET, socket.SO_BROADCAST, 1)
   sock.sendto(data.decode("hex"), (ipN, 9))

ipBC= "192.168.1.255"
mac = "12:34:56:78:AB:CD"
sendWakewOnLan(mac, ipBC)

Karl

Posted on
Wed Jan 23, 2019 8:16 am
ginganinja offline
Posts: 9
Joined: Jan 14, 2019

Re: Wake on Lan

Thanks Karl!

Agreed, I would rather call it straight from an action group. I'll give this a try and let you know how it works out.

RS

Posted on
Sat Jan 26, 2019 6:17 am
kw123 offline
User avatar
Posts: 6485
Joined: May 12, 2013
Location: Dallas, TX

Re: Wake on Lan

Ps. Fingscan as well as UniFi plugins have ping and wol as options to manage up/ downs of ip devices build in.


Sent from my iPhone using Tapatalk

Posted on
Mon Jan 28, 2019 10:47 pm
ginganinja offline
Posts: 9
Joined: Jan 14, 2019

Re: Wake on Lan

Karl,

I test out your script and it worked great.

Thanks for the tip.

I will look into the other plugin's as well, but the script is pretty easy/fast.

RS

Posted on
Mon Jan 28, 2019 11:04 pm
ginganinja offline
Posts: 9
Joined: Jan 14, 2019

Re: Wake on Lan

Turns out that i already had winremote plugin installed and totally missed that it has wakeonlan, am using that now.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest