Send Pushover notifications with pictures and hyperlinks

dohat leku

Getting the hang of it
Joined
May 19, 2018
Messages
342
Reaction score
36
Location
usa
Got it, btw what's the reason one has to click on a notification for the image to appear. Why not appear immediately? Is that a pushover limitation?
 

jaydeel

BIT Beta Team
Joined
Nov 9, 2016
Messages
1,302
Reaction score
1,362
Location
SF Bay Area
Last edited:

dohat leku

Getting the hang of it
Joined
May 19, 2018
Messages
342
Reaction score
36
Location
usa
I put the priority=1 syntax in but messages are still being delivered as normal priority.
Code:
https://api.pushover.net/1/messages.json -s --form-string "token=%996" --form-string "user=%997" --form-string "message=<b>&CAM</b> &MEMO" -F "attachment=@C:\BlueIris\Alerts\&ALERT_PATH" <a href='&WAN/alerts/&ALERT_DB?fulljpeg'>Hi-Res</a> <a href='&WAN/ui3.htm?rec=&ALERT_DB'>UI3</a>" --form-string "html=1" --form-string "device=%998" --form-string "priority=1"
How I tested: Put iphone in sleep mode, did a manual priority 1 push from pushover's website and my phone does beep and shows a time sensisitive notification. Then I walk near the camera and no beep but I do see the pushover notification under 'While in sleep focus'. In pushover's guide, it says High-priority messages are highlighted in red in the device clients and it's not red in the pushover app
 

jaydeel

BIT Beta Team
Joined
Nov 9, 2016
Messages
1,302
Reaction score
1,362
Location
SF Bay Area
I put the priority=1 syntax in but messages are still being delivered as normal priority.
Code:
https://api.pushover.net/1/messages.json -s --form-string "token=%996" --form-string "user=%997" --form-string "message=<b>&CAM</b> &MEMO" -F "attachment=@C:\BlueIris\Alerts\&ALERT_PATH" <a href='&WAN/alerts/&ALERT_DB?fulljpeg'>Hi-Res</a> <a href='&WAN/ui3.htm?rec=&ALERT_DB'>UI3</a>" --form-string "html=1" --form-string "device=%998" --form-string "priority=1"
How I tested: Put iphone in sleep mode, did a manual priority 1 push from pushover's website and my phone does beep and shows a time sensisitive notification. Then I walk near the camera and no beep but I do see the pushover notification under 'While in sleep focus'. In pushover's guide, it says High-priority messages are highlighted in red in the device clients and it's not red in the pushover app
Suggestions:
1. iPhone Settings > Notifications > Pushover > Enable ‘Time Sensitive Notifications’
2. Pushover App > Settings (gear icon) > ‘Quiet Hours’ …. review settings

Other users may have better suggestions (I don’t use an iPhone routinely but have one for testing).
 

dohat leku

Getting the hang of it
Joined
May 19, 2018
Messages
342
Reaction score
36
Location
usa
checked all those settings and also enabled 'critical alerts for high-priorioty'. How do I check if curl is actually generating a priority 1 alert?
Also is it worthwhile moving --form-string "priority=1" to earlier in the syntax or the order doesn't matter?
 

jaydeel

BIT Beta Team
Joined
Nov 9, 2016
Messages
1,302
Reaction score
1,362
Location
SF Bay Area
checked all those settings and also enabled 'critical alerts for high-priorioty'. How do I check if curl is actually generating a priority 1 alert?
Also is it worthwhile moving --form-string "priority=1" to earlier in the syntax or the order doesn't matter?
Parameter order should not matter.

I've previously suggested how you can capture the exact syntax that was sent by Blue Iris to the Pushover API (example). See also post #1 section 'Debugging'. It's not as much work as it may first appear.

To examine the Pushover API's response from this captured syntax, see post #1 section 'Testing using the Windows Command Prompt'.
 
Last edited:

dohat leku

Getting the hang of it
Joined
May 19, 2018
Messages
342
Reaction score
36
Location
usa
Was really hoping this would be the case but unfortunately not, stil have that issue. I have to try the other troubleshooting steps jaydeel laid out. My pushover app and the pushover service and the phone settings are all correct because when I do a priority 1 alert from their website, it comes through consistently. So it's something at the blue iris or curl end
 

dohat leku

Getting the hang of it
Joined
May 19, 2018
Messages
342
Reaction score
36
Location
usa
ye!!! got it working, All i did was move this to the beginning- --form-string "priority=1" instead of the end
Here's the syntax that's working well now and it's showing the alert with a red box around it on the app
Code:
https://api.pushover.net/1/messages.json -s  --form-string "priority=1" --form-string "token=%996" --form-string "user=%997" --form-string "message=<b>&CAM</b> &MEMO" -F "attachment=@C:\BlueIris\Alerts\&ALERT_PATH" <a href='&WAN/alerts/&ALERT_DB?fulljpeg'>Hi-Res</a> <a href='&WAN/ui3.htm?rec=&ALERT_DB'>UI3</a>" --form-string "html=1" --form-string "device=%998"
 

jaydeel

BIT Beta Team
Joined
Nov 9, 2016
Messages
1,302
Reaction score
1,362
Location
SF Bay Area
ye!!! got it working, All i did was move this to the beginning- --form-string "priority=1" instead of the end
Here's the syntax that's working well now and it's showing the alert with a red box around it on the app
Code:
https://api.pushover.net/1/messages.json -s  --form-string "priority=1" --form-string "token=%996" --form-string "user=%997" --form-string "message=<b>&CAM</b> &MEMO" -F "attachment=@C:\BlueIris\Alerts\&ALERT_PATH" <a href='&WAN/alerts/&ALERT_DB?fulljpeg'>Hi-Res</a> <a href='&WAN/ui3.htm?rec=&ALERT_DB'>UI3</a>" --form-string "html=1" --form-string "device=%998"
It only works because the priority parameter was re-positioned prior to a syntax error.

The syntax is easier to debug if you copy the code to a text editor and insert new lines before each parameter, like this...
Code:
https://api.pushover.net/1/messages.json -s
--form-string "priority=1"
--form-string "token=%996" --form-string "user=%997"
--form-string "message=<b>&CAM</b> &MEMO"
-F "attachment=@C:\BlueIris\Alerts\&ALERT_PATH"
<a href='&WAN/alerts/&ALERT_DB?fulljpeg'>Hi-Res</a> <a href='&WAN/ui3.htm?rec=&ALERT_DB'>UI3</a>"
--form-string "html=1"
--form-string "device=%998"
Note that once again, the hyperlink code bits are orphaned (<a href='...'</a>) from the message parameter. And there exists a stray double-quote after the existing hyperlink code that must be deleted.

The code in the 3rd-to-last line, excluding the terminating double-quote, <a href='&WAN/alerts/&ALERT_DB?fulljpeg'>Hi-Res</a> <a href='&WAN/ui3.htm?rec=&ALERT_DB'>UI3</a>, must be relocated to the end of the message parameter (before the terminating double-quote).

Pay attention to syntax! If something's not working, trying breaking it down to smaller, easier to inspect pieces.
 
Last edited:

dohat leku

Getting the hang of it
Joined
May 19, 2018
Messages
342
Reaction score
36
Location
usa
Thanks for clarifying once again. I was using notepad, switched to sublime text and hopefully things are better. I also copied the syntax directly from your code block this time and everything is working including priority. I need to add notifications to one more user so will add to the syntax but I'll make sure I add anything else to the end. One small request for future users - if there's a GUI tool that's fairly easy to develop and just gives an output of a syntax one can copy/paste, that could be useful. But totally understand your time is valuable and you are providing a free service here and very grateful for that - thanks!

This is working well right now including the HTML links

Code:
https://api.pushover.net/1/messages.json -s --form-string "token=%996" --form-string "user=%997" --form-string "message=<b>&CAM</b> &MEMO <a href='&WAN/alerts/&ALERT_DB?fulljpeg'>Hi-Res</a> <a href='&WAN/ui3.htm?rec=&ALERT_DB'>UI3</a>" -F "attachment=@C:\BlueIris\Alerts\&ALERT_PATH" --form-string "html=1" --form-string "device=%998" --form-string "priority=1"
 

jaydeel

BIT Beta Team
Joined
Nov 9, 2016
Messages
1,302
Reaction score
1,362
Location
SF Bay Area
I was using notepad, switched to sublime text
I use Notepad++. It does not require a paid license, as Sublime Text appears too (I had never heard of the Sublime editor before now).

One small request for future users - if there's a GUI tool that's fairly easy to develop and just gives an output of a syntax one can copy/paste, that could be useful.
The request may be small, but from first hand experience, the effort required is not, haha... I've already got a working template from another project that I could start with, but I still think my time is better served by helping users directly.
 
Last edited:

dohat leku

Getting the hang of it
Joined
May 19, 2018
Messages
342
Reaction score
36
Location
usa
I use Notepad++. It does not require a paid license, as Sublime Text appears too (I had never heard of the Sublime editor before now).


The request may be small, but from first hand experience, the effort required is not, haha... I've already got a working template from another project that I could start with, but I still think my time is better served by helping users directly.
Understood, thanks and I’ll try notepad++ as well
 
Joined
Jun 15, 2024
Messages
1
Reaction score
1
Location
USA
For IOS users who have added UI3 to their homepage as an app, has anyone found a way to have the links from Pushover open the links in the app? I cannot find a way so they always open in Safari browser rather than the less cluttered webapp I added to my home screen.
 
Joined
Sep 7, 2020
Messages
4
Reaction score
0
Location
Pennsylvania, USA
Kudos to @jaydeel for creating this thread. This makes all the difference in getting timely Blue Iris notifications.

Is it possible to get a notification with two hyperlinks,based on example 2 on the first page. One hyperlink to the stream alert and one to the live stream of the camera. I can get either to work when the parameter string contains one or the other, but if I include both in the parameter string only the second one in the string works. I'd like to use the example 2 setup because when the notification arrives, there is a button when touched that directly opens to ui3, without actually having to open the notification itself. I'm trying to get two buttons to appear so I can select Stream Alert, or Live stream directly without having to actually open the notification itself. I hope all this makes sense. I know syntax is critical. I've tried to be sure it is correct, but I'm just fumbling around in the dark here.

Screenshot_20240728_110157_Nova Launcher.jpg

This works for a Live Stream hyperlink.

Code:
https://api.pushover.net/1/messages.json -s --form-string "token=%996" --form-string "user=%998" --form-string "message=<b>&CAM</b> &MEMO" --form-string "html=1" --form-string "device=%997" --form-string "sound=%980" --form-string "url_title=Live Stream" --form-string "url=&WAN/ui3.htm?cam=&CAM" -F "attachment=@C:\BlueIris\Alerts\&ALERT_PATH"

This works for a Stream Alert hyperlink.

Code:
https://api.pushover.net/1/messages.json -s --form-string "token=%996" --form-string "user=%998" --form-string "message=<b>&CAM</b> &MEMO" --form-string "html=1" --form-string "device=%997" --form-string "sound=%980" --form-string "url_title=Stream Alert" --form-string "url=&WAN/ui3.htm?rec=&ALERT_DB" -F "attachment=@C:\BlueIris\Alerts\&ALERT_PATH"

This one only works for the Stream Alert hyperlink. If I switch the positions in the parameter string then only the Live Stream works.

Code:
https://api.pushover.net/1/messages.json -s --form-string "token=%996" --form-string "user=%998" --form-string "message=<b>&CAM</b> &MEMO" --form-string "html=1" --form-string "device=%997" --form-string "sound=%980" --form-string "url_title=Live Stream" --form-string "url=&WAN/ui3.htm?cam=&CAM" --form-string "url_title=Stream Alert via UI3" --form-string "url=&WAN/ui3.htm?rec=&ALERT_DB" -F "attachment=@C:\BlueIris\Alerts\&ALERT_PATH"
 

jaydeel

BIT Beta Team
Joined
Nov 9, 2016
Messages
1,302
Reaction score
1,362
Location
SF Bay Area
Kudos to @jaydeel for creating this thread. This makes all the difference in getting timely Blue Iris notifications.

Is it possible to get a notification with two hyperlinks,based on example 2 on the first page. One hyperlink to the stream alert and one to the live stream of the camera. I can get either to work when the parameter string contains one or the other, but if I include both in the parameter string only the second one in the string works. I'd like to use the example 2 setup because when the notification arrives, there is a button when touched that directly opens to ui3, without actually having to open the notification itself. I'm trying to get two buttons to appear so I can select Stream Alert, or Live stream directly without having to actually open the notification itself. I hope all this makes sense. I know syntax is critical. I've tried to be sure it is correct, but I'm just fumbling around in the dark here.

View attachment 199780

This works for a Live Stream hyperlink.

Code:
https://api.pushover.net/1/messages.json -s --form-string "token=%996" --form-string "user=%998" --form-string "message=<b>&CAM</b> &MEMO" --form-string "html=1" --form-string "device=%997" --form-string "sound=%980" --form-string "url_title=Live Stream" --form-string "url=&WAN/ui3.htm?cam=&CAM" -F "attachment=@C:\BlueIris\Alerts\&ALERT_PATH"

This works for a Stream Alert hyperlink.

Code:
https://api.pushover.net/1/messages.json -s --form-string "token=%996" --form-string "user=%998" --form-string "message=<b>&CAM</b> &MEMO" --form-string "html=1" --form-string "device=%997" --form-string "sound=%980" --form-string "url_title=Stream Alert" --form-string "url=&WAN/ui3.htm?rec=&ALERT_DB" -F "attachment=@C:\BlueIris\Alerts\&ALERT_PATH"

This one only works for the Stream Alert hyperlink. If I switch the positions in the parameter string then only the Live Stream works.

Code:
https://api.pushover.net/1/messages.json -s --form-string "token=%996" --form-string "user=%998" --form-string "message=<b>&CAM</b> &MEMO" --form-string "html=1" --form-string "device=%997" --form-string "sound=%980" --form-string "url_title=Live Stream" --form-string "url=&WAN/ui3.htm?cam=&CAM" --form-string "url_title=Stream Alert via UI3" --form-string "url=&WAN/ui3.htm?rec=&ALERT_DB" -F "attachment=@C:\BlueIris\Alerts\&ALERT_PATH"
The Pushover API calls these ‘Supplementary URLs’. Reviewing the syntax at this link offers no clues for sending more than one supplementary URL per notification.

It is worth noting that some of the other API arguments that support multiple values use a comma delimiter (e.g., device=iphone,nexus5. So you might give that a try.

When an argument is used multiple times, only the last one is used. I think this makes sense.
 

jaydeel

BIT Beta Team
Joined
Nov 9, 2016
Messages
1,302
Reaction score
1,362
Location
SF Bay Area
I searched the Pushover Knowledge Base and found one post that may be asking for the same thing. It’s 7 months old and hasn’t yet been declined.

You can submit your own request using the ‘Share an Idea’ link provided at the bottom of the Knowledge Base link above.
 
Last edited:
Joined
Sep 7, 2020
Messages
4
Reaction score
0
Location
Pennsylvania, USA
Thank you for your responses. I will try the comma delimiter, somehow I missed that, didn't think of it when I did review the ‘Supplementary URLs’ page, I will look closer. I will look into the ‘Share an Idea’ as well. I will report back if any progress is made. Thanks again.
 

dohat leku

Getting the hang of it
Joined
May 19, 2018
Messages
342
Reaction score
36
Location
usa
Can you share your results when successful? I'm assuming you want the 2nd link to obviously open the blue iris mobile app - are you on IOS or android?
 
Joined
Sep 7, 2020
Messages
4
Reaction score
0
Location
Pennsylvania, USA
I'm using Android. My thought is to have two links, one would open ui3 directly to the stream alert clip, the other to the live stream of the camera that triggered the alert. I have the android Blue Iris app, but ui3 is my go-to.
 
Top