Need help setting up BI5 text alerts.

wittaj

IPCT Contributor
Joined
Apr 28, 2019
Messages
24,927
Reaction score
48,633
Location
USA
Yes BI has a log file. Go to the Blue Iris Status. You probably have to check the log to file box to get more details and then pull up the .txt files.

1652784975109.png
 

jaydeel

BIT Beta Team
Joined
Nov 9, 2016
Messages
1,132
Reaction score
1,240
Location
SF Bay Area
I don’t think the logfile includes any entries for Blue Iris Actions

However, you can create your own log file using the ‘Run a program or write to a file’ action.

For an example, see the screenshot below. Add this action to the same action set as the curl action.

This won’t tell you if the curl action failed, but it will show the curl command string as attempted, including expanding any macros.

If you want to try this:
1. Edit the file path to your liking.
2. Add the curl action’s Parameters field text to this action’s Parameters field. Be sure to terminate it with ‘\n’ to create new lines.

1652800024514.png

EDIT 5/19: I'm now using a Parameters string like the following. This provides a time stamp for each line in the log file - making it more useful.
Code:
%Y/%m/%d_%H:%M:%S,https://api.pushover.net/1/messages.json -s --form-string "token=REDACTED" --form-string  "user=REDACTED" --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=galaxy-s21" --form-string "sound=cosmic" -F "attachment=@D:\Blue Iris\Alerts\&ALERT_PATH"\n
 
Last edited:

EDYY

n3wb
Joined
May 7, 2022
Messages
19
Reaction score
0
Location
NJ
What do you mean terminate it with ‘\n’ to create new lines.?
 

jaydeel

BIT Beta Team
Joined
Nov 9, 2016
Messages
1,132
Reaction score
1,240
Location
SF Bay Area
Does this make it clearer?

1652834308942.png
otherwise the action will append each event to a single line In the fille.
 

Mike A.

Known around here
Joined
May 6, 2017
Messages
3,828
Reaction score
6,387
What do you mean terminate it with ‘\n’ to create new lines.?
Instead of a continually running single line like this, the \n will break the line where inserted.

i.e, :

Instead of a continually running single line, the \n
will break the line where inserted like this
 

jaydeel

BIT Beta Team
Joined
Nov 9, 2016
Messages
1,132
Reaction score
1,240
Location
SF Bay Area
[@jaydeel the curl command works from a cmd prompt as long as I don’t add the -F

I am not getting any temp*.jpg files in my alerts folder.

Blue Iris 5.8.4.5
This happens when the attachment file does not exist.

I don’t see the actual command are trying to use from the cmd prompt, so it’s not possible for me to debug it.
Here are some scenarios…
  1. Your file path contains a Blue Iris macro (macros expand only when used from Blue Iris actions)
    -F "attachment=@D:\BlueIris\Alerts\&ALERT_PATH"
  2. Your file path has an errant space character (e.g., between ‘Blue’ and ‘Iris’)
    -F "attachment=@D:\Blue Iris\Alerts\DW1.20240208_160000.2019036.5-0.jpg"
  3. Your argument is lacking the ‘@‘ character
    -F "attachment=D:\Blue Iris\Alerts\DW1.20240208_160000.2019036.5-0.jpg"

Are you sure the temp*.jpg files are not being created? If you are monitoring the Alerts folder using File Explorer, it will not refresh fast enough. Try using the utility FileChangesView (download).
 
Top