Пример #1
0
 def radio_update5(self):
     host5 = __settings__.getSetting("mac5")
     self.radiobutton5.setSelected(self.status5)
     if host5 <> "":
         wake(host5)
         xbmc.log("PING Helper: Wake host with MAC:" + str(host5),
                  level=xbmc.LOGNOTICE)
         Note("name5")
Пример #2
0
 def radio_update4(self):
     host4 = __settings__.getSetting("mac4")
     self.radiobutton4.setSelected(self.status4)
     if host4 <> "":
         wake(host4)
         xbmc.log("PING Helper: Wake host with MAC:" + str(host4),
                  level=xbmc.LOGNOTICE)
         Note("name4")
Пример #3
0
 def radio_update3(self):
     host3 = __settings__.getSetting("mac3")
     self.radiobutton3.setSelected(self.status3)
     if host3 <> "":
         wake(host3)
         xbmc.log("PING Helper: Wake host with MAC:" + str(host3),
                  level=xbmc.LOGNOTICE)
         Note("name3")
Пример #4
0
 def radio_update2(self):
     host2 = __settings__.getSetting("mac2")
     self.radiobutton2.setSelected(self.status2)
     if host2 <> "":
         wake(host2)
         xbmc.log("PING Helper: Wake host with MAC:" + str(host2),
                  level=xbmc.LOGNOTICE)
         Note("name2")
Пример #5
0
 def radio_update1(self):
     host1 = __settings__.getSetting("mac1")
     self.radiobutton1.setSelected(self.status1)
     if host1 <> "":
         wake(host1)
         xbmc.log("PING Helper: Wake host with MAC:" + str(host1),
                  level=xbmc.LOGNOTICE)
         Note("name1")
Пример #6
0
    def __init__(self, action=''):
        host1 = __settings__.getSetting("mac1")
        host2 = __settings__.getSetting("mac2")
        host3 = __settings__.getSetting("mac3")
        host4 = __settings__.getSetting("mac4")
        host5 = __settings__.getSetting("mac5")

        try:
            if action == "wol1":
                if host1 <> "":
                    wake(host1)
                    xbmc.log("PING Helper: Wake host with MAC:" + str(host1),
                             level=xbmc.LOGNOTICE)
            elif action == "wol2":
                if host2 <> "":
                    wake(host2)
                    xbmc.log("PING Helper: Wake host with MAC:" + str(host2),
                             level=xbmc.LOGNOTICE)
            elif action == "wol3":
                if host3 <> "":
                    wake(host3)
                    xbmc.log("PING Helper: Wake host with MAC:" + str(host3),
                             level=xbmc.LOGNOTICE)
            elif action == "wol4":
                if host4 <> "":
                    wake(host4)
                    xbmc.log("PING Helper: Wake host with MAC:" + str(host4),
                             level=xbmc.LOGNOTICE)
            elif action == "wol5":
                if host5 <> "":
                    wake(host5)
                    xbmc.log("PING Helper: Wake host with MAC:" + str(host5),
                             level=xbmc.LOGNOTICE)

        except Exception as msg:
            xbmc.log("PING Helper:" + str(msg), level=xbmc.LOGNOTICE)