<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://blueirissoftware.com/forum/app.php/feed/topic/2956" />

	<title>Blue Iris</title>
	<subtitle>Blue Iris User Group</subtitle>
	<link href="https://blueirissoftware.com/forum/index.php" />
	<updated>2021-12-22T16:24:39+00:00</updated>

	<author><name><![CDATA[Blue Iris]]></name></author>
	<id>https://blueirissoftware.com/forum/app.php/feed/topic/2956</id>

		<entry>
		<author><name><![CDATA[varghesesa]]></name></author>
		<updated>2021-12-22T16:24:39+00:00</updated>

		<published>2021-12-22T16:24:39+00:00</published>
		<id>https://blueirissoftware.com/forum/viewtopic.php?p=11758#p11758</id>
		<link href="https://blueirissoftware.com/forum/viewtopic.php?p=11758#p11758"/>
		<title type="html"><![CDATA[Email alerts]]></title>

		
		<content type="html" xml:base="https://blueirissoftware.com/forum/viewtopic.php?p=11758#p11758"><![CDATA[
<span style="font-size:150%;line-height:116%"><strong class="text-strong">Introduction</strong></span><br><br>This article discusses how to trouble shoot Email alerts.  <br><br>If you are interested in learning how to create Email alerts or other alerts go to Camera settings -&gt; Alerts tab -&gt; On Alert and click on the <strong class="text-strong">Help button</strong> in the <strong class="text-strong">Action set dialog</strong>.  This will immediately take you to the Alerts and Actions section of Help.<br><br>Furthermore, the Triggers and Alerts section of the online <a href="viewtopic.php?f=23&amp;t=2426" class="postlink">Checklist</a> provides references to articles and webinars for deeper understanding.<br><br><br><span style="font-size:150%;line-height:116%"><strong class="text-strong">Troubleshooting</strong></span><br><br><strong class="text-strong">Log files</strong><br><br>Confirm alerts are being sent from the server<div style="margin-left:3em"><br>Understanding the logs is key to understanding what is going on.<br><div class="codebox"><p>Code: </p><pre><code>3 12/2/2021 10:03:11.239 AMnorman              MOTION_A0 12/2/2021 10:03:11.546 AMnorman              DeepStack: car:86% [304,67 395,117] 85ms0 12/2/2021 10:03:11.546 AMnorman              DeepStack: Car:86% [299,63 400,124] 85ms0 12/2/2021 10:03:12.720 AMnorman              Email: xxxxx@yahoo.com with 1 attachment/s</code></pre></div>This camera was setup for Motion trigger and DeepStack AI.  In the above log snippet, norman (camera name) detected motion at 10:03:11.239 AM. <br>DeepStack identified a car at 10:03:11.546 AM.  The camera was set to sample the Motion leading edge in addition to the trigger leading edge, thus the two DeepStack calls very close in proximity.  At 10:03:12.720 AM an email alert was sent.  Note the gap between the MOTION event and the Alert should not be more than 1-2s.<br><br></div> <img class="smilies" src="https://blueirissoftware.com/forum/images/smilies/icon_question.gif" width="15" height="17" alt=":?:" title="Question"> If the logs state the Email alert was NOT sent, skip below section and jump to <a href="viewtopic.php?f=24&amp;t=2956#No%20Email%20alert" class="postlink">No Email alerts section</a> to troubleshoot your server settings.<br><br><strong class="text-strong">Email alert</strong><div style="margin-left:3em"><br>If the logs state alerts are being sent, then you can be confident the camera is triggering on motion and alerts are being sent by BI.  <br>The issue must reside with your email server settings or your email provider.<br><br><strong class="text-strong">Send alternative alerts</strong><br>If you are only sending one type of alert, e.g. an email notification, create an SMS alert to try and isolate the issue. Does the SMS alert work?<div style="margin-left:3em"><br>If so, the email server must be setup correctly.  SMS and Email alerts both leverage the email server.  Assuming the same email server is being used for both Email and SMS alerts, if one alert works then the email server must be setup correctly.<br><br><strong class="text-strong">Email alert dialog</strong><br>A setting in your Email alert dialog has to be blocking the alert from being sent.  Double-check your Profiles and Trigger and Zones section.<br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2453" class="postimage" alt="email alerts_filters.png" onclick="viewableArea(this);" /></dt></dl></div><br>In the screenshot above, this email alert will ONLY fire in Profile 2.<br><br><br><strong class="text-strong">Email server</strong><br>If an SMS alert does not work either, the common denominator is the email server.<br>Global settings -&gt; Email servers.<br><br>Email process: BI Server -&gt; Email server -&gt; Email notification<br>SMS process: BI Server -&gt; Email server -&gt; Mobile provider email to text service -&gt; SMS message<br><br>Easy to check if SMS and Email alerts are being processed correctly by your email server.  Simply login to your email server.  Go to the sent folder.<br><br>If you see sent emails to your cellular provider (for an SMS text) or to the email address specified in the Email alert settings, your mail server processed the alert correctly.  BI emails are easy to spot because the subject starts with Blue Iris.  If you do not see any BI sent emails, your email server is not setup correctly.<br><br></div></div><strong class="text-strong"><a name="No Email alert">No Email alert</a></strong><div style="margin-left:3em"><br>If the logs state the camera triggered (i.e. Motion event in logs) and NO alerts are being sent, then you can be confident there has to be an issue with Server permissions.  As stated above, double check your Profiles and Trigger and Zones section of the Email alert dialog.<br><br>If the logs state the camera did NOT trigger (i.e. no Motion event in logs) then you will have to revisit your Trigger tab settings.<br><br><br></div><span style="font-size:150%;line-height:116%"><strong class="text-strong">Alert images</strong></span><br>The Email alert provides a lot of choices for image/mp4 attachments.  <div style="margin-left:3em"><br><strong class="text-strong">Troubleshooting</strong><br>If there are issues with the image attachments for example some frames are black, the underlying cause is often the video stream.  Either frames are not available when the email is being generated or the encoding is causing errors.  Confirm the camera window has no warning symbols and the video stream has no issues.  The <a href="viewtopic.php?f=28&amp;t=3016" class="postlink">Live view article</a> has details.  <br><br><br><strong class="text-strong">Issue</strong><br>Confusion arises when dual streams are connected to the camera.  Users may want high-res images or they may be fine with low res images.  This section provides clarity as to what to do to meet your needs.<br><br><br><strong class="text-strong">Background info</strong><br>The thumbnail image which is actually stored in the database and associated with the Alert is 240px.  <br>In earlier versions of 5.x, the thumbnail image was 480px, but the increased size really did not add much value, but did eat up database storage so was changed back to 240px.<br><br><strong class="text-strong">The fix</strong><br>To get higher resolution main stream Alert images, select Hi-res JPEG files for <strong class="text-strong">Add to alerts list:</strong>.  Camera settings -&gt; Trigger tab.<br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2235" class="postimage" alt="alert image hi-res.png" onclick="viewableArea(this);" /></dt></dl></div><br><strong class="text-strong">Dual streams</strong><br>If your camera has dual streams and Hi-res JPEG is selected (as stated above), but the alert image is not the higher resolution image, the issue is often the main stream does not have the corresponding key frame.  If the hi-res (mainstream) alert could not be saved, the software will use the alert image which is cached in memory (sub stream if camera has dual streams).<br><br>The fix is setting an appropriate <a href="viewtopic.php?f=11&amp;t=2305#Pre-trigger%20buffer" class="postlink">pre-trigger buffer size</a>.<br><br><strong class="text-strong">Server errors</strong><br>If the above two fixes do not resolve the issue, right click on an alert -&gt; <strong class="text-strong">Open containing folder</strong>.<br>Is the corresponding JPEG the correct resolution? 240p is what's in the database.  However if there's a hi-res JPEG file, this should be served instead.<br><br>If the <strong class="text-strong">Open containing folder</strong> selection is greyed out, then there is an issue.<ul><li>The most obvious cause is you did not set Add to alerts list = Hi-res JPEGfiles</li><li>OR There is an issue with the setup of the Alerts folder (image below), folder permissions or something else.<br>Check the log for errors, in particular <a href="viewtopic.php?f=14&amp;t=2086#Storage" class="postlink">Storage errors</a>.</li></ul><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2236" class="postimage" alt="alert image alerts folder.png" onclick="viewableArea(this);" /></dt></dl></div><br><strong class="text-strong">Note on email alerts</strong><br>Email alerts provide many more options.<br>The Motion leading-edge image will always come from the sub stream.<br>The Trigger leading-edge, aka the Alert image, will only be high-res if you select <strong class="text-strong">Hi-res JPEG</strong> (as stated above) AND the main stream has a key frame in the buffer (thus, the need for a pre-trigger buffer as stated above).<br>The <strong class="text-strong">Additional images</strong> will always be hi-res (if you have a main stream key frame in the buffer).<br>Finally, the Email alert dialog also provides quality controls (default is 50/50) which can alter the alert image.<br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2237" class="postimage" alt="action map email quality.png" onclick="viewableArea(this);" /></dt></dl></div></div><p>Statistics: Posted by <a href="https://blueirissoftware.com/forum/memberlist.php?mode=viewprofile&amp;u=521">varghesesa</a> — Wed Dec 22, 2021 4:24 pm</p><hr />
]]></content>
	</entry>
	</feed>
