Vera Blue Iris Unofficial Plugin

[quote=“clippermiami, post:229, topic:181819”]jsonBI command interface to Blue Iris now available

I don’t know if this has been seen here or not but it looks interesting:

http://www.cam-it.org/index.php?topic=4722.0;topicseen[/quote]

I was fiddling with this today in a DOS window in Windows XP and it does indeed work to control Blue Iris. I was able to log in and enable/disable an interior camera.

I don’t know how this meshes with the work that is going on to integrate the Plug In with BI. I’m anxious to see the PlugIn work directly with BI and have capabilities such as Login, Enable/Disable camera, Record Start/Stop, etc. exposed for a PLEG to control the camera functions diectly. One thing I want to do is to be able to disable interior cameras if anyone is at home and conversely enable interior cameras if the alarm system is armed and violated regardless of anyone at home or not.

[quote=“clippermiami, post:241, topic:181819”][quote=“clippermiami, post:229, topic:181819”]jsonBI command interface to Blue Iris now available

I don’t know if this has been seen here or not but it looks interesting:

http://www.cam-it.org/index.php?topic=4722.0;topicseen[/quote]

I was fiddling with this today in a DOS window in Windows XP and it does indeed work to control Blue Iris. I was able to log in and enable/disable an interior camera.

I don’t know how this meshes with the work that is going on to integrate the Plug In with BI. I’m anxious to see the PlugIn work directly with BI and have capabilities such as Login, Enable/Disable camera, Record Start/Stop, etc. exposed for a PLEG to control the camera functions diectly. One thing I want to do is to be able to disable interior cameras if anyone is at home and conversely enable interior cameras if the alarm system is armed and violated regardless of anyone at home or not.[/quote]

I do this currently by changing profiles. When I’m home profile “X” doesn’t record inside cameras. When I’m away (using PLEG and vera to determine home and away with geofence, and ping sensors) then profile “Y” records. Altho I don’t have mine tied to and alarm, It would be easily to add that condition to PLEG and make a Profile “Z” that continues to record all cameras while alarm is active.

[quote=“integlikewhoa, post:242, topic:181819”][quote=“clippermiami, post:241, topic:181819”][quote=“clippermiami, post:229, topic:181819”]jsonBI command interface to Blue Iris now available

I don’t know if this has been seen here or not but it looks interesting:

http://www.cam-it.org/index.php?topic=4722.0;topicseen[/quote]

I was fiddling with this today in a DOS window in Windows XP and it does indeed work to control Blue Iris. I was able to log in and enable/disable an interior camera.

I don’t know how this meshes with the work that is going on to integrate the Plug In with BI. I’m anxious to see the PlugIn work directly with BI and have capabilities such as Login, Enable/Disable camera, Record Start/Stop, etc. exposed for a PLEG to control the camera functions diectly. One thing I want to do is to be able to disable interior cameras if anyone is at home and conversely enable interior cameras if the alarm system is armed and violated regardless of anyone at home or not.[/quote]

I do this currently by changing profiles. When I’m home profile “X” doesn’t record inside cameras. When I’m away (using PLEG and vera to determine home and away with geofence, and ping sensors) then profile “Y” records. Altho I don’t have mine tied to and alarm, It would be easily to add that condition to PLEG and make a Profile “Z” that continues to record all cameras while alarm is active.[/quote]

This is basically what I’m hoping to accomplish. i’m hopeful that the integration of the Blue Iris Plug In and Blue Iris itself will make the interface clean e.g an option/setting in the Plug In that will enable motion sensing in BI, cause BI to notify Vera when motion is sensed, allow Vera to cause a recording, change profiles, turn on lights, etc., I know some of this can be done now but it involves lots of calling WGET with arcane strings to send commands, etc. I’d like to see an interface that my wife/kids can set up, a few simple options/settings to cause things to happen without 20 years of experience in programming :slight_smile:

{Update}
On further reflection I’d like to see all the BI and camera status and controls exposed for use in PLEGs
Just a few examples:
Triggers:

  • Motion Detected Camera N
    Device Properties:
  • Camera Status (Enabled/Disabled/Recording)
  • Profile N Active
    Actions:
  • BI Select Profile N
  • Enable/Disable Camera N
  • Record Camera N/All
  • Enable/Disable Motion Detection Camera All/N

With this available to PLEG you could create some powerful security/monitoring scenarios with camera control, lighting control, alarm control, etc.

I’m hoping Undertoe is working on adding the fix for Ui7 so that it doesn’t complain about my camera devices not connected anymore. :slight_smile: I’ve got 10 of those on top of the UI7 dashboard

As per MCV, for UI7, add in the code the statement: “luup.set_failure(0, lul_device)” if your plugin has initialized correctly.
This appears incompatible with UI5 as per Richard Schaeffer. What works for both but is not advised is : luup.set_failure(false)

Perhaps MCV could provide a standard (recommended) code snippet that would detect the UI it’s running on and then execute the recommended statement? So all plugin developers could use that to avoid these issues?

[quote=“clippermiami, post:243, topic:181819”]This is basically what I’m hoping to accomplish. i’m hopeful that the integration of the Blue Iris Plug In and Blue Iris itself will make the interface clean e.g an option/setting in the Plug In that will enable motion sensing in BI, cause BI to notify Vera when motion is sensed, allow Vera to cause a recording, change profiles, turn on lights, etc., I know some of this can be done now but it involves lots of calling WGET with arcane strings to send commands, etc. I’d like to see an interface that my wife/kids can set up, a few simple options/settings to cause things to happen without 20 years of experience in programming :slight_smile:

{Update}
On further reflection I’d like to see all the BI and camera status and controls exposed for use in PLEGs
Just a few examples:
Triggers:

  • Motion Detected Camera N
    Device Properties:
  • Camera Status (Enabled/Disabled/Recording)
  • Profile N Active
    Actions:
  • BI Select Profile N
  • Enable/Disable Camera N
  • Record Camera N/All
  • Enable/Disable Motion Detection Camera All/N

With this available to PLEG you could create some powerful security/monitoring scenarios with camera control, lighting control, alarm control, etc.[/quote]

I haven’t seen any updates from Undertoe in a few months now, hope hes still working on this.

I think the only weget I use is to change profiles. Blue Iris app already notify’s Vera of motion (there is a motion sensor). Most of my work is currently done in PLEG (which isn’t easy for everyone) but if PLEG still has to be used down the road I don’t see it making anything much easier for the non experienced.

The biggest difference I guess right now would be that your asking for more detail of individual camera. My weget changes the profile and I have a group of cameras. I would run out of profiles if I got real picky and wanted one camera vs. all interior cameras.

Me thinks Untertoe may be a mite busy changing diapers, nightly feedings and other new baby related chores. 8)

[quote=“undertoe, post:55, topic:181819”]I updated the install instructions for installing via mios app store just in case their is any confusion. I will make an install video later.

Anyone using the motion triggering from blue iris to vera, looking for some feedback on that.[/quote]

re Ver 0.6
undertoe, thanks for a great app. I have mine installed with 4 interior and 9 exterior cameras and motion detection enabled on all and its working great (my house has lots of odd corners and crannies outside so it takes a camera for just about every window/door :).)

All the BI cameras are PoE with the exception of one Wi-Fi. I got a great price for cameras and switches from Hong Kong so they are all the same manufacturer and software characterisitics, just some interior and some weatherproof exterior

No discernible load on Vera and its accessible from anywhere.

With regard to the motion sensing question I just enabled motion sensing so I’m not doing anything useful with it as yet. However the configuration instructions are easy and I was able to configure all the cameras with motion and the test worked for each one. So far no ACTUAL motion detection but I need to fiddle with the individual camera detection settings in Blue Iris to get it working properly I guess. At least everything is the same so i should be able to work it fairly quickly.

I certainly appreciate your efforts. I look forward to the further integration with Blue Iris when you have time away from 2AM feedings and diapers :slight_smile:

I make a lot of use of Richard’s fantastic PLEG Plug In so I tend to think in terms of how things would work in that environment now — as I posted earlier some o the things i’d like to see in an integrated approach:

Triggers:

  • Motion Detected Camera N

Device Properties:

  • Camera Status (Enabled/Disabled/Recording)
  • Profile N Active

Actions:

  • BI Select Profile N
  • Enable/Disable Camera N
  • Record Camera N/All
  • Enable/Disable Motion Detection Camera All/N

With this available to PLEG you could create some powerful security/monitoring scenarios with camera control, lighting control, alarm control, etc.

Thanks for listening and thanks again for a great app.

I have all my profiles configured and Vera Luup commands (WGET) to change profiles for certain conditions. Right now I’ve defined 5 profiles and the associated camera behavior

  • Normal Daytime
    – Passive monitoring
  • Norma; Nighttime
    – Passive monitoring
  • Alarm Armed Away
    – Cameras Motion Sensors enabled
  • Alarm Armed Home/Instant
    – Cameras Motion Sensors enabled
  • Alarm Violated
    – All Cameras in Continuous Record Mode

But I’d like to some up with a way to have an individual outside camera a) detect motion; b) turn on the associated outside light; c) start recording under Vera command; d) send snapshot via EMS/Emaill via Vera. Any hints on Luup code that would command an individual camera to record?

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 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.

This list above is found in the “HELP” inside blue iris program.

So basicly you only need to have vera send

luup.inet.wget(“IP_ADDRESS:PORT/admin?camera=CAMERASHORTNAME&trigger&user=USERNAME&pw=PASSWORD”)
This will trigger the camera to record (but really blueiris should already trigger it if there was motion so I don’t see where your going with this)

Motion sensor already in VERA

When you sense motion PLEG or the like to turn on light and send the command above.

Thanks!!

[quote=“integlikewhoa, post:250, topic:181819”]So basicly you only need to have vera send

luup.inet.wget(“IP_ADDRESS:PORT/admin?camera=CAMERASHORTNAME&trigger&user=USERNAME&pw=PASSWORD”)
This will trigger the camera to record (but really blueiris should already trigger it if there was motion so I don’t see where your going with this)
{SNIP}[/quote]

Hmmm good point now that you mention it a bit superfluous, eh :slight_smile:

When im away Blue iris triggers the record and sens the motion to vera. Then in vera i have pleg that when im away and has motion to send a vera alert with a picture. If I need more then that picture I open BI app and watch the recording l.

I currently dont have a need to turn on the light but thats an easy Pleg off the same motion input. So from what i can tell all your request an easily be done already.

One question I can seem to figure out in all the posts… does the plugin create a separate camera device for each camera you have configured through blue iris.

It didn’t in mine. I installed the app and then used the “Create Another” button once for each camera

It didn’t in mine. I installed the app and then used the “Create Another” button once for each camera[/quote]

This is correct it won’t automatically do this. You need to “create another” for each camera you want (same for all other plugins). You then put in the same info but different camera name to assign it to a camera.

If you want the “INDEX” or multi camera screen you can “Create another” for that too.

It didn’t in mine. I installed the app and then used the “Create Another” button once for each camera[/quote]

This is correct it won’t automatically do this. You need to “create another” for each camera you want (same for all other plugins). You then put in the same info but different camera name to assign it to a camera.

If you want the “INDEX” or multi camera screen you can “Create another” for that too.[/quote]

Cool. thanks!

Hey… one last question. Is there a way to get BI to see a webcam on another computer, other than the one it’s installed on? Although my wife might find that a bit creepy!

I ain’t going near that question… I value my life ;D

I ain’t going near that question… I value my life ;D[/quote]

In that case i won’t say anything because I value your life too 8)