<?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/forum/24" />

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

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

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

		<published>2021-12-22T16:53:52+00:00</published>
		<id>https://blueirissoftware.com/forum/viewtopic.php?p=11760#p11760</id>
		<link href="https://blueirissoftware.com/forum/viewtopic.php?p=11760#p11760"/>
		<title type="html"><![CDATA[Alerts &amp; Action Map • SMS alerts]]></title>

					<category term="Alerts &amp; Action Map" scheme="https://blueirissoftware.com/forum/viewforum.php?f=24" label="Alerts &amp; Action Map"/>
		
		<content type="html" xml:base="https://blueirissoftware.com/forum/viewtopic.php?p=11760#p11760"><![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 SMS alerts.  <br><br>If you are interested in learning how to create SMS 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/3/2021 12:41:27.834 AMADF1                MOTION_A0 12/3/2021 12:41:28.809 AMADF1                DeepStack: person:76% [484,287 525,378] 111ms0 12/3/2021 12:41:31.734 AMADF1                SMS: 1112223333@tmomail.net with 1 attachment/s</code></pre></div>This camera was setup for Motion trigger and DeepStack AI.  In the above log snippet, ADF1 (camera name) detected motion at 12:41:27.834 AM. <br>DeepStack identified a person at 12:41:28.809 AM.  At 12:41:31.734 AM an SMS 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 SMS alert was NOT sent, skip below section and jump to <a href="viewtopic.php?f=24&amp;t=2957#No%20SMS%20alert" class="postlink">No SMS alert section</a> to troubleshoot your server settings.<br><br><strong class="text-strong">SMS 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 ISP provider.<br><br><strong class="text-strong">Send alternative alerts</strong><br>If you are only sending one type of alert, e.g. an SMS alert, create an Email alert to try and isolate the issue. Does the Email 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">SMS alert dialog</strong><br>It's possible a setting in your SMS alert dialog is blocking the alert from being sent.  Double-check your Profiles and Trigger and Zones section.<br><br><strong class="text-strong">ISP Provider</strong><br>It's very possible you were sending too many alerts and your ISP provider throttled your service.  It's also possible that you selected image attachments with the text and your ISP provider blocked sending the message because the data size was too large.  <br> <img class="smilies" src="https://blueirissoftware.com/forum/images/smilies/icon_idea.gif" width="15" height="17" alt=":idea:" title="Idea"> FYI, many users send SMS alerts with no image.  They also create an Email alert with image attachments.  When an SMS arrives, the user checks his email to see the images.  <br> <img class="smilies" src="https://blueirissoftware.com/forum/images/smilies/icon_idea.gif" width="15" height="17" alt=":idea:" title="Idea"> <a href="https://telegram.org/" class="postlink">Telegram</a> is also becoming popular with users as an alternative to SMS alerts.<br><br><strong class="text-strong">Email server</strong><br>If an Email 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 SMS alert">No SMS alert</a></strong><div style="margin-left:3em"><br>If you are here, the logs state no SMS alert fired.  The question is why?<br>First understand how alert actions(SMS, Email, Push etc) are generated.<br>Camera triggers (trigger tab settings) -&gt; AI (if enabled) -&gt; Alert filters (if any,  alerts tab settings) -&gt; Alert action filters (if any, alert action settings)<br><br><strong class="text-strong">Details</strong><br>Trigger tab: Camera triggered (motion event in logs).  Easy to confirm whether camera triggered (besides checking the logs).    In the Trigger tab, set <strong class="text-strong">Add to alerts list: = Hi-res JPEG</strong> files.  If the camera triggers, a corresponding alert image is created in your Alerts folder!  Easy way to use BI to tell you what is going on.<div style="margin-left:3em">-&gt; AI: If using AI, DeepStack analysis will tell you if an object was found, i.e. confirmed alert.  Fortunately a DeepStack event will also be registered in the logs.<div style="margin-left:3em">-&gt; Alerts tab:  Filters in the AIerts tab can block an alert.  Easy to check.  Do you see the event in the Alerts list.  If not, then you know the Alerts tab is somehow blocking the Alert!<div style="margin-left:3em">-&gt; Alert action:  Filters in the Action map settings can block an alert</div></div></div> <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 Camera settings on the Alert tab and/or the SMS Alert action.  You need to figure out why alerts are being blocked, since you know the camera triggered.<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><p>Statistics: Posted by <a href="https://blueirissoftware.com/forum/memberlist.php?mode=viewprofile&amp;u=521">varghesesa</a> — Wed Dec 22, 2021 4:53 pm</p><hr />
]]></content>
	</entry>
		<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[Alerts &amp; Action Map • Email alerts]]></title>

					<category term="Alerts &amp; Action Map" scheme="https://blueirissoftware.com/forum/viewforum.php?f=24" label="Alerts &amp; Action Map"/>
		
		<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>
		<entry>
		<author><name><![CDATA[varghesesa]]></name></author>
		<updated>2021-12-21T16:38:41+00:00</updated>

		<published>2021-12-21T16:38:41+00:00</published>
		<id>https://blueirissoftware.com/forum/viewtopic.php?p=11745#p11745</id>
		<link href="https://blueirissoftware.com/forum/viewtopic.php?p=11745#p11745"/>
		<title type="html"><![CDATA[Alerts &amp; Action Map • Push notifications - Alert images]]></title>

					<category term="Alerts &amp; Action Map" scheme="https://blueirissoftware.com/forum/viewforum.php?f=24" label="Alerts &amp; Action Map"/>
		
		<content type="html" xml:base="https://blueirissoftware.com/forum/viewtopic.php?p=11745#p11745"><![CDATA[
<span style="font-size:150%;line-height:116%"><strong class="text-strong">Introduction</strong></span><br><br>Alert images are the thumbnails that appear alongside the Push notification on your phone.<br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2227" class="postimage" alt="push_alert image.png" onclick="viewableArea(this);" /></dt></dl></div><br>By default an alert image is included with a Push notification.<br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2228" class="postimage" alt="action map_alert image.png" onclick="viewableArea(this);" /></dt></dl></div><br>Alert images work by the mobile app first receiving a Push notification from the BI server (via Apple/Android push servers).  The mobile app then makes a request for the corresponding alert image associated with the Push notification.  If the alert image is not included with the Push notification, this communication between the app and the BI server has been broken.<br><br>This article explains how to self-correct your settings if the Alert image stops working.  See <a href="forum/viewtopic.php?f=24&amp;t=2946" class="postlink">Push notifications article</a>, if you are not receiving Push notifications.<br><br><br><span style="font-size:150%;line-height:116%"><strong class="text-strong">Troubleshooting</strong></span><br><br>There are two ways to crack this nut.  You can either (1) double-check your settings or (2) identify the issue in the logs and work backwards.  Both approaches are provided.<br><br><strong class="text-strong">Settings</strong><div style="margin-left:3em"><br>All the suggestions below are based on past tickets.<br><br><strong class="text-strong"><span style="text-decoration:underline">IP Address</span></strong><br><br>The most common issue is the IP Address on the BI server changed.  Logout of the mobile app.<br>Go to your server settings and hit the Lookup key (iOS) / Get IPS key (Android) to update the LAN / WAN addresses.  Confirm LAN/WAN addresses are correct.  Wait for the next Push notification to confirm issue is resolved.<br><br><strong class="text-strong"><span style="text-decoration:underline">Android + SSL</span></strong><br><br>Android / Google came out with tighter certificate restrictions recently.  You need to make some changes to your Stunnel config file.  The <a href="https://blueirissoftware.com/forum/viewtopic.php?f=4&amp;t=2093#TLS" class="postlink">Android Gotcha article</a> documents how other customers resolved issue.<br><br><strong class="text-strong"><span style="text-decoration:underline">Network</span></strong><br><br>The network setup is critical to getting the apps working on the WAN.  When the alert image is not present, use the mobile browser on the phone to connect to the web interface.  If the phone cannot connect to UI3, you know the network is not setup correctly.<br>Double check your <a href="viewtopic.php?f=20&amp;t=2539" class="postlink">network setup</a>.<br><br>If the UI3 interface is working, the IP address is wrong or the incorrect protocol (http/https) is selected.<br>Revisit the <a href="viewtopic.php?f=11&amp;t=2211#Server%20settings" class="postlink">Server settings</a> on your mobile app.<br><br><strong class="text-strong"><span style="text-decoration:underline">Login</span></strong><br><br>When you don't get the image, are you able to login with the app?<br>If you cannot login, and you ruled out network issues (above), double check the <a href="viewtopic.php?f=24&amp;t=2943" class="postlink">permissions</a> associated with the user/mobile device trying to connect.<br><br></div><strong class="text-strong">Logs</strong><div style="margin-left:3em"><br>The debug logs will tell you the issue.  When the next notification arrives on your phone without an alert image, go to the app (do not select notification) -&gt; ? tab -&gt; Debug log.<br>Scroll to the bottom of the log and look for downloadTaskWithURL commands associated with your recent alerts.  I numbered the lines key for attaining alert images.<div class="codebox"><p>Code: </p><pre><code>2021-09-08 7:55:10: handleRemoteNotification: 'ADF7' (MOTION_A) triggered on 'Mabury Square' at 7:54:39 AM, long-chime-sound.wav 2642021-09-08 7:55:10: Server now Mabury Square --&gt; 4 server=Mabury Square, cam=ADF7, wanip=(null)3    2021-09-08 7:57:40: downloadTaskWithURL http://10.0.0.5:7000/thumbs/alert.2057329278.jpg?session=54d67b8a1a3b65880775655e0eb1098d fails The request timed out.2021-09-08 7:57:40: Requesting image from http://xxxx.ngrok.io/thumbs/alert.4118562208.jpg?session=2e4742d111f37fc81f1b3e2a25ee13d65    2021-09-08 7:57:40: downloadTaskWithURL http://xxxx.ngrok.io/thumbs/alert.4118562208.jpg?session=2e4742d111f37fc81f1b3e2a25ee13d6 fails The resource could not be loaded because the App Transport Security policy requires the use of a secure connection.2021-09-08 7:58:39: didDetermineState: 12021-09-08 7:58:39: http://xxxx.ngrok.io --&gt; {    cmd = geofence;    inside = 1;    session = 00a939f740fe6f735b582ded29ce028d;}2021-09-08 7:58:39: http://xxxx.ngrok.io/json &lt;-- {"result":"success","session":"00a939f740fe6f735b582ded29ce028d"}</code></pre></div><strong class="text-strong">downloadTaskWithURL calls</strong>: Calls to get alert image using LAN address (line 3) and WAN address (line 5).  There are 2 requests per notification because the app automatically checks the LAN and WAN addresses.<br><br><br><strong class="text-strong">Line 3</strong>:    2021-09-08 7:57:40: <strong class="text-strong">downloadTaskWithURL</strong> <strong class="text-strong"><a href="http://10.0.0.5:7000/thumbs/alert.2057329278.jpg" class="postlink">http://10.0.0.5:7000/thumbs/alert.2057329278.jpg</a></strong>?session=54d67b8a1a3b65880775655e0eb1098d fails The request timed out.<div style="margin-left:3em"><br>You can first confirm whether the URL makes sense.  Is the IP addresses accurate?  Are the ports accurate?<br>In my scenario for this example, I was NOT on the LAN thus the LAN call times out.<br><br></div><strong class="text-strong">Line 5</strong>:    2021-09-08 7:57:40: <strong class="text-strong">downloadTaskWithURL</strong> <a href="http://xxxx.ngrok.io/thumbs/alert.4118562208.jpg?session=2e4742d111f37fc81f1b3e2a25ee13d6" class="postlink">http://xxxx.ngrok.io/thumbs/alert.41185 ... 2a25ee13d6</a> fails The resource could not be loaded because the App Transport Security policy requires the use of a secure connection.<div style="margin-left:3em"><br>From Line 5, it should be obvious based on the URL, I implemented NGROK.  It now becomes easy to check whether the URL is correct.  If not, perhaps logging out and hitting the lookup key will update the address (see IP address section above).  If that does not work, you will have to revisit your <a href="viewtopic.php?f=12&amp;t=2539" class="postlink">web server settings</a>.<br><br>I purposely created a scenario where I setup the BI server to communicate via https and the app is setup for http.  Thus the error message.<div style="margin-left:3em"><br><strong class="text-strong">The resource could not be loaded because the App Transport Security policy requires the use of a secure connection.</strong><br><br></div>The fix is to logout of the mobile app, edit the Server settings, and switch the WAN protocol from http to https.<br><br>If I were using port forwarding, the URL would have a WAN IP address similar in structure to Line 3.  You can then confirm whether the WAN address is correct.  If not, revisit your <a href="viewtopic.php?f=12&amp;t=2539" class="postlink">network setup</a>, in particular the web server settings.  Global settings -&gt; Web server tab.  If the WAN address is correct, you may need to <a href="viewtopic.php?f=12&amp;t=2539" class="postlink">revisit your router and the port forwarding setup</a>.</div><br>In this example, both requests failed and the notification was sent without an image.  The LAN address failed because the phone was on the WAN.<br>The WAN address failed because the BI server was setup for https but the mobile app was using http communication.<br><br><br></div><p>Statistics: Posted by <a href="https://blueirissoftware.com/forum/memberlist.php?mode=viewprofile&amp;u=521">varghesesa</a> — Tue Dec 21, 2021 4:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[varghesesa]]></name></author>
		<updated>2021-12-21T03:02:04+00:00</updated>

		<published>2021-12-21T03:02:04+00:00</published>
		<id>https://blueirissoftware.com/forum/viewtopic.php?p=11736#p11736</id>
		<link href="https://blueirissoftware.com/forum/viewtopic.php?p=11736#p11736"/>
		<title type="html"><![CDATA[Alerts &amp; Action Map • Push Notifications]]></title>

					<category term="Alerts &amp; Action Map" scheme="https://blueirissoftware.com/forum/viewforum.php?f=24" label="Alerts &amp; Action Map"/>
		
		<content type="html" xml:base="https://blueirissoftware.com/forum/viewtopic.php?p=11736#p11736"><![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 Push notifications.  <br><br>If you are interested in learning how to create Push notifications 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>Update to the latest version or the latest stable version of the BI server.  Update to the latest version of the mobile app.  Features/functionality on the mobile app are not guaranteed to run with older versions of the server.<br><br>Divide the problem into server vs mobile app.<br>Did the BI Server send the Push alert?<br><br><strong class="text-strong">Log files</strong><br>The log files will state whether push 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/16/2021 8:30:48.325 AMCam4                MOTION_AB0 12/16/2021 8:30:56.132 AMCam4                DeepStack: Alert cancelled [nothing found] 30ms</code></pre></div>In the above log snippet, Cam4 detected motion at 8:30:48.325.  DeepStack cancelled the alert.  Thus there is no following Push event.<br><div class="codebox"><p>Code: </p><pre><code>3 12/16/2021 8:32:38.420 AMCam4                MOTION_AB0 12/16/2021 8:32:40.975 AMCam4                DeepStack: car:81% [147,273 359,432] 28ms1012/16/2021 8:32:41.238 AMServer              [::]: Connected0 12/16/2021 8:32:41.631 AMCam4                Push: OK to varghesesa’s iPhone1012/16/2021 8:32:41.632 AMServer              [::]: Connected0 12/16/2021 8:32:41.770 AMCam4                Push: OK to Galaxy S10</code></pre></div>In the above log snippet, Cam4 detected motion at 8:32:38.420.  DeepStack identified a car and confirmed the alert.  Thus two Push events fired, one to an iPhone and a second to an Android device.<br><br>Notice with confirmed Alerts, the Push notifications are sent seconds after BI senses Motion.  The gap between the MOTION event and the Alert should not be more than 1-2s.<br><br></div><br> <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 Push notification was sent, the server settings are fine.  The Mobile app or the Phone has issues.  Skip below section and jump to <strong class="text-strong"><a href="viewtopic.php?f=12&amp;t=2588#Push%20alert" class="postlink">Push alerts</a></strong> section further below.<br><br><strong class="text-strong">No Push alert</strong><div style="margin-left:3em"><br>If you are here, the logs show no Push events.  First confirm the camera is triggering, i.e. Motion events are recorded in the logs.  If not, visit the Triggers and Alerts content in the <a href="viewtopic.php?f=23&amp;t=2426" class="postlink">Checklist</a>.  Some obvious areas to investigate:<div style="margin-left:3em"><br><strong class="text-strong">Cameras</strong><br>Are the cameras working?  <br>See <a href="https://blueirissoftware.com/forum/viewtopic.php?f=11&amp;t=2049" class="postlink">Camera Stream Gotchas</a> article.<br><br><strong class="text-strong">Trigger settings</strong><br>Are you still receiving motion triggers?  The Alerts list will tell you!  Also check the Cancelled alerts folder.  <strong class="text-strong">If not, there is a problem with the Trigger tab.</strong><br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2222" class="postimage" alt="clip list_alert.PNG" onclick="viewableArea(this);" /></dt></dl></div></div><br>If the camera does trigger, the BI server settings (global settings, alerts tab) are causing BI to NOT send the Push notification.  This section helps troubleshoot issues associated with the BI server NOT sending Push alerts.  <br><br><strong class="text-strong">Permissions</strong><div style="margin-left:3em">Walk through <a href="viewtopic.php?f=24&amp;t=2943" class="postlink">permissions article</a>.<br></div><br><br><strong class="text-strong">Alerts tab - Action Map</strong><div style="margin-left:3em">If the motion trigger is present, there is a problem with the Alerts tab.<br><br>I would look closely at my Push notification settings.  One common mistake is the Profiles for the alert are NOT active for the Profile you are testing.<br>Camera settings -&gt; Alerts tab -&gt; On Alert.<br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2223" class="postimage" alt="mobile gotchas action map profiles.png" onclick="viewableArea(this);" /></dt></dl></div><br>If you do not know how to debug alerts, watch the <a href="https://www.youtube.com/c/BlueIrisSupport/videos" class="postlink">Triggers and Alerts webinar</a>.  The information is also available in the Alerts and Actions section of Help (Testing the Action Set).<br><br></div><strong class="text-strong">Alerts tab</strong><div style="margin-left:3em">Alerts are turned off (accidentally) on the camera.<br><br>Revisit the Camera settings -&gt; Alerts tab.  <br>A common mistake is you accidentally turned off Alerts.<br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2224" class="postimage" alt="mobile devices gotchas_recent alerts.png" onclick="viewableArea(this);" /></dt></dl></div><br>One user accidentally switched Any to All.  With all the Zones checked you are effectively telling BI the Motion had to cross ALL zones for an alert to trigger.<br>I have yet to see a use case where a user had all zones set.  Basically, he cancelled alerts for all motion triggers coming from the motion sensor.</div></div><br> <img class="smilies" src="https://blueirissoftware.com/forum/images/smilies/icon_question.gif" width="15" height="17" alt=":?:" title="Question"> <span style="font-size:100%;line-height:116%"><strong class="text-strong"><a name="Push alert">Push alert</a></strong></span><br><br>Log states alerts are sent<div style="margin-left:3em"><br><strong class="text-strong">Send alternative alerts</strong><div style="margin-left:3em">Leverage BI functionality to test further.<br>If all of the above permissions are set correctly and Push notifications are still NOT working, then create/test an Email / SMS alert.<br>If those alerts work, then you know the issue probably does NOT reside with your Server permissions or motion trigger settings.<br>This is a strong hint that something is wrong with mobile phone settings or the mobile app.<br><br></div><strong class="text-strong">Apple / Android Push servers</strong><div style="margin-left:3em">It's very possible, the issue could reside with Apple/Android Notification Servers, your mobile device or maybe even your cellular provider.<br>If you created an SMS alert as stated above and the SMS alert is responsive, you can assume BI sent the Push correctly as well.<br><br><strong class="text-strong">Firewall settings</strong><br>Maybe your firewall is blocking ports for Push notifications?  <br>Highly unlikely.  Most firewalls do not prevent outbound traffic.<br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2226" class="postimage" alt="mobile push ports.png" onclick="viewableArea(this);" /></dt></dl></div><br></div>If issue is still not resolved, include mobile app info to the ticket for BI engineering to review.  <br>See <strong class="text-strong">Next steps / Submitting a ticket</strong> section in <a href="viewtopic.php?f=11&amp;t=2211" class="postlink">Mobile devices article</a>.<br><br><br></div><p>Statistics: Posted by <a href="https://blueirissoftware.com/forum/memberlist.php?mode=viewprofile&amp;u=521">varghesesa</a> — Tue Dec 21, 2021 3:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[varghesesa]]></name></author>
		<updated>2021-12-20T19:22:35+00:00</updated>

		<published>2021-12-20T19:22:35+00:00</published>
		<id>https://blueirissoftware.com/forum/viewtopic.php?p=11727#p11727</id>
		<link href="https://blueirissoftware.com/forum/viewtopic.php?p=11727#p11727"/>
		<title type="html"><![CDATA[Alerts &amp; Action Map • Remote access - User &amp; Mobile device permissions]]></title>

					<category term="Alerts &amp; Action Map" scheme="https://blueirissoftware.com/forum/viewforum.php?f=24" label="Alerts &amp; Action Map"/>
		
		<content type="html" xml:base="https://blueirissoftware.com/forum/viewtopic.php?p=11727#p11727"><![CDATA[
<span style="font-size:150%;line-height:116%"><strong class="text-strong">Introduction</strong></span><br><br>An often overlooked aspect of remote access is user and mobile device permissions.  Many users will spend hours on their Alerts tab or Action map or Network setup to only discover the issue was with permissions.  If not setup correctly, functionality on your Mobile apps or the UI3 web interface (remote endpoints) may not be working as you expect.<br><br>Common issues that lead to tickets:<br>Cannot connect from the WAN.<br>I do not receive push notifications.<br><br>This article deep dives into the Global settings -&gt; Users tab and Global settings -&gt; Mobile devices tab.  We document all the ways permissions can affect remote endpoint functionality.<br><br><br><span style="font-size:150%;line-height:116%"><strong class="text-strong"><a name="Users tab">Users tab</a></strong></span><br><br>Global settings -&gt; Users tab<br>The Users tab sets permissions for the user logged into the remote endpoint.<div style="margin-left:3em"><br><strong class="text-strong">Accessible times and profiles</strong><div style="margin-left:3em">Make sure the user is allowed remote access.  LAN only is unchecked.<br>Make sure the user is allowed access to BI during the appropriate profiles.<br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2213" class="postimage" alt="users access.png" onclick="viewableArea(this);" /></dt></dl></div><br><strong class="text-strong">If not set correctly the user will not be able to access BI from the remote endpoint.  If you are using a custom schedule, double check those settings as well.<br></strong><br></div><strong class="text-strong">Camera groups</strong><div style="margin-left:3em">If you are using camera groups, the user must have access to a group that contains the appropriate cameras.<br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2214" class="postimage" alt="alert map_camera groups.png" onclick="viewableArea(this);" /></dt></dl></div><br>If not set successfully, specific cameras may not be visible at the remote endpoint.  Push notifications will also NOT be received by the device.<br><br></div><strong class="text-strong">Push notifications</strong><div style="margin-left:3em">In the user profile, you have the ability to restrict Push notifications by Profile.  Confirm Push notifications are active in the user's profile for the appropriate profiles.  Always good to start with NO restrictions, get the alerts working, then applying any restrictions.<br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2215" class="postimage" alt="mobile push profiles.png" onclick="viewableArea(this);" /></dt></dl></div><br>Specific to mobile apps, this setting can prevent Push notifications to mobile devices.<br><br></div><strong class="text-strong">Testing</strong><div style="margin-left:3em">If another user on another phone is receiving push alerts, test the non-working phone with the working user account.  If working user account works on the non-working phone, then you know the phone is fine.  The user account must not have correct permissions.  An example of isolating the issue to user permissions or mobile device by leveraging a user account that we know works.<br><br><br></div></div><span style="font-size:150%;line-height:116%"><strong class="text-strong"><a name="Mobile devices tab">Mobile devices tab</a></strong></span><br><br>Global settings -&gt; Mobile devices tab<br>Setting permissions correctly for the mobile device is equally important as the user permissions.<div style="margin-left:3em"><br><strong class="text-strong">Mobile device</strong><br>The first check is to confirm whether your phone is listed in the Mobile devices tab.  This confirms your Server settings on the mobile app are correct and your device is registered with the BI server.  <br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2216" class="postimage" alt="mobile push enabled.png" onclick="viewableArea(this);" /></dt></dl></div><div style="margin-left:3em"><br><strong class="text-strong">Mobile app server settings</strong><br>If your phone is NOT listed, you first need to double check your <a href="viewtopic.php?f=19&amp;t=2211#Server%20settings" class="postlink">Server settings on the mobile app</a>.<br><br><strong class="text-strong">User permissions</strong><br>If the Server settings are correct, double check your User permissions above.<br><br><strong class="text-strong">Web server advanced</strong><br>Review the Web Server Advanced dialog.  Make sure the mobile device is not blocked via the IP address.<br><br></div><strong class="text-strong">Push notifications</strong><div style="margin-left:3em">If this device should receive Push notifications, confirm Push notifications are enabled for the user's phone (above).<br>This is another reason why Push notifications may not be going to your device.<br><br></div><strong class="text-strong">Mobile Tags</strong><div style="margin-left:3em">Mobile tags can also prevent Push notifications and Alert actions.  If you are using tags make sure the mobile phone in question has the tag associated with the alert.<br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2217" class="postimage" alt="action map_tags1.png" onclick="viewableArea(this);" /></dt></dl></div><br>The below action map shows this particular Push notification ONLY goes to devices with the security tag.<br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2218" class="postimage" alt="action map_tags2.png" onclick="viewableArea(this);" /></dt></dl></div><br>Tags can prevent any alert (not just Push notifications) from being sent to a mobile device.  Best to not use tags and confirm the alert works.  Afterwards, apply tags if necessary.<br><br></div><strong class="text-strong">Legacy GCM</strong><div style="margin-left:3em">Make sure Legacy GCM is unselected.  Only needed for very old models which get phased out over time.<br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2219" class="postimage" alt="mobile gotchas legacy GCM.png" onclick="viewableArea(this);" /></dt></dl></div></div><strong class="text-strong">Testing</strong><div style="margin-left:3em">If another user on another phone is receiving alerts, maybe test the non-working phone with the working user account.  If the working user account does NOT work on the non-working phone, then you know the phone is the issue.  An example of isolating the issue to user permissions or mobile device permissions by leveraging a user account that we know works.<br><br>If the working account does NOT work on the new phone:<ul><li>You have to double check your Server settings on the mobile app.</li><li>Revisit your <a href="viewtopic.php?f=20&amp;t=2539" class="postlink">network setup</a>, especially the Global settings -&gt; Web server tab.  Review the Web Server Advanced dialog as well.  Make sure the mobile device is not blocked via the IP address.</li></ul></div></div><strong class="text-strong">Mobile device/phone settings</strong><div style="margin-left:3em">If you are trying to troubleshoot alerts to your mobile app, the other aspect of permissions is in regards to the Phone settings.  The <a href="viewtopic.php?f=19&amp;t=2211#Server%20settings" class="postlink">Server settings</a> section of the Mobile devices article explains how to use the Wizard to setup the Phone settings correclty.  </div><p>Statistics: Posted by <a href="https://blueirissoftware.com/forum/memberlist.php?mode=viewprofile&amp;u=521">varghesesa</a> — Mon Dec 20, 2021 7:22 pm</p><hr />
]]></content>
	</entry>
	</feed>
