Page 10 of 13

Re: Pushover Plugin - push notifications

PostPosted: Wed Feb 14, 2018 4:44 pm
by jay (support)
Apparently the last version the developer released has a bug. Another user has added an issue on GitHub with a potential solution but didn't issue a pull request with the fix. Because the plugin is open sourced, anyone is welcome to fix the bug in 1.2.0.

I recommend reverting back to 1.1.6 until the fix gets published.

swisskent wrote:
IMHO, the Pushover plugin should be a well-maintained Indigo default plugin.


Everyone believes that about their favorite/most critical 3rd party plugin. We created the 3rd party plugin mechanism so that other developers could add functionality because we just don't have the bandwidth to do it all. I guarantee that a lot more people would be unhappy if it took even longer for new Z-Wave devices to get supported. Or a REST API that includes plugin devices, or any of a hundred other things that people think are more important than Pushover.

Re: Pushover Plugin - push notifications

PostPosted: Wed Feb 14, 2018 4:59 pm
by jay (support)
Good news guys - GitHub user jcs (also a forum user) issued a pull request with the fix. I accepted it (on behalf of the developer), created a new release, and added it to the Plugin Store. It's listed as v1.2.2 (and is the latest release in the Plugin Store).

Happy Valentine's Day (and thanks @jcs)!

Re: Pushover Plugin - push notifications

PostPosted: Wed Feb 14, 2018 5:00 pm
by jay (support)
PS - @swisskent, apparently your forum email address is about to stop working (we got a bounce from you) so you probably should change it before it stops working...

Re: Pushover Plugin - push notifications

PostPosted: Wed Feb 14, 2018 7:27 pm
by swisskent
Thank you for resolving this issue!

Because notifications are such an important component of automation systems, I would like to request that native OS and iOS Notifications be included in a future release of Indigo.

Re: Pushover Plugin - push notifications

