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.
jmdraper
Posts: 103
Joined: Thu Sep 11, 2014 3:49 pm
Location: Surrey, UK

Re: Pushover Plugin - push notifications

Post by jmdraper »

See further up the thread - you can use variable substitution. So for a variable you have already created just put the text %%v:12345%% anywhere in the title or message fields and it will be replaced by the value of the variable when the message is sent. Replace 12345 with your variable ID (go to the variables window, right-click on the variable and choose copy ID, then paste it into the field with %%v: and %% either side)
MeetKevin
Posts: 8
Joined: Sat Jul 04, 2015 7:10 pm

Re: Pushover Plugin - push notifications

Post by MeetKevin »

Wow, sweet -- thank you so much!! By the way, would you happen to know if I can create a variable from the title of an email?

E.g., I receive an email that says, "New House for Sale: 124 Main Street."

Variable created: "New House for Sale: 124 Main Street."
And then I can use that variable in my notification message.

Thanks so much again!!



Sent from my iPhone using Tapatalk
jmdraper
Posts: 103
Joined: Thu Sep 11, 2014 3:49 pm
Location: Surrey, UK

Re: Pushover Plugin - push notifications

Post by jmdraper »

I think you can do that with the Better Email plugin, though I've never used it myself:

http://forums.indigodomo.com/viewtopic. ... 11&t=14340
mortenkols
Posts: 198
Joined: Wed Oct 29, 2014 2:02 pm
Location: Norway

Re: Pushover Plugin - push notifications

Post by mortenkols »

i want to open an app called CamHi when i get a pushover notification. i have tried several urls; camhi:// - CamHi:// - but it dont work.
Any suggestions ?
Attachments
Skjermbilde 2017-03-07 kl. 20.25.54.png
Skjermbilde 2017-03-07 kl. 20.25.54.png (71.46 KiB) Viewed 6506 times
noefresh
Posts: 119
Joined: Tue Sep 10, 2013 7:41 pm

Re: Pushover Plugin - push notifications

Post by noefresh »

I get Debug notifications all over my log- is there any way to curtail these?

2017-05-01 07:35:00.328 Trigger GarageDoorVariablesSet
2017-05-01 07:35:00.329 Trigger GarageDoorClosePushoverNotify
2017-05-01 07:35:00.332 Pushover Debug Indigo Notification
2017-05-01 07:35:00.333 Pushover Debug Garage Door Closed
2017-05-01 07:35:00.333 Pushover Debug
2017-05-01 07:35:00.334 Pushover Debug
Japple55
Posts: 243
Joined: Sat Sep 26, 2015 2:54 pm
Location: NE Tennessee

Re: Pushover Plugin - push notifications

Post by Japple55 »

Hoping for an answer here too. What do these debug statements in the log mean, and Is there any way to suppress them? Upgraded to 1.1.5 and they continue. I don't see any debug config in the plugin. TIA

Pushover Debug
Pushover Debug Garage Door is CLOSED
Pushover Debug
Pushover Debug
2025 MacMini M4, 16gig RAM, 250 GB SSD
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) »

Edit the following file in the plugin:

Code: Select all

indigo-pushover.indigoPlugin/Contents/Server Plugin/plugin.py
(right click the plugin in the Finder and select Show Package Contents) and change this line (line #10) from:

Code: Select all

self.debug = True
to:

Code: Select all

self.debug = False
then reload the plugin. The plugin really needs the debug setting stored as a config property so that it can be turned on/off via a config dialog - but it currently doesn't.
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
Japple55
Posts: 243
Joined: Sat Sep 26, 2015 2:54 pm
Location: NE Tennessee

Re: Pushover Plugin - push notifications

Post by Japple55 »

Done! Thanks much, Jay!
2025 MacMini M4, 16gig RAM, 250 GB SSD
MarcoGT
Posts: 1140
Joined: Thu Sep 11, 2014 1:06 pm
Location: Germany

Re: Pushover Plugin - push notifications

Post by MarcoGT »

I use Pushover to send notification to iPhones we have to remind us to give drugs to our daughter,
As we do not have a fix time to give it, we can give it whenever we want during the day. We have a notification set at 9AM, but it could happen that at that time we are not at home.

I would like to respond to that notification saying "Yes, we gave it" or "No, we did not", how can I achieve this? Using URL? How?
If then we respond no, in the evening, a second notification will be sent out.
User avatar
racarter
Posts: 562
Joined: Sat Jun 18, 2016 4:23 am
Location: North Yorkshire, UK
Contact:

Re: Pushover Plugin - push notifications

Post by racarter »

@MarcoGT

Sounds like Pushover emergency priority might be what you need.

https://pushover.net/api#priority
MarcoGT
Posts: 1140
Joined: Thu Sep 11, 2014 1:06 pm
Location: Germany

Re: Pushover Plugin - push notifications

Post by MarcoGT »

Thanks, that's what I need, but I do not know if the "emergency" priority is implemented in the the plugin.
I will check it, thanks for the hint
jmdraper
Posts: 103
Joined: Thu Sep 11, 2014 3:49 pm
Location: Surrey, UK

Re: Pushover Plugin - push notifications

Post by jmdraper »

The plugin doesn’t implement this I don’t think. There are a few options:

1. You can set the URL in the Pushover message to one crafted using Indigo’s RESTful interface (http://wiki.indigodomo.com/doku.php?id= ... stful_urls) to, for example, toggle a true/false variable in Indigo. You can then schedule a repeat reminder that is suppressed if that variable is false, for example. The trouble with this approach is that without opening your Indigo server wide to everyone on the Internet there’s no way I know of doing this if the mobile device you receive the Pushover alert on is outside your home network at the time you click the link

2. What I have done is create a control page using Indigo touch which has a button on it to change a variable value, for example. So that page could ask whether you have given the drugs and have yes and no buttons which set a variable in indigo then proceed as above. You can then set the URL in your Pushover message to open that control page in the Indigo Touch app on the mobile device using the indigo touch URL scheme (http://wiki.indigodomo.com/doku.php?id= ... touch_urls). This has the advantage of working anywhere since Indigo Touch app uses your reflector subscription to connect back to your home network

3. A completely different approach I have also used is to use one of the 3rd party plugins to send iMessage alerts and receive responses and act on them. That way you can just reply yes or no to the text message arrives and Indigo will do the rest. It’s slick because iOS automatically suggests Yes or No in quick type when the content of the iMessage is a question with a binary yes/no question format like “Have you done X?”. If you want more info on that option let me know and I will dig it out for you.

Good luck!
Jon
siclark
Posts: 2282
Joined: Tue Jun 13, 2017 5:08 am
Location: UK

Re: Pushover Plugin - push notifications

Post by siclark »

Along with using variables in the message, is it possible to use device custom states as well? Would be easier than having to write the devices states to variables.

Thanks
User avatar
racarter
Posts: 562
Joined: Sat Jun 18, 2016 4:23 am
Location: North Yorkshire, UK
Contact:

Re: Pushover Plugin - push notifications

Post by racarter »

Simon

Yep. For example:

%%d:495962617:BatteryVoltage%%
davinci

Re: Pushover Plugin - push notifications

Post by davinci »

1.2.0 is broken:
Pushover Error Error in plugin execution ExecuteAction:

Traceback (most recent call last):
File "plugin.py", line 53, in send
KeyError: key msgUser not found in dict
I would have to open the message settings and save it, then it works. But this is too much trouble.

I guess this is because the user (which should be optional) has to be in the config. Even if it is empty. This behavior should be fixed.
Locked

Return to “Archives”