Send Pushover notifications with pictures and hyperlinks

Just to be clear, you are receiving a push notification (which implies that the macros are being expanded and your credentials are correct), but it is lacking the attachment picture.
Correct just no picture like if I do it without macros.
 
Are you sure about the attachment path? Most users don't use Drive C for clips and alerts storage. Is the path missing any space characters?

Better yet, attach a Windows File Explorer screenshot like this:

1747330823411.png
 
Last edited:
Are you sure about the attachment path? Most users don't use Drive C. Is it missing any space characters?

Better yet, attach a Windows File Explorer screenshot like this:

View attachment 221092
I changed the above code to hide my files but guess it doesnt matter. I changed this code to just add the macros in the code that was sending pictures and still no pictures. I have the HI-Res and UI3 but no picture in the push like when I do it without the macros.

-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>" --form-string "html=1" --form-string "device="%998" --form-string "sound=%999" -F "attachment=@E:\BILogs\Alerts\&ALERT_PATH"

ComputerFiles.png




This works
-s --form-string "token=sadlkjaslkdfjalkdfj" --form-string "user=sadkjfalksdjfalskdjf" --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=phone" --form-string "sound=bugle" -F "attachment=@E:\BILogs\Alerts\&ALERT_PATH"
 
Last edited:
For clarity, I've added newlines to your command and compared it to mine. What jumps out is the extra double-quote in the device= argument.

If this malformed argument came AFTER the attachment argument, the command might of sent a picture.

Code:
YOURS...
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>"
--form-string "html=1"
--form-string "device="%998"
--form-string "sound=%999"
-F "attachment=@E:\BILogs\Alerts\&ALERT_PATH"

MINE...
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'>JPG</a> <a href='&WAN/ui3.htm?rec=&ALERT_DB'>UI3</a>"
--form-string "html=1"
--form-string "device=%990"
-F "attachment=@D:\BlueIris\Alerts\&ALERT_PATH"
--form-string "sound=%992"
--form-string "priority=2"
--form-string "retry=30"
--form-string "expire=300"
--form-string "tags=a=BI,c=&CAM,g=Front"
 
For clarity, I've added newlines to your command and compared it to mine. What jumps out is the extra double-quote in the device= argument.

If this malformed argument came AFTER the attachment argument, the command might of sent a picture.

Code:
YOURS...
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>"
--form-string "html=1"
--form-string "device="%998"
--form-string "sound=%999"
-F "attachment=@E:\BILogs\Alerts\&ALERT_PATH"

MINE...
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'>JPG</a> <a href='&WAN/ui3.htm?rec=&ALERT_DB'>UI3</a>"
--form-string "html=1"
--form-string "device=%990"
-F "attachment=@D:\BlueIris\Alerts\&ALERT_PATH"
--form-string "sound=%992"
--form-string "priority=2"
--form-string "retry=30"
--form-string "expire=300"
--form-string "tags=a=BI,c=&CAM,g=Front"
I am such an idiot. Please forgive me and thank you for your help. I cannot believe I did that.
 
  • Haha
Reactions: Sybertiger