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.
Pushover Notifications
Moderators: JRL, Dorian (MJT support)
- CyberCitizen
- Automation Wizard
- Posts: 724
- Joined: Sun Jun 20, 2004 7:06 am
- Location: Adelaide, South Australia
Pushover Notifications
FIREFIGHTER
Re: Pushover Notifications
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.
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.
- CyberCitizen
- Automation Wizard
- Posts: 724
- Joined: Sun Jun 20, 2004 7:06 am
- Location: Adelaide, South Australia
Re: Pushover Notifications
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.
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
- Grovkillen
- Automation Wizard
- Posts: 1132
- Joined: Fri Aug 10, 2012 2:38 pm
- Location: Bräcke, Sweden
- Contact:
Re: Pushover Notifications
Hi there!
I use this approach (remember to have SSL installed):
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!
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,,,,
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!
- CyberCitizen
- Automation Wizard
- Posts: 724
- Joined: Sun Jun 20, 2004 7:06 am
- Location: Adelaide, South Australia
- CyberCitizen
- Automation Wizard
- Posts: 724
- Joined: Sun Jun 20, 2004 7:06 am
- Location: Adelaide, South Australia
Re: Pushover Notifications
Grovkillen just wanted to say thank you. This is exactly what I was after.
FIREFIGHTER
- Grovkillen
- Automation Wizard
- Posts: 1132
- Joined: Fri Aug 10, 2012 2:38 pm
- Location: Bräcke, Sweden
- Contact:
Re: Pushover Notifications
Happy to help, thanks for letting me know.