Pushover Plugin - push notifications

Posted on
Wed Feb 14, 2018 4:44 pm
jay (support) offline
Site Admin
User avatar
Posts: 18199
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Pushover Plugin - push notifications

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.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Wed Feb 14, 2018 4:59 pm
jay (support) offline
Site Admin
User avatar
Posts: 18199
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Pushover Plugin - push notifications

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)!

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Wed Feb 14, 2018 5:00 pm
jay (support) offline
Site Admin
User avatar
Posts: 18199
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Pushover Plugin - push notifications

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...

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Wed Feb 14, 2018 7:27 pm
swisskent offline
Posts: 15
Joined: May 16, 2009

Re: Pushover Plugin - push notifications

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.

Posted on
Wed Feb 14, 2018 9:04 pm
jcs offline
Posts: 5
Joined: Dec 13, 2017

Re: Pushover Plugin - push notifications

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.

Posted on
Thu Feb 15, 2018 10:15 am
jay (support) offline
Site Admin
User avatar
Posts: 18199
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Pushover Plugin - push notifications

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()

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Sat Feb 17, 2018 11:00 am
roquej offline
User avatar
Posts: 608
Joined: Jan 04, 2015
Location: South Florida, USA

Re: Pushover Plugin - push notifications

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

Posted on
Sat Feb 17, 2018 11:18 am
jcs offline
Posts: 5
Joined: Dec 13, 2017

Re: Pushover Plugin - push notifications

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?

Posted on
Sat Feb 17, 2018 4:08 pm
roquej offline
User avatar
Posts: 608
Joined: Jan 04, 2015
Location: South Florida, USA

Re: Pushover Plugin - push notifications

Ok. the re-saved solved the issue. However, the fix doesn't work if use python to send messages.

JP

Posted on
Sun Feb 18, 2018 6:32 am
haavarda offline
User avatar
Posts: 702
Joined: Aug 18, 2012
Location: Norway

Re: Pushover Plugin - push notifications

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?

Håvard

Posted on
Sun Feb 18, 2018 7:12 am
CliveS offline
Posts: 761
Joined: Jan 10, 2016
Location: Medomsley, County Durham, UK

Re: Pushover Plugin - push notifications

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.

CliveS

Indigo 2023.2.0 : macOS Ventura 13.6.3 : Mac Mini M2 : 8‑core CPU and 10‑core GPU : 8 GB : 256GB SSD
----------------------------------------------------------------------------------
The best way to get the right answer on the Internet is not to ask a question, it's to post the wrong answer

Posted on
Sun Feb 18, 2018 11:52 am
jay (support) offline
Site Admin
User avatar
Posts: 18199
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Pushover Plugin - push notifications

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).

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Sun Feb 18, 2018 8:26 pm
roquej offline
User avatar
Posts: 608
Joined: Jan 04, 2015
Location: South Florida, USA

Re: Pushover Plugin - push notifications

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

Posted on
Mon Feb 19, 2018 7:51 am
haavarda offline
User avatar
Posts: 702
Joined: Aug 18, 2012
Location: Norway

Re: Pushover Plugin - push notifications

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

Håvard

Posted on
Mon Feb 19, 2018 7:54 am
vtmikel offline
Posts: 628
Joined: Aug 31, 2012
Location: Boston, MA

Re: Pushover Plugin - push notifications

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

Page 10 of 15 1 ... 7, 8, 9, 10, 11, 12, 13 ... 15

Who is online

Users browsing this forum: No registered users and 0 guests

cron