Re: Pushover Plugin - push notifications
Posted: Fri Nov 28, 2014 10:28 pm
OK took a very long time - but finally figured out how to send a pushover alert with python, so I removed my prior questions.
Here's my code for anyone else who is interested in replicating this
Here's my code for anyone else who is interested in replicating this
- Code: Select all
def sendAlert(alert, priority=0):
alertPlugin = indigo.server.getPlugin('io.thechad.indigoplugin.pushover')
if alertPlugin.isEnabled():
indigo.server.log('pushover plugin is available')
alertProps = { 'msgTitle' : 'Home automation server',
'msgBody' : alert,
'msgSound' : 'pushover',
'msgPriority' : priority,
'msgDevice' : '',
'msgSupLinkUrl' : '',
'msgSupLinkTitle': ''
}
alertPlugin.executeAction("send", props=alertProps)
else:
indigo.server.log('pushover plugin is not available')