Implement IFTTT notification option. PR #241.

This commit is contained in:
Tim van der Westhuizen 2015-10-22 16:04:31 +02:00
parent dc8996c4d2
commit 37bc68573c
4 changed files with 111 additions and 2 deletions

View file

@ -653,6 +653,16 @@ class WebInterface(object):
else:
return "Error sending tweet"
@cherrypy.expose
def test_ifttt(self):
cherrypy.response.headers['Cache-Control'] = "max-age=0,no-cache,no-store"
event = notifiers.IFTTT()
result = event.test()
if result:
return "Notification successful."
else:
return "Error sending event."
@cherrypy.expose
def osxnotifyregister(self, app):
cherrypy.response.headers['Cache-Control'] = "max-age=0,no-cache,no-store"