Pushover Notifications

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
User avatar
CyberCitizen
Automation Wizard
Posts: 724
Joined: Sun Jun 20, 2004 7:06 am
Location: Adelaide, South Australia

Pushover Notifications

Post by CyberCitizen » Wed Oct 26, 2016 6:15 am

Hi Guys,

Just wondering if anyone has a script for Pushover Notifications that they would care to share to see how you're doing it etc. I was using NotifyMyAndroid for many years before it became abandonware.

So looking to use Pushover now, but can't use a simple HTTPRequest by the looks of it. Haven't had a big look yet, but thought I would pose the question in case someone has already looked into it.
FIREFIGHTER

User avatar
JRL
Automation Wizard
Posts: 3531
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Re: Pushover Notifications

Post by JRL » Wed Oct 26, 2016 1:15 pm

Assuming you are looking to send notifications to your phone from Macro Scheduler scripts you might be able to use plain old SMTPSendMail>. Depending on your phone carrier, you can probably send text messages to your phone via email thus using SMTPSendMail>. For US examples HERE is a chart and explanation. My phone carrier does not allow SMS or MMS but I do have email on the phone so I just send messages to that email address.

The way mine works is the Macro Scheduler script has a predefined state wherein I should be notified. The script sends an informational email to my phone's email address. The phone rings. I pick it up and read the message. This is all standard stuff. What is not standard is my script can then receive a specially formatted email from me and will perform an action per my instructions. Sorry, I don't have a generic example, but if you think about it, its easy to do. Only serious caveat is you have to be able to create an email account the script can access.

Script goes into a loop waiting for Pop3 result.
Email message body contains command as specially formatted text.
Script reads the text then uses IncludeFromVar> to process the command.
Script then proceeds doing what it was doing.

User avatar
CyberCitizen
Automation Wizard
Posts: 724
Joined: Sun Jun 20, 2004 7:06 am
Location: Adelaide, South Australia

Re: Pushover Notifications

Post by CyberCitizen » Wed Oct 26, 2016 10:16 pm

My carrier is the same regarding email to SMS unless your willing to pay more.

The reason I wanted to use pushover was the multiple alert options you have with different tones etc. Great for outage alerts or just about anything you can dream up.

The issue with email which I have been using is I get to much already on the mobile device. Which makes it hard to filter out what is urgent and what isn't.

All good it appears that no one is using it so I will look at writing something to handle notifications.
FIREFIGHTER

User avatar
Grovkillen
Automation Wizard
Posts: 1132
Joined: Fri Aug 10, 2012 2:38 pm
Location: Bräcke, Sweden
Contact:

Re: Pushover Notifications

Post by Grovkillen » Fri Oct 28, 2016 8:37 am

Hi there!

I use this approach (remember to have SSL installed):

Code: Select all

Let>TOKENno=############
Let>USERno=############
Let>DEVICEno=
Let>MESSAGEno=
Let>POST_DATA=token=%TOKENno%&user=%USERno%&device=%DEVICEno%&message=%MESSAGEno%
Let>HTTP_SSL=1
HTTPRequest>https://api.pushover.net/1/messages.json,,POST,POST_DATA,strHTML,,,,
Where the token is the api-key for your app/script, the user-key is the key for your login/user and the device is the name of the device(s) to send to.

You may have more stuff/variables to send just add them to the POST_DATA.

PS. if the script is not compiled you may do the full install of OpenSSL (Win32 OpenSSL v1.1.0b)

PS2. DEVICEno may be left empty if you only have one device in the list on your Pushover-dashboard!
Let>ME=%Script%

Running: 15.0.27
version history

User avatar
CyberCitizen
Automation Wizard
Posts: 724
Joined: Sun Jun 20, 2004 7:06 am
Location: Adelaide, South Australia

Re: Pushover Notifications

Post by CyberCitizen » Fri Oct 28, 2016 9:46 pm

Thank you, I will give this a try
FIREFIGHTER

User avatar
CyberCitizen
Automation Wizard
Posts: 724
Joined: Sun Jun 20, 2004 7:06 am
Location: Adelaide, South Australia

Re: Pushover Notifications

Post by CyberCitizen » Sun Nov 06, 2016 7:19 am

Grovkillen just wanted to say thank you. This is exactly what I was after.
FIREFIGHTER

User avatar
Grovkillen
Automation Wizard
Posts: 1132
Joined: Fri Aug 10, 2012 2:38 pm
Location: Bräcke, Sweden
Contact:

Re: Pushover Notifications

Post by Grovkillen » Sun Nov 06, 2016 11:47 am

Happy to help, thanks for letting me know.
Let>ME=%Script%

Running: 15.0.27
version history

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts