parent
34d9415d6d
commit
466131198b
1 changed files with 1 additions and 2 deletions
|
@ -70,7 +70,6 @@ import urllib
|
||||||
class Pushover(object):
|
class Pushover(object):
|
||||||
''' Instantiates a pushover object, use it to send notifications '''
|
''' Instantiates a pushover object, use it to send notifications '''
|
||||||
base_uri = 'https://api.pushover.net'
|
base_uri = 'https://api.pushover.net'
|
||||||
port = 443
|
|
||||||
|
|
||||||
def __init__(self, module, user, token):
|
def __init__(self, module, user, token):
|
||||||
self.module = module
|
self.module = module
|
||||||
|
@ -80,7 +79,7 @@ class Pushover(object):
|
||||||
def run(self, priority, msg):
|
def run(self, priority, msg):
|
||||||
''' Do, whatever it is, we do. '''
|
''' Do, whatever it is, we do. '''
|
||||||
|
|
||||||
url = '%s:%s/1/messages.json' % (self.base_uri, self.port)
|
url = '%s/1/messages.json' % (self.base_uri)
|
||||||
|
|
||||||
# parse config
|
# parse config
|
||||||
options = dict(user=self.user,
|
options = dict(user=self.user,
|
||||||
|
|
Loading…
Reference in a new issue