fix wol
This commit is contained in:
parent
05ff2acaff
commit
d954f0c376
@ -31,12 +31,13 @@ class WOL(object):
|
|||||||
for device in data:
|
for device in data:
|
||||||
if device in self.devices:
|
if device in self.devices:
|
||||||
self.wakeDevice(self.devices[device])
|
self.wakeDevice(self.devices[device])
|
||||||
|
print(device)
|
||||||
|
print(self.devices[device])
|
||||||
|
|
||||||
##-----------------------------------------------------------------------------------##
|
##-----------------------------------------------------------------------------------##
|
||||||
def wakeDevice(self, device):
|
def wakeDevice(self, device):
|
||||||
##-----------------------------------------------------------------------------------##
|
##-----------------------------------------------------------------------------------##
|
||||||
if(device in self.devices):
|
print("Waking up Device: " + device + " mac: " + self.devices[device])
|
||||||
print("Waking up Device: " + device + " mac: " + self.devices[device])
|
wol.send_magic_packet(self.devices[device])
|
||||||
wol.send_magic_packet(self.devices[device])
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user