Only Sent Out Email When Alarm Is Set

vwsplitty

Young grasshopper
Oct 21, 2015
78
20
Hi,

As the title says really. I have had BI running ok for a couple of years with around four cameras, it is set to record and send out an email alert when motion is triggered. The only thing i find with this is when i am at home out in the garden say i get loads of emails come through.
What i want to be able to do is still record on motion BUT only send out emails when my house alarm is set.
Now presuming i can get an output from my galaxy alarm (is already on LAN sending out info via selfmon web monitoring) how do i 1. get an input in to blueiris and 2. use that input to make the system only send out email alerts when set?

thank peter.
 
Hi,

As the title says really. I have had BI running ok for a couple of years with around four cameras, it is set to record and send out an email alert when motion is triggered. The only thing i find with this is when i am at home out in the garden say i get loads of emails come through.
What i want to be able to do is still record on motion BUT only send out emails when my house alarm is set.
Now presuming i can get an output from my galaxy alarm (is already on LAN sending out info via selfmon web monitoring) how do i 1. get an input in to blueiris and 2. use that input to make the system only send out email alerts when set?

thank peter.
You should be able to do it...you can have the alarm change to a new profile that is a duplicate of the other but with no alerts...or you can have it change the traffic signal status with only disable alerts checked in the settings...there are many threads discussing this..in the interim you can do it via the mobile app..
 
You should be able to do it...you can have the alarm change to a new profile that is a duplicate of the other but with no alerts...or you can have it change the traffic signal status with only disable alerts checked in the settings...there are many threads discussing this..in the interim you can do it via the mobile app..

Hi and thanks

What can I use to actually get an input from an external source in to Bi?
 
I see that the Amazon Alexa can connect to the Blue Iris PC for giving voice commands, such as 'Alexa, switch to profile 2.' Haven't tried that out myself, as I don't see any need for it, but it would be cool if Alexa had a skill which would audibly report on camera motion from the driveway zone.
 
@fenderman . i having been speaking with the person behind the ethernet module i use on my alarm and he has told me i can get the monitoring server of the system behind monitoring the module to send out a URL call when the alarm is set. Do you know if blueiris can use this URL call to do as you say above?
 
@fenderman . i having been speaking with the person behind the ethernet module i use on my alarm and he has told me i can get the monitoring server of the system behind monitoring the module to send out a URL call when the alarm is set. Do you know if blueiris can use this URL call to do as you say above?
From the help file
Direct image, video and command requests

In addition to serving HTML pages, Blue Iris can also act as a "video server." There are a number of methods for retrieving images and video from the Blue Iris web server for use on mobile devices, converting a USB camera into a web camera, or for any other purpose. Here are the paths to these methods:

/image/{cam-short-name}?q=50&s=80 A single JPEG image from a specific camera or group, with optional quality (q) and scale (s) parameters. Quality is a percentage from 1-100, and scale may be any number >0.
/image/{cam-short-name}?h=100 You may also specify a specific height (h) or width (w) instead of scale.
/mjpg/{cam-short-name}/video.mjpg An M-JPEG stream. This stream is compatible with Blue Iris's "MJPEG stream request."
/file/clips/{filename}&mode=jpeg&speed=100 An M-JPEG stream of a clip from your New clips folder. You may include additional subdirectory names in the filename. The speed parameter is optional, a percentage of normal playback speed.
/thumbs/{filename} A thumbnail image from a specific file in the New clips folder.
/alerts/{filename} A JPEG image from the Alerts folder.
/admin?profile=x&lock=y Set the active profile to x. Use x=-1 to toggle the lock status, or set the lock=y, 0=run, 1=temp, 2=hold
/admin?schedule=1 or 0 or schedule name x=0 or 1 to disable/enable Options/Schedule, or a name to set the current schedule
/admin?signal=x Changes the traffic signal state and returns the current state. x=0 for red, x=1 for green, x=2 for yellow. This requires admin authentication.
/admin?output=x&msec=y or &force=true Temporarily change the active profile to x. Use x=-1 to toggle the lock status.
/admin?input=x Set DIO output x=0-7 on for y msec, or force on indefinitely
/admin?macro=x&text={text} Set macro number x=1-9 to value {text}
/admin?console={group name} Select the specified group for display on the console, "index" is All cameras.
/admin?camera=x&trigger Trigger camera x (short name)
/admin?camera=x&manrec=1 or 0 Start or stop manual recording on camera x (short name)
/admin?camera=x&snapshot Snapshot on camera x (short name)
/admin?camera=x&reset Reset camera x (short name)
/admin?camera=x&ptzcycle=1 or 0 Trigger camera x (short name)
/admin?camera=x&pause=x Send pause command to camera x (short name), x=-2 to 10 matching right-click Pause menu
/admin?camera=x&enable=1 or 0 Enable or disable camera x (short name)
/admin?camera=x&motion=1 or 0 Enable or disable camera x (short name)
/admin?camera=x&hide=1 or 0 Enable or disable camera x (short name)
/admin?camera=x&mdelay=x Enable or disable camera x (short name)
/admin?camera=x&webcast=1 or 0 Enable or disable camera x (short name)
/admin?camera=x&preset=x Enable or disable camera x (short name)
/admin?camera=x&schedule=1 or 0 Enable or disable camera x (short name)
/admin?camera=x&profile=x Enable or disable camera x (short name)
/admin?camera=x&alerts=x Enable or disable camera x (short name)
/audio/{cam-short-name}/temp.wav Pull a raw audio stream (MIME type audio/x-wav).
/cam/{cam-short-name}/pos=x Performs a PTZ command on the specified camera, where x= 0=left, 1=right, 2=up, 3=down, 4=home, 5=zoom in, 6=zoom out
/cam/{cam-short-name}/pos=100 Causes a snapshot image to be captured from the specified camera.
/h264/{cam-short-name}/temp.h264 Pull a raw H.264 stream (MIME type video/H264). This stream will play in a tool like VLC, and may be used in future versions of the ActiveX control.
/h264/{cam-short-name}/temp.ts Pull an MPEG-2 transport stream (MIME type video/MP2T).
/h264/{cam-short-name}/temp.m or .m3u8 Pull a virtual M3U8 file (MIME type application/vnd.apple.mpegurl). This will play in QuickTime, iPad and the iPhone using the Apple HLS (HTTP Live Streaming) format.
 
Can I use the geofence option to change profiles?

If I can will it work with mine and my wife phone at the same time?
 
Can I use the geofence option to change profiles?

If I can will it work with mine and my wife phone at the same time?
yes...but some folks have issues with accuracy and it requires that gps be always on which drains battery...there is a thread that links to a youtube video where there are instructions to get geofence based on the wifi access point...
 
@fenderman just had a quick play around with geofence last night. At first it didn’t really seem to not update that great if I’m in or out. Using the mobile app I set my genofence but couldn’t work out what would be the difference is setting it selecting “sever” or “my position” as both would of been th same place???.
Well didn’t do much with it apart from I’m just leave It on but log the genofence update.
I have been out and back in today and it seemed to work repairs the same times I was in and out.
So now to try and work this in to what I already have.
At the moment I have two profiles switched by a night/Day timer. Basically all the time all cameras are set to record on trigger but only the Day profile will send out emails
I did this as I found at night I was getting lots of emails from spiders and car head lights at the front of the house (I do have work to do on this front switching to separate ir )
Soooooo I would like to keep my this running as is but over the top of this time change I would also like to add in the genofence rule. Is this something I could do, I saw a YouTube video meantion using “temp” setting for something like this but couldn’t see how it worked.

1. Profile day someone in =don’t send Alarm’s
Profile day everyone out =send Alarm’s
Profile night some in = don’t send alarms
Prfile night everyone out = don’t send Alarm’s

2. Do you know if the iOS app requires “always use geofence option” and “background app refresh “ enabled to be able to work or is it enough to have just “use location while using app” and “background refresh” off? I ask as the battery took a bit of a hammering today and when I checked bi logs it seems I keep getting logged in every so often for a few minutes without even using the app.

Thanks for and help

Cheers
 
Does anyone know if the following command can used over wan?

/admin?profile=x&lock=y Set the active profile to x. Use x=-1 to toggle the lock status, or set the lock=y, 0=run, 1=temp, 2=hold
 
Does anyone know if the following command can used over wan?

/admin?profile=x&lock=y Set the active profile to x. Use x=-1 to toggle the lock status, or set the lock=y, 0=run, 1=temp, 2=hold

Looked around a bit more and it would seem I need to enter like this?

Http://user:password@ip.address:port/admin?profile=x


User=admin user name
Password = admin password
Ip addess of Server = extacyly that or domain
Port = port you are using
X= prfile number

Yet to try it out as away but does anyone know how to get around using an admin account and password to do this , I’m concerned it only http and not https so would be sent as plain text over WAN?
I read somewhere on here about how someone used to put a ip of connecting device in blue iris white list and they didn’t need admin details to effect a http command.

Thank for any help
 
@vwsplitty: Did you ever test it or figure it out?

I am also looking to switch between three different profiles in Blue Iris:
Profile 1: At home and alarm disable, no alerts needed
Profile 2: At home and external alarm enabled (for example during night)
Profile 3: Away and alarm fully armed.

I am using home automation software Indigo Domotics that is able to read my alarm status as well as the status of all door locks. With this I could create a small script that sends the http-request to my Blue Iris server which is in the same internal LAN as my home automation server.

I tried with the command above but the only thing that happens is that I arrive at the Blue Iris remote page web login. (I am using Blue Iris UI3 beta as the web server pages: Blue Iris UI3 beta test is now open!)
 
Yes all working very nicely. See my posts
cURL & HTTP Request Help Required Alarm Intergration

You have to use an admin account , have only simple login so you can put the username and password in the text of the url, use WAN or domain not LAN ip And additionally as it’s http normally with password being sent in plan text I set up stunnel to use https.
 
Cool! Thanks for your reply!

I am able to get it to work locally in my lan using either localhost : port/..... or locali : port/.... BUT I have to (as you mention) UNCHECK the tick box "Use secure session keys and login page" which is bad for me since I am using the Blue Iris remote access web pages UI3 from @bp2008.

I guess I would need to install stunnel as you have done to be able to use https.

Another solution would be to select login for non-LAN IP:s while local LAN IP:s can access without login. However, since I am afraid of hackings (even on my local LAN) I really prefer to be able to have login required enabled for everyone.

Another solution would be if Blue Iris could have a "white list" for local IP-adresses that can access without login required.
 
Last edited:
Cool! Thanks for your reply!

I am able to get it to work locally in my lan using either localhost : port/..... or locali : port/.... BUT I have to (as you mention) UNCHECK the tick box "Use secure session keys and login page" which is bad for me since I am using the Blue Iris remote access web pages UI3 from @bp2008.

I guess I would need to install stunnel as you have done to be able to use https.

Another solution would be to select login for non-LAN IP:s while local LAN IP:s can access without login. However, since I am afraid of hackings (even on my local LAN) I really prefer to be able to have login required enabled for everyone.

Another solution would be if Blue Iris could have a "white list" for local IP-adresses that can access without login required.

@CrazyFin You don't want to send username/password over. It's possible to whitelist 1 or more local IP addresses using carrot annotation.

Here is BI help:

BI help.png

Here is my configuration:

whitelist example.png
 
@actran:

Cooool! I had totally missed the carrot annotation method. :oops:

I added two local IP addresses using the carrot annotation method and kept (as you showed in the screenshot above) the tick box for secure connections only enabled.

However, when I try to send the switch profile command from other the same computer as where my BI is or from another computer within my local LAN (and has been added to the white list with carrot annotation) I still end up at the BI login screen (for UI3 that is). I am wondering if the fact that I am using UI3 web gui instead of the BI default webserver files is causing this?

The command I send is for example "localipadress : port /admin?profile=y" where y is set 1 or any other number between 1-9 to choose the profile I want. When I send that command I end up on the BI UI3 login page. :screwy: Or I end up with a white empty page (and not seeing the executed command which I see in the upper left corner if I untick the secure login).
 
  • Like
Reactions: Scott1
@CrazyFin I'm using UI3 over here.

Make sure that you are coming from the IP addresses that you've configured.
I would also set those PCs as static IP addresses.