PostPosted: Wed Feb 14, 2018 9:04 pm
by jcs
Hi all, sorry I broke the previous version but it should be fixed now. (I only knew it was broken when I wasn't getting Pushover notifications myself when playing with a new device today, but I've subscribed to this topic in my RSS reader so I'll know sooner if things go wrong in the future.)

As for the delays in notifications with image attachments, those are actually due to the iOS app and not any Indigo issue. A new Pushover for iOS release is in beta testing that should make things a bit faster. I'm not well versed in Indigo's plugin architecture so I don't know if there is a formal way for other camera plugins to hand image data to the Pushover plugin, but adding the code to upload images should be pretty easy.

Re: Pushover Plugin - push notifications

PostPosted: Thu Feb 15, 2018 10:15 am
by jay (support)
swisskent wrote:
I would like to request that native OS and iOS Notifications be included in a future release of Indigo.


We include a plugin for Growl, which puts notifications into the Mac notification center and if you have the Prowl app installed on your iOS device it pushes notifications there as well.

Adding push notifications to Indigo Touch is on the feature request list as well.

You can do notifications to the notification center as well on your Mac with a simple script (requires Indigo 7.1):

Code: Select all
import applescript
notification_script = 'display notification "{}" with title "{}"'
title = "Some title here"
message = "Some message here, could come from variable or device, etc."
script_source = notification_script.format(message, title)
script = applescript.AppleScript(script_source)
script.run()

Re: Pushover Plugin - push notifications

PostPosted: Sat Feb 17, 2018 11:00 am
by roquej
Version 1.2.2 worked originally, then all of a sudden getting:

Pushover Error Error in plugin execution ExecuteAction:

Traceback (most recent call last):
File "plugin.py", line 56, in send
KeyError: key msgUser not found in dict

Had to go back to 1.1.6, which works without issues or changes in configuration.

Suggestions?

JP

Re: Pushover Plugin - push notifications

PostPosted: Sat Feb 17, 2018 11:18 am
by jcs
If you update to 1.2.2, then open the Trigger that tried to send that notification, then edit the Pushover action, and just hit Save, does it work after that?

Re: Pushover Plugin - push notifications

PostPosted: Sat Feb 17, 2018 4:08 pm
by roquej
Ok. the re-saved solved the issue. However, the fix doesn't work if use python to send messages.

JP

Re: Pushover Plugin - push notifications

PostPosted: Sun Feb 18, 2018 6:32 am
by haavarda
jcs wrote:
I'm not well versed in Indigo's plugin architecture so I don't know if there is a formal way for other camera plugins to hand image data to the Pushover plugin, but adding the code to upload images should be pretty easy.


I would assume that pointing to a file in finder would be the most common way to solve this? I have a trigger that stores a picture in a folder when triggered. With file path to this file I could send any image. Is this possible?

Re: Pushover Plugin - push notifications

PostPosted: Sun Feb 18, 2018 7:12 am
by CliveS
roquej wrote:
Ok. the re-saved solved the issue. However, the fix doesn't work if use python to send messages.

JP


If you are using the python code shown previously from this thread then just add the line

'msgUser' : 'YourUserKeyHere', as below

Code: Select all
priority = 0
alertPlugin = indigo.server.getPlugin('io.thechad.indigoplugin.pushover')
if alertPlugin.isEnabled():
   alertProps = {  'msgTitle'       :      'Window and Door Status',
               'msgUser'        :       'YourUserKeyHere',   
               'msgBody'        :       str(msg),
               'msgSound'       :      'pushover',
               'msgPriority'    :      priority,
               'msgDevice'      :      '',
               'msgSupLinkUrl'  :      '',
               'msgSupLinkTitle':      ''
                                    }
   alertPlugin.executeAction("send", props=alertProps)
else:
   indigo.server.log('pushover plugin is not available')


Works with 1.2.2 for sending all my window and door states if anyone of them is open when we go out.

Re: Pushover Plugin - push notifications

PostPosted: Sun Feb 18, 2018 11:52 am
by jay (support)
Version 1.3.0 has been published to the Plugin Store and includes an action to cancel emergency notification retries (thanks again @jcs for the contribution).

Re: Pushover Plugin - push notifications

PostPosted: Sun Feb 18, 2018 8:26 pm
by roquej
CliveS wrote:
roquej wrote:
Ok. the re-saved solved the issue. However, the fix doesn't work if use python to send messages.

JP


If you are using the python code shown previously from this thread then just add the line

'msgUser' : 'YourUserKeyHere', as below

Code: Select all
priority = 0
alertPlugin = indigo.server.getPlugin('io.thechad.indigoplugin.pushover')
if alertPlugin.isEnabled():
   alertProps = {  'msgTitle'       :      'Window and Door Status',
               'msgUser'        :       'YourUserKeyHere',   
               'msgBody'        :       str(msg),
               'msgSound'       :      'pushover',
               'msgPriority'    :      priority,
               'msgDevice'      :      '',
               'msgSupLinkUrl'  :      '',
               'msgSupLinkTitle':      ''
                                    }
   alertPlugin.executeAction("send", props=alertProps)
else:
   indigo.server.log('pushover plugin is not available')


Works with 1.2.2 for sending all my window and door states if anyone of them is open when we go out.


Worked great. Thank you!

JP

Re: Pushover Plugin - push notifications

PostPosted: Mon Feb 19, 2018 7:51 am
by haavarda
There is now a pull request on github that adds the possibility to send images. Any chance of a quick approval?


Sent from my iPhone using Tapatalk

Re: Pushover Plugin - push notifications

PostPosted: Mon Feb 19, 2018 7:54 am
by vtmikel
haavarda wrote:
There is now a pull request on github that adds the possibility to send images. Any chance of a quick approval?


Sent from my iPhone using Tapatalk


In the meantime, would be great if you could test. Grab it here: https://github.com/mlamoure/indigo-pushover