Example #1
0
class AlertPushBullet(BasicAlert):
    """<ac:image ac:thumbnail="true" ac:width="300">for AlertPushBullet. Get you api key from
    https://www.PushBullet.com/account

        Use the pyPushBullet API to know which deviceID to use.
    """

    def setup(self):
        self.push = PushBullet(self.config["apikey"])

    def send_notification(self, message):
        for device in self.config["device"]:
            self.push.pushNote(device, message, message)

    def get_device_id(self):
        print self.push.getDevices()
Example #2
0
 def setup(self):
     self.push = PushBullet(self.config["apikey"])