Author Topic: Blue iris vs DVR?  (Read 19588 times)

Offline Chris H.

  • Full Member
  • ***
  • Posts: 199
  • Karma: +3/-0
Re: Blue iris vs DVR?
« Reply #15 on: November 19, 2013, 08:10:49 pm »
Chris, how are you handling the scenes with timings?

thx for sharing!

In your seen make the Trigger the PLEG device the choose "A Condition is Satisfied" -> enter a name for the Trigger (I normally use "t" plus Condition name) -> enter the Condition name. When the condition is true it will trigger the scene. I have one PLEG instance that handles all timers. When you use the work "NOW" it causes the instance to run every minute, this way you are only running this once instance every minute instead of a bunch. This was a tip from RTS in one of his post.
Vera Lite (1), Trane Thermostat (1), Yale Deadbolt (1), Foscam FI9821w (4), GE 45602 (1), GE 45603 (2), Intermatic CA600(11)/CA3000(6)/CA5100(4)/CA3500(3), Aeon Labs MicroSmartSwitch (1), Aeon Door/Window Sensors (3), EnvisaLink 3 on DSC 1616 (1), OpenSprinklerPi

Offline greenhighlighter

  • Full Member
  • ***
  • Posts: 104
  • Karma: +0/-0
Re: Blue iris vs DVR?
« Reply #16 on: November 20, 2013, 03:45:06 pm »
You should use the EVL-3 to link your DSC Alarm system to Vera.

Yep, I will be setting this up.  However, can BI link to DSC?

Why would you want to link BlueIris to your DSC? The idea is to have all the control in Vera and BlueIris monitor and record the video. If you need to send something to the DSC, you can do it from Vera.

Maybe I'm misunderstanding.  BI cannot connect to Vera, right?  But if it could connect to DSC, then I could use that connection to connect BI to Vera:  BI -> DSC -> Vera. 

So, right now, people are just operating BI separate from Vera, right?  It'd be nice to be able to connect Vera and BI, that's all.

Offline Chris H.

  • Full Member
  • ***
  • Posts: 199
  • Karma: +3/-0
Re: Blue iris vs DVR?
« Reply #17 on: November 20, 2013, 07:40:23 pm »
@greenhighlighter, I use BlueIris to do the Motion Detection for my Foscam 9821 HD cameras and run a scene of Vera to trigger the motion sensor for that room and reset it. BlueIris can send messages to Vera, it just doesn't have a plugin, but instead you can use wget in a batch file. Here is an example:
Quote
c:\BlueIris\wget.exe "http://192.168.xxx.xxx:49451/data_request?id=lu_action&output_format=xml&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=RunScene&SceneNum=73" --delete-after

You put this in a .bat file and have BlueIris execute it on the Alert tab for the camera.
Vera Lite (1), Trane Thermostat (1), Yale Deadbolt (1), Foscam FI9821w (4), GE 45602 (1), GE 45603 (2), Intermatic CA600(11)/CA3000(6)/CA5100(4)/CA3500(3), Aeon Labs MicroSmartSwitch (1), Aeon Door/Window Sensors (3), EnvisaLink 3 on DSC 1616 (1), OpenSprinklerPi

Offline greenhighlighter

  • Full Member
  • ***
  • Posts: 104
  • Karma: +0/-0
Re: Blue iris vs DVR?
« Reply #18 on: November 20, 2013, 07:56:23 pm »
@greenhighlighter, I use BlueIris to do the Motion Detection for my Foscam 9821 HD cameras and run a scene of Vera to trigger the motion sensor for that room and reset it. BlueIris can send messages to Vera, it just doesn't have a plugin, but instead you can use wget in a batch file. Here is an example:
Quote
c:\BlueIris\wget.exe "http://192.168.xxx.xxx:49451/data_request?id=lu_action&output_format=xml&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=RunScene&SceneNum=73" --delete-after

You put this in a .bat file and have BlueIris execute it on the Alert tab for the camera.

I wish I could say "aaaah, OK".  But I have no clue what a wget is.  I have yet to set up my Vera, so hopefully once I get tinkering (and start doing more of the implementation reading), this will make sense :) 

Thanks for clarifying and providing a link!!

Offline Chris H.

  • Full Member
  • ***
  • Posts: 199
  • Karma: +3/-0
Re: Blue iris vs DVR?
« Reply #19 on: November 20, 2013, 10:45:57 pm »
Wget actually has another use, but in this instance you are just using it to trigger a scene in Vera by calling a URL on Vera. Just know you will need to download an exe called wget and for each action you want BlueIris to do on Vera you will put it in a .bat file like the one I showed you.

BlueIrus lets you run scripts or programs for Alerts on Cameras, this could also be a wav file but in this instance it's a script in a .bat file.

Once you get your Vera just let me or someone here know what you are wanting to do and we will help.
Vera Lite (1), Trane Thermostat (1), Yale Deadbolt (1), Foscam FI9821w (4), GE 45602 (1), GE 45603 (2), Intermatic CA600(11)/CA3000(6)/CA5100(4)/CA3500(3), Aeon Labs MicroSmartSwitch (1), Aeon Door/Window Sensors (3), EnvisaLink 3 on DSC 1616 (1), OpenSprinklerPi

Offline Cor

  • Hero Member
  • *****
  • Posts: 1108
  • Karma: +4/-4
Re: Blue iris vs DVR?
« Reply #20 on: November 21, 2013, 03:09:36 am »
You can also manipulate Blue iris, changes profiles, with that (de) activate camera's, motion detect, schedules ...etc.

I use this in my scene to change to profile1 for example:
luup.inet.wget("http://10.XX.XX.20:84/admin?profile=1&user=XXXXX&pw=XXXXXXXXX")

Cor

Offline greenhighlighter

  • Full Member
  • ***
  • Posts: 104
  • Karma: +0/-0
Re: Blue iris vs DVR?
« Reply #21 on: November 22, 2013, 06:07:57 pm »
Thanks!  This forum is why Vera is awesome!

Offline mxg

  • Sr. Newbie
  • *
  • Posts: 22
  • Karma: +0/-0
Re: Blue iris vs DVR?
« Reply #22 on: January 05, 2014, 12:29:13 am »
Vera & Blue Iris (BI) & FOSCAM cameras & Google+ Auto Backup has been a potent combination.

I'm extremely happy with the above combination as I've been able to achieve all that I've wanted for integrated video surveillance.

Features:
Vera triggers BI to monitor/record motion when my home is Armed Away or Armed Stay
Vera triggers my 3 FOSCAMs to activate Infrared Lighting when Armed Away or Armed Stay

When I disarm my home:
Vera triggers BI to stop monitor/record motion after a 5 min delay post disarm.
Vera triggers my 3 FOSCAMs to turn off infrared LEDS

All captured snapshots and AVIs by BI are automatically upload to the cloud via Google+ Auto Backup. JPGs are immediately uploaded. AVIs are uploaded the next day. With my Google account, I get unlimited storage for jpgs and AVIs less then 15 minutes. BI can be configure to generate short clips.
I've configured BI to delete snapshots and AVIs after seven days, but Google+ Auto Backup has uploaded copies to the cloud for my permanent record. The best part is that they are automatically sorted into days. Often "auto awesome" is applied too! (motion gifs created from pics and videos!) Luckily, my ISP doesn't count uploads to my data cap.

I'm running BI on dedicated Dell Computer (an old GX260 with 2 gig of RAM). I've experimented with different BI configurations and found one that this GX260 has been able to handle the demand very satisfactory with 3 cams attached (with a forth planned).

Lovin' the automation!


Offline mdaecher

  • Sr. Newbie
  • *
  • Posts: 41
  • Karma: +0/-0
Re: Blue iris vs DVR?
« Reply #23 on: February 13, 2014, 08:16:10 pm »
Chris,
Are you using PLEG for your scenes?  Would love to see the code behind them... I'm about to start doing the same things.

Sent from my SAMSUNG-SGH-I747 using Tapatalk 2

here is what I have using PLEG to act based on one of the PIN codes being entered at night time:

Triggers

Name   Description   Last Trigger   State
PIN1Entered    PIN Code #1 is entered on Front Door Lock   2013-11-18 19:13:15.426   true
PIN2Entered    PIN Code #2 is entered on Front Door Lock   2013-11-18 15:13:02.296   false
PIN3Entered    PIN Code #3 is entered on Front Door Lock   2013-11-16 23:23:36.204   false
PIN4Entered    PIN Code #4 is entered on Front Door Lock   2013-11-17 17:46:00.153   false
isNightTime    DayNightPlugin indicates Night time.   2013-11-18 17:27:26.119   true
Conditions

Name   Expression   Last True   State
_PinCodeEntered   PIN1Entered OR PIN2Entered OR PIN3Entered OR PIN4Entered   2013-11-18 19:13:15.432   true
_UnLockAtNight   isNightTime AND (isNightTime;_PinCodeEntered)   2013-11-18 19:13:15.435   true
Actions

Actions for Condition: _UnLockAtNight

Immediate

Device   Action   Arguments
Breakfast Room Light   SetLoadLevelTarget    newLoadlevelTarget=100
Dinning Room Light   SetLoadLevelTarget    newLoadlevelTarget=100
Kitchen Light   SetTarget    newTargetValue=1
Living Room Light   SetLoadLevelTarget    newLoadlevelTarget=100
Stairs Light   SetLoadLevelTarget    newLoadlevelTarget=100
Nightstand Lamp - Sandra   SetTarget    newTargetValue=1
Nightstand Lamp - Chris   SetTarget    newTargetValue=1

Ok, I am just figuring out that Vera scenes, etc. will not do what I want...I Know PLEG is the answer...this post will help me understand it much more than what I've seen on the website.  THANKS

Offline mdaecher

  • Sr. Newbie
  • *
  • Posts: 41
  • Karma: +0/-0
Re: Blue iris vs DVR?
« Reply #24 on: February 13, 2014, 08:24:30 pm »
Vera & Blue Iris (BI) & FOSCAM cameras & Google+ Auto Backup has been a potent combination.

I'm extremely happy with the above combination as I've been able to achieve all that I've wanted for integrated video surveillance.

Features:
Vera triggers BI to monitor/record motion when my home is Armed Away or Armed Stay
Vera triggers my 3 FOSCAMs to activate Infrared Lighting when Armed Away or Armed Stay

When I disarm my home:
Vera triggers BI to stop monitor/record motion after a 5 min delay post disarm.
Vera triggers my 3 FOSCAMs to turn off infrared LEDS

All captured snapshots and AVIs by BI are automatically upload to the cloud via Google+ Auto Backup. JPGs are immediately uploaded. AVIs are uploaded the next day. With my Google account, I get unlimited storage for jpgs and AVIs less then 15 minutes. BI can be configure to generate short clips.
I've configured BI to delete snapshots and AVIs after seven days, but Google+ Auto Backup has uploaded copies to the cloud for my permanent record. The best part is that they are automatically sorted into days. Often "auto awesome" is applied too! (motion gifs created from pics and videos!) Luckily, my ISP doesn't count uploads to my data cap.

I'm running BI on dedicated Dell Computer (an old GX260 with 2 gig of RAM). I've experimented with different BI configurations and found one that this GX260 has been able to handle the demand very satisfactory with 3 cams attached (with a forth planned).

Lovin' the automation!

mxg - just be aware.  I'll be in touch.  My scenario - I am very new to Vera, but I have 3 systems set up in 3 locations.  I wanted to incorporate outdoor cams only on motion sense, to the system.  Research told me Vera approved cams were not the ticket, so it was either go with a dedicated DVR, or run a windows computer and install Iris.  wasn't sure what the best option was...hate to think of running a laptop nonstop for only two cameras, but I think you've convinced me with this post - you are accomplishing exactly what I want !

Offline mxg

  • Sr. Newbie
  • *
  • Posts: 22
  • Karma: +0/-0
Re: Blue iris vs DVR?
« Reply #25 on: February 14, 2014, 06:45:54 am »
Vera & Blue Iris (BI) & FOSCAM cameras & Google+ Auto Backup has been a potent combination.

deleted to save space....

Lovin' the automation!

mxg - just be aware.  I'll be in touch.  My scenario - I am very new to Vera, but I have 3 systems set up in 3 locations.  I wanted to incorporate outdoor cams only on motion sense, to the system.  Research told me Vera approved cams were not the ticket, so it was either go with a dedicated DVR, or run a windows computer and install Iris.  wasn't sure what the best option was...hate to think of running a laptop nonstop for only two cameras, but I think you've convinced me with this post - you are accomplishing exactly what I want !

I'll be glad to help.
A general set-up tip is to configure BI using "profiles". Create various ones for your desired "states" at home. For example, "At Home" profile don't have your camera's recording. "At Home Monitor" is a possible set-up where you are at home and motion recording is needed, like during sleep. Of course, you'll need one for "Away from Home".
Getting "profiles" done first make the vera "intergration" part easier to understand.
By the way, I don't use any vera cam plugins for this at all. Just simple vera luup  code. I have treated BI as a separate surveillance system to be triggered on or off by vera.
From my research there is still some small issues with the plugins. Also, from a vera memory usage point of view, I can't afford to install them as I have enough devices on my network already.

Offline mdaecher

  • Sr. Newbie
  • *
  • Posts: 41
  • Karma: +0/-0
Re: Blue iris vs DVR?
« Reply #26 on: February 14, 2014, 11:27:39 am »
To begin, can I ask what Foscam cameras you are using?  All of them indoor?

Offline BOFH

  • Sr. Hero Member
  • ******
  • Posts: 2396
  • Karma: +112/-139
Re: Blue iris vs DVR?
« Reply #27 on: February 14, 2014, 03:42:05 pm »
Whoa Doggie! Can you provide some examples on eg how you get Vera to tell BI to switch IR LED's on and start recording?
I'm running Vera and BI 3 on a N40L running WHS2011 as I got tired of Vera's lack of camera support. I may actually have to break down and get a google+ account for the backup solution you mention...

I'm gonna use the wget trick to have BI tell Vera to switch on the porch light for say 5 minutes if my one outside camera detects motion during night hours.

Vera & Blue Iris (BI) & FOSCAM cameras & Google+ Auto Backup has been a potent combination.

I'm extremely happy with the above combination as I've been able to achieve all that I've wanted for integrated video surveillance.

Features:
Vera triggers BI to monitor/record motion when my home is Armed Away or Armed Stay
Vera triggers my 3 FOSCAMs to activate Infrared Lighting when Armed Away or Armed Stay

When I disarm my home:
Vera triggers BI to stop monitor/record motion after a 5 min delay post disarm.
Vera triggers my 3 FOSCAMs to turn off infrared LEDS

All captured snapshots and AVIs by BI are automatically upload to the cloud via Google+ Auto Backup. JPGs are immediately uploaded. AVIs are uploaded the next day. With my Google account, I get unlimited storage for jpgs and AVIs less then 15 minutes. BI can be configure to generate short clips.
I've configured BI to delete snapshots and AVIs after seven days, but Google+ Auto Backup has uploaded copies to the cloud for my permanent record. The best part is that they are automatically sorted into days. Often "auto awesome" is applied too! (motion gifs created from pics and videos!) Luckily, my ISP doesn't count uploads to my data cap.

I'm running BI on dedicated Dell Computer (an old GX260 with 2 gig of RAM). I've experimented with different BI configurations and found one that this GX260 has been able to handle the demand very satisfactory with 3 cams attached (with a forth planned).

Lovin' the automation!
Vera3 UI5 UI7 Edge Plus
Trane TZEMT400AB32 | Schlage BE369 FE599 | GE 45601 45602 45603 45604 45606 45609 45631 | Intermatic HA01C HA03C HA05C HA07C CA600 CA3000 | Aeon DSC06106 | Telguard GDC1 | Foscam FI8910W FI8905W FI9821W | D-Link 930L | Wanscam JW0011 | ZModo ZPIBH13W

Offline mxg

  • Sr. Newbie
  • *
  • Posts: 22
  • Karma: +0/-0
Re: Blue iris vs DVR?
« Reply #28 on: February 14, 2014, 09:39:55 pm »
To begin, can I ask what Foscam cameras you are using?  All of them indoor?

Camera Hardware: FI8910W x 3 - hard wired with cat5e.  (I've had the benefit of pre-wiring my house)
http://foscamcanada.com/web/index.php?page=shop.product_details&flypage=flypage.tpl&product_id=86&category_id=38&option=com_virtuemart&Itemid=108

They are mounted inside the house. I live in Canada
One cam watches the front door/foyer from the inside. (mounted high and flush against the wall with the wiring running on the inside of the front closet wall... you can't see the wires.)
One cam watches the Garage door/laundry room from the inside. (same mounting approach as the foyer).
One cam is over my Kitchen cabinets watching an open concept kitchen + family room + part of the sun room with a sliding door to the patio.  (I'm still contemplating putting an outdoor cam viewing the patio entrance or one inside the sun room)

Security System - DCS 5010/832. I have door contacts on each door and three motion sensors around. I mentioned this because I am able to use these as triggers to turn Cams on or off in BI.

luup code for Armed Away. This code is popped into the luup section of a scene.

First part puts the 3 cams in their positions to watch entrances. Read more on the FOSCAM presets.

Code: [Select]
--
-- Set ALL FOSCAMs to their recording positions 1
-- pos 1 = 31, pos 2 = 33, pos 3 = 35
--
luup.inet.wget("http://192.168.1.112:8112/decoder_control.cgi?command=31&user=admin&pwd=xxxxx")
luup.inet.wget("http://192.168.1.113:8113/decoder_control.cgi?command=31&user=admin&pwd=xxxxx")
luup.inet.wget("http://192.168.1.118:8118/decoder_control.cgi?command=31&user=admin&pwd=xxxxx")

Second Part activates the traffic signal in blue iris (see BI for more info)

Code: [Select]
--
-- Activate Traffic Signal on BI
--
luup.inet.wget("http://192.168.1.106:8200/admin?signal=1&user=admin&pw=xxxxx")

Third part activates my AWAY profile (#3). This profile has motion detection activated on the cams. Sends an email when motion is detected with a snapshot attached.

Code: [Select]
--
-- Activate Profile 3 on BI
--
luup.inet.wget("http://192.168.1.106:8200/admin?profile=3&user=admin&pw=xxxxx")
--

Last part switches on the Infrared LEDs in case it's dark. This allows the CAMs to automatically turn them on if required (too dark). Note that this code switch is more appropriate for my At Home Profile as I only want the IRs to come on if one of my security alarm sensors (door or motion) is triggered. Else, the IR LEDS are on all night when we're home in bed.

Code: [Select]
-- Turn on IR LEDs for all FOSCAMs  Command 95
--
luup.inet.wget("http://192.168.1.112:8112/decoder_control.cgi?command=95&user=admin&pwd=xxxxx")
luup.inet.wget("http://192.168.1.113:8113/decoder_control.cgi?command=95&user=admin&pwd=xxxxx")
luup.inet.wget("http://192.168.1.118:8118/decoder_control.cgi?command=95&user=admin&pwd=xxxxx")

Here's all the code together:

Code: [Select]
--
-- Set ALL FOSCAMs to their recording positions 1
-- pos 1 = 31, pos 2 = 33, pos 3 = 35
--
luup.inet.wget("http://192.168.1.112:8112/decoder_control.cgi?command=31&user=admin&pwd=xxxxx")
luup.inet.wget("http://192.168.1.113:8113/decoder_control.cgi?command=31&user=admin&pwd=xxxxx")
luup.inet.wget("http://192.168.1.118:8118/decoder_control.cgi?command=31&user=admin&pwd=xxxxx")
--
-- Activate Traffic Signal on BI
--
luup.inet.wget("http://192.168.1.106:8200/admin?signal=1&user=admin&pw=xxxxx")
--
-- Activate Profile 3 on BI
--
luup.inet.wget("http://192.168.1.106:8200/admin?profile=3&user=admin&pw=xxxxx")
--
-- Turn on IR LEDs for all FOSCAMs  Command 95
--
luup.inet.wget("http://192.168.1.112:8112/decoder_control.cgi?command=95&user=admin&pwd=xxxxx")
luup.inet.wget("http://192.168.1.113:8113/decoder_control.cgi?command=95&user=admin&pwd=xxxxx")
luup.inet.wget("http://192.168.1.118:8118/decoder_control.cgi?command=95&user=admin&pwd=xxxxx")



I have other slight variations of this based on other scenarios.

Hope this helps.
« Last Edit: February 15, 2014, 02:34:54 am by mxg »

Offline bucko

  • Hero Member
  • *****
  • Posts: 583
  • Karma: +26/-6
    • Travel and Living in China
Re: Blue iris vs DVR?
« Reply #29 on: February 14, 2014, 11:51:09 pm »
@mxg

I read your post on your control of BI with a scene/luup. I created 2 scenes. One triggers when my system is armed. The other when it is disarmed.

So I wanted to switch my BI profile to #4 when I armed my security. I used your code "luup.inet.wget("http://192.168.122.228:3050/admin?profile=4&user=admin&pw=xxxxx")"

Running this scene logged into my BI ok, but didn't change my BI profile.
BI Status  shows "object-login, frames-0, #-2, elapsed-0.00:00:00. BI stayed on profile 1.
It looks like no command was sent or processed by BI.

Is there something else I should do in BI so this luup command changes BI profile?

Thanks

UPDATE!   I figured it out. I had to uncheck Secure only in BI webserver config!
« Last Edit: February 15, 2014, 01:35:29 am by bucko »
Vera 3, 40+ Fibaro relays & dimmers, IPUX cams, Elk M1 Gold, M1XEP, M1SP, XVOR, M1RB, Elk124, Monoprice HDMI matrix & 6 zone amp, Denon AVR, Panasonic A8000, BI DV,On Controls