Author Topic: Is control of Blue Iris software possible via Vera?  (Read 1433 times)

Offline pbrisebois

  • Jr. Member
  • **
  • Posts: 62
  • Karma: +0/-0
Is control of Blue Iris software possible via Vera?
« on: July 23, 2016, 02:16:49 pm »
Hi, I just wanted to know if it was possible to control the Blue Iris software via a plugin or via Luup with my Vera 3 controller. What I want to do is to switch between Profiles by either activating a Vera Scene or via PLEG. I currently have Blue Iris (Ver. 4.0.3) installed on a standalone CPU that I mainly use only for Camera recording.

Is this possible, and if so, how do I do it. Please keep instructions as detailed as possible as I am a newbie at this.

Offline johnfdl

  • Full Member
  • ***
  • Posts: 111
  • Karma: +3/-0
Re: Is control of Blue Iris software possible via Vera?
« Reply #1 on: July 23, 2016, 02:24:26 pm »
Not sure since I don't have or use BlueIris, but a search here on the forums yields many results for Blue Iris and one of the first ones is regarding the Vera Plug In.    So that may be a good place to start
https://github.com/undert03/vera-blueiris

Offline silencery

  • Sr. Member
  • ****
  • Posts: 254
  • Karma: +14/-1
Re: Is control of Blue Iris software possible via Vera?
« Reply #2 on: July 23, 2016, 03:27:31 pm »
Hi, I just wanted to know if it was possible to control the Blue Iris software via a plugin or via Luup with my Vera 3 controller. What I want to do is to switch between Profiles by either activating a Vera Scene or via PLEG. I currently have Blue Iris (Ver. 4.0.3) installed on a standalone CPU that I mainly use only for Camera recording.

Is this possible, and if so, how do I do it. Please keep instructions as detailed as possible as I am a newbie at this.

Yup, absolutely possible. In case the Blue Iris plugin doesn't handle this natively, you can use simple HTTP requests. Sorry, I don't have the detailed instructions since I'm not using PLEG or luup for logic, but the gist of it is you can send an HTTP request to your blue iris server from Vera.

From there, you have the following options (pasted from the Blue Iris help file under "The Web Server" section)

Quote
/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 Temporarily change the active profile to x.  Use x=-1 to toggle the lock status.
/admin?camera=x&trigger Trigger camera x (short name)
/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.
/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 iPhone Live Streaming format.

In your case, you just need vera to generate an HTTP request through luup. For example, the URL you need vera to generate would be something like this:

http://192.168.1.100/admin?profile=2

where 192.168.1.100 is the address for your blue iris machine and 2 = the profile ID you want to switch to.

In case your blue iris web server has a password setup, you can add that in with the following example:
http://username:password@192.168.1.100/admin?profile=2

Remember to test the URL in your browser first to make sure the profiles are switching correctly before adding it into your vera rules.

Offline RichardPHarvey

  • Sr. Member
  • ****
  • Posts: 350
  • Karma: +7/-148
Re: Is control of Blue Iris software possible via Vera?
« Reply #3 on: August 03, 2016, 12:20:42 pm »
Lots of us using Blue Iris do this, I have mine set so that whenever my wife's iPhone or my iPhone are local kick into BI profile 2 where I have it recording but NOT alerting.  Here are my command which I use in a PLEG:

luup.inet.wget("http://10.0.1.20:81/admin?profile=1&lock=1&user=RichardPHarvey&pw=passwordhere")

luup.inet.wget("http://10.0.1.20:81/admin?profile=2&lock=1&user=RichardPHarvey&pw=passwordhere")

Offline clippermiami

  • Hero Member
  • *****
  • Posts: 1382
  • Karma: +27/-6
Re: Is control of Blue Iris software possible via Vera?
« Reply #4 on: August 03, 2016, 12:33:44 pm »
yes, I use HTTP from BlueIris-> update Vera and Vera->BlueIris to control things like profiles depending on the state of the alarm in Vera, time of day in Vera, etc.
Two Vera Plus UI7 Linked via HTTP, 90+ Devices. PlugIns: PLEG, DSC, Blue Iris, MySensors,  AutoVera, ImperiHome, VeraAlerts, EventWatcher

Offline pls90

  • Full Member
  • ***
  • Posts: 215
  • Karma: +1/-0
Re: Is control of Blue Iris software possible via Vera?
« Reply #5 on: August 13, 2017, 03:44:13 am »
Lots of us using Blue Iris do this, I have mine set so that whenever my wife's iPhone or my iPhone are local kick into BI profile 2 where I have it recording but NOT alerting.  Here are my command which I use in a PLEG:

luup.inet.wget("http://10.0.1.20:81/admin?profile=1&lock=1&user=RichardPHarvey&pw=passwordhere")

luup.inet.wget("http://10.0.1.20:81/admin?profile=2&lock=1&user=RichardPHarvey&pw=passwordhere")

I had this working, but now all of a sudden the above won't change the profile.
The http string put in a browser switches profiles just fine, the same in a wget sent from vera in a scene or luup test window does not. Any ideas? Thank you!

Offline pls90

  • Full Member
  • ***
  • Posts: 215
  • Karma: +1/-0
Re: Is control of Blue Iris software possible via Vera?
« Reply #6 on: August 13, 2017, 08:42:39 am »
never mind, turns out it was the firewall sw on the bi pc blocking the request