Pushover Plugin - push notifications

This subforum holds the older topics about this plugin before it was moved to open source. It's locked and only provided as historical reference.
User avatar
jay (support)
Site Admin
Posts: 19202
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: Pushover Plugin - push notifications

Post 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.
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
User avatar
jay (support)
Site Admin
Posts: 19202
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: Pushover Plugin - push notifications

Post 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)!
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
User avatar
jay (support)
Site Admin
Posts: 19202
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: Pushover Plugin - push notifications

Post 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...
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
swisskent
Posts: 15
Joined: Sat May 16, 2009 4:43 pm

Re: Pushover Plugin - push notifications

Post 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.
jcs
Posts: 5
Joined: Wed Dec 13, 2017 10:15 pm

Re: Pushover Plugin - push notifications

Post 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.
User avatar
jay (support)
Site Admin
Posts: 19202
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: Pushover Plugin - push notifications

Post 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()
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
User avatar
roquej
Posts: 628
Joined: Sun Jan 04, 2015 4:56 pm
Location: South Florida, USA

Re: Pushover Plugin - push notifications

Post 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
jcs
Posts: 5
Joined: Wed Dec 13, 2017 10:15 pm

Re: Pushover Plugin - push notifications

Post 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?
User avatar
roquej
Posts: 628
Joined: Sun Jan 04, 2015 4:56 pm
Location: South Florida, USA

Re: Pushover Plugin - push notifications

Post by roquej »

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

JP
User avatar
haavarda
Posts: 702
Joined: Sat Aug 18, 2012 4:40 am
Location: Norway

Re: Pushover Plugin - push notifications

Post 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?
Håvard
CliveS
Posts: 858
Joined: Sun Jan 10, 2016 5:31 am
Location: Medomsley, County Durham, UK

Re: Pushover Plugin - push notifications

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

Indigo 2024.2.1 : macOS Sequoia 15.6.1 : 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
User avatar
jay (support)
Site Admin
Posts: 19202
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: Pushover Plugin - push notifications

Post 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).
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
User avatar
roquej
Posts: 628
Joined: Sun Jan 04, 2015 4:56 pm
Location: South Florida, USA

Re: Pushover Plugin - push notifications

Post 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
User avatar
haavarda
Posts: 702
Joined: Sat Aug 18, 2012 4:40 am
Location: Norway

Re: Pushover Plugin - push notifications

Post 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
Håvard
vtmikel
Posts: 710
Joined: Fri Aug 31, 2012 12:45 pm
Location: Boston, MA
Contact:

Re: Pushover Plugin - push notifications

Post 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
Locked

Return to “Archives”