Send Pushover notifications with pictures and hyperlinks

Sybertiger

Known around here
Joined
Jun 30, 2018
Messages
4,539
Reaction score
13,068
Location
Orlando
My bad, just edited my suggestion to @ not &
I had tried that earlier today based on your prior comment and just updated BI to the latest and tried again. The result is that it plays video from cam #3 (garage from a couple of weeks ago) instead of cam #2 (driveway).
 

Sybertiger

Known around here
Joined
Jun 30, 2018
Messages
4,539
Reaction score
13,068
Location
Orlando
For debugging purposes you can try capturing the actual API command string being sent as suggested in this post.
Appreciate the help, I'll check it out. BTW, interestingly enough, after I updated BI from 5.5.7.4 to 5.5.7.5 the issue with the yellow warning on the mobile phone went away (without the ampersand). Now, just need to resolve the red warning on the tablet.

1652999672852.png
 

jaydeel

BIT Beta Team
Joined
Nov 9, 2016
Messages
1,126
Reaction score
1,237
Location
SF Bay Area
I'm curious to see what you get when you try capturing the API command with an without the ampersand.
I'm trying to to this myself right now.
 

jaydeel

BIT Beta Team
Joined
Nov 9, 2016
Messages
1,126
Reaction score
1,237
Location
SF Bay Area
hmm... &ALERT_DB is already expanding to string prefixed with @.
So doing what I suggested may result in two @@.
 

Sybertiger

Known around here
Joined
Jun 30, 2018
Messages
4,539
Reaction score
13,068
Location
Orlando
This error message suggests it's a Chrome browser issue on my Samsung Android tablet. But what blows my mind is that it works fine with one camera but not the other. Not sure what other browser UI3 plays nicely with so I guess I'll have to play. The error does suggest it's an encoder/decoder issue. Both cams are set for H.265....lemme try H.264. My conclusion is this isn't anything related to Pushover, Blue Iris, etc. so I'll quit spamming this thread.

1653001362733.png


UPDATE 05/20/2022: It was clearly related to the Chrome android browser on my tablet as I installed the Opera browser and it worked fine...so I went back and cleared the cache/cookies on the Chrome browser and now it works. What was odd is this issue only seemed to be tied to my three 4MP cams, all 2MP cams didn't have this issue. :headbang:
 
Last edited:

jaydeel

BIT Beta Team
Joined
Nov 9, 2016
Messages
1,126
Reaction score
1,237
Location
SF Bay Area
I've just added another reference section to the OP.
How to store and use your pushover credentials in Blue Iris numbered macros

Some users might find this interesting/helpful.
 

jrbeddow

Getting comfortable
Joined
Oct 26, 2021
Messages
370
Reaction score
485
Location
USA
Hmm..I'm not sure that the "new format" date/timestamp UI3 link (from Pushover) implementation is 100% correct yet, despite early results that seemed to indicate success. I am still having random failures to resolve links that were from the evening of Wednesday May 18th, which was post-upgrade to this new format introduced in 5.5.7.4. Maybe something else changed again in the upgrade to 5.5.7.5 yesterday (May 19). Hopefully this will settle out in time, and these are just some early-adopter glitches. Anyone else seeing similar?
 

Sybertiger

Known around here
Joined
Jun 30, 2018
Messages
4,539
Reaction score
13,068
Location
Orlando
Is there a tag or label that can be included in the Pushover parameter string to show icons
1653349327417.png
such as the "car" or the "person" instead of or in addition to the word "car" or "person" with the percentage (&MEMO)? It would probably stand out a little bit more if the icons appeared.


1653348866053.png
 

jaydeel

BIT Beta Team
Joined
Nov 9, 2016
Messages
1,126
Reaction score
1,237
Location
SF Bay Area
Is there a tag or label that can be included in the Pushover parameter string to show icons
1653349327417.png
such as the "car" or the "person" instead of or in addition to the word "car" or "person" with the percentage (&MEMO)?
I'd say No. The API does not appear to support the delivery of images in addition to the alert image attachment.

Excerpts from the API

Attachment files must be directly sent to our API with your other message parameters and cannot be included as a URL or other parameter that would instruct our servers or the device clients to download the file. This is done for efficiency and for the privacy of our users to avoid making requests to non-Pushover URLs without their knowledge.

Each message may only include one attachment...
 

Rick Rick

Getting the hang of it
Joined
Feb 1, 2018
Messages
146
Reaction score
12
What am I supposed to use as the server address for the Pushover outgoing SMTP server?
 

sebastiantombs

Known around here
Joined
Dec 28, 2019
Messages
11,511
Reaction score
27,690
Location
New Jersey
Have a look at post #1 of this thread. PushOver "runs a script" which you can copy and paste from the first few pages of the thread. You will need to add your PushOver credentials, but you don't need to write a script.
 
Last edited:

wittaj

IPCT Contributor
Joined
Apr 28, 2019
Messages
24,436
Reaction score
47,561
Location
USA
What am I supposed to use as the server address for the Pushover outgoing SMTP server?
See your other thread...pushover simply provides an email address and is not using smtp.

And to be clear, this thread is only if you want to use the API. You can use pushover as an email as well. I would suggest starting there to get alerts and then plau with this.
 

tward392

Pulling my weight
Joined
Sep 9, 2019
Messages
250
Reaction score
143
Location
US
Posting over here to see if anyone else has seen this problem. Original message I started is Pushover and Gmail on two different Blue Iris machines, one stopped working!


Pushover messages stopped for me on one of my two machines (gmail messages as well):

Trouble shooting Pushover doing the following:

Using a DOS prompt and trying the curl command for pushover has a problem once I add:

-F "attachment=@D:\BlueIris\Alerts\&ALERT_PATH"


  • schannel: Curl_read_plain returned CURLE_RECV_ERROR
  • Closing connection 0
  • schannel: shutting down SSL/TLS connection with api.pushover.net port 443
  • Send failure: Connection was reset
  • schannel: failed to send close msg: Failed sending data to the peer (bytes written: -1)

so----here is the whole command that I ran from a batch file

c:\windows\system32\curl.exe ^

-s ^
--form-string "token=<<token>>" ^
--form-string "user=<<user>>" ^
--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>" ^
--form-string "html=1" ^
--form-string "device=Phone1,Phone2" ^
--form-string "sound=bike" ^
-F "attachment=@D:\BlueIris\Alerts\Front1.20220313_180000.1949014.3.10055.9990.jpg" ^
--verbose




So, I'm getting the messages now as long as I don't try to send the image.
 

jaydeel

BIT Beta Team
Joined
Nov 9, 2016
Messages
1,126
Reaction score
1,237
Location
SF Bay Area
First let’s confirm that the attachment file exists…
From the keyboard, click the Windows button and paste the following:
“D:\BlueIris\Alerts\Front1.20220313_180000.1949014.3.10055.9990.jpg”

Does the image open?
 

tward392

Pulling my weight
Joined
Sep 9, 2019
Messages
250
Reaction score
143
Location
US
First let’s confirm that the attachment file exists…
From the keyboard, click the Windows button and paste the following:
“D:\BlueIris\Alerts\Front1.20220313_180000.1949014.3.10055.9990.jpg”

Does the image open?
Yes, it does open, I made sure I picked one that existed before testing.
 

tward392

Pulling my weight
Joined
Sep 9, 2019
Messages
250
Reaction score
143
Location
US
I don't believe it to be a syntax issue as that same exact command (except for the paths) is running on another machine. This one machine just stopped sending gmail messages and pushover messages for some reason I haven't been able to figure out yet. So to debug the pushover part of the problem I pulled the command out of BI and tried it in the command line one piece at a time until it was the attachment part that caused an error.

I'll take a look at the debug from BI when time permits. Thanks.
 

tward392

Pulling my weight
Joined
Sep 9, 2019
Messages
250
Reaction score
143
Location
US
If the attachment file exists, then I’d suggest trying the trick in the following post to capture the actual API command being sent. Perhaps this will reveal the syntax error causing the notification To fail.
This is showing:

Filename sent from BI on the command:
D:\BlueIris\Alerts\Front1.20220609_170004.309516.3-1.jpg

The file doesn't actually exist, how does that happen?
 
Top