This commit is contained in:
Kai Wansart 2018-02-02 20:34:00 +01:00
parent 05ff2acaff
commit d954f0c376

View File

@ -31,11 +31,12 @@ 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])