Vera Blue Iris Unofficial Plugin

[quote=“Mgsmith75”]Feature request:

Is there a way to send vera a notification when a camera loses signal? I have my camera’s zwave switches in the event that I need to reboot remotely. I would like to set up an automation to reboot the camera on a lost signal by sending a command to the switch to turn off and then back on.

Sent from my iPhone using Tapatalk[/quote]

I think BI already has that under camera configs

[quote=“undertoe”][quote=“Mgsmith75”]Feature request:

Is there a way to send vera a notification when a camera loses signal? I have my camera’s zwave switches in the event that I need to reboot remotely. I would like to set up an automation to reboot the camera on a lost signal by sending a command to the switch to turn off and then back on.

Sent from my iPhone using Tapatalk[/quote]

I think BI already has that under camera configs[/quote]

They do however a reboot request doesn’t work when signal is lost. So for any wireless camera’s that never works. In addition I use an AC wireless bridge on one of my camera’s, so I would want to configure an automation to reboot that bridge. I was wondering if a similar function that sends a motion alert to vera could also be used to send a lost signal alert.

Sent from my iPhone using Tapatalk

[quote=“macrho, post:84, topic:181819”]actually it’s pretty simple to delete a device:

http://<local_Vera_IP>:3480/data_request?id=device&action=delete&device=<device_ID>

just had to search ;D[/quote]

thanks… gone…

back on blueiris and the plugin… even works on a super crappy camera (retevis)

I am with mazer9, hoping to have a vera sensor trigger a Blueiris profile that starts all cameras recording for one minute.[/quote]

[EDIT: You can ignore this post since the steps are unnecessary - there’s a much simpler way to trigger a Blue Iris recording or profile change:
http://forum.micasaverde.com/index.php/topic,25828.msg190325.html#msg190325
http://forum.micasaverde.com/index.php/topic,10390.msg101895.html#msg101895

Original post below:]

I figured this out a few weeks ago (frantically the night before I went on vacation - so I’ll do my best to recreate the steps here). I wish I could give proper credit to every link I used to piece this together but the best I can trace back is:
http://forum.micasaverde.com/index.php/topic,7881.75.html
http://www.howtogeek.com/howto/windows-vista/create-administrator-mode-shortcuts-without-uac-prompts-in-windows-vista/
and probably some posts from cam-it.org (sorry, I did hours of Google search site:cam-it.org and site:micasaverde.com)

This technique required bicommand and Eventghost.

  1. Install bicommand (I installed it to C:\APPS\bicommand)

    NOTE: Steps 2-10 are needed to bypass Windows UAC.  If you don't enable UAC, then you can just write and run a bat file.  As far as I can tell, bicommand needs to be run with Admin privileges. 
    
  2. Open Windows Task Scheduler (e.g., click Start Button, type task, then choose Task Scheduler)

  3. In the Actions pane, Create Task to start wizard

  4. Under General tab, type in a name (in my example, I’ll use bic_Swann2 where bic is short for bicommand and Swann2 is the shortcamname). You may also need to click checkbox for “Run with highest privileges”

  5. Under Actions tab, click New, then leave Action as “Start a program”

  6. For Setting Program/script, type (or browse to) C:\APPS\bicommand\bicommand.exe

  7. For “Add arguments (optional):” field, type in “trigger Swann2” (no quotes; use your own Blue Iris shortcamname). Click OK and close out of Task Scheduler.
    EDIT: You can add multiple cameras in the arguments - also see these links for other bicommand tips (e.g., create snapshots instead of triggering video):
    http://www.cam-it.org/index.php?action=downloads;sa=view;down=3
    http://www.cam-it.org/index.php?topic=2687.0

  8. In Windows Explorer, right-click somewhere to create a New Shortcut (I chose to do it in the bicommand folder)

  9. Under “Type the location of the item:”, type

schtasks /run /tn "bic_Swann2" 
  1. Click Next, then give it a name. I confusingly choose to use the same name as the task name (e.g., bic_Swann2)

  2. Install Eventghost http://www.eventghost.org/

  3. Then install the Webserver plugin (in Evenghost, choose Configuration menu, choose Add Plugin, then scroll all the way down to find “Webserver”, then click OK)

  4. Right-click the Webserver plugin, choose Configure Item.

  5. Change the TCP/IP port to something unique and unused. Ensure the Event prefix says HTTP. Click OK
    a. NOTE: I have no idea about the security of this. I am (perhaps naively) hoping that my router’s firewall is keeping anyone out even if they know my public IP, local IP, and port for the Eventghost Webserver. Whatever you do, don’t use port forwarding for your chosen port number.

  6. In the Configuration pane, I created a folder to keep all my Blue Iris camera triggers (and creatively called it “BlueIris”)

  7. Right-click this folder

  8. Add Macro

  9. Click Cancel

  10. Right-click that newly created macro, choose Rename Item (name it something like your shortcam name; in this example Swann2)

  11. Right-click your macro, choose Add Event
    a. A dialog box pops up with Event Name.
    b. Replace “Task.Activated.EventGhost” (or whatever was in there) with “HTTP.Swann2”
    c. Click OK

  12. Right-click this new lightning bolt icon (event) and choose Add Action

  13. Look for folder System and choose Start Application, click OK

  14. Under Executable, browse to your shortcut (in this case, bic_Swann2)

  15. Under Command Line Options, type /run /tn bic_Swann2
    a. where bic_Swann2 is the shortcut name we created earlier
    b. Note: you might be able to skip this command line option since it was already established (I don’t remember needing to do it but it seems like I need to do it right now as I try to recreate this procedure).

  16. Don’t forget to File-Save in Eventghost.

  17. You can test it here in Eventghost and hopefully Blue Iris will capture a clip. In my case, the clip shows “External” as the cause. You can also test by typing this in your web browser:

http://192.XXX.XXX.XXX:YOURPORT/eventghost.html?Swann2

where you add in your Blue Iris IP, EVENTGHOST Port, and same Eventghost name you used after “HTTP.” in the Eventghost configuration [again, in this example Swann2]

  1. Now in Vera UI5, create a new scene where the only thing you add is this LUUP code:
local status, result = luup.inet.wget("http://192.XXX.XXX.XXX:YOURPORT/eventghost.html?Swann2", 5)
    where you add in your Blue Iris IP, EVENTGHOST Port, and same Eventghost name you used after "HTTP." in the Eventghost configuration [again, in this example Swann2]
  1. Now you have a scene that you can activate. In my case, I use a PLEG device.
    Note: I had to search on how to run a scene under PLEG actions. In the PLEG configuration, go to Actions tab, create your condition, click Edit (which kicks you out of the PLEG dialog box and into a Scene-like UI5 screen), then click Advanced tab. Under Pick a device, choose your PLEG device. Then choose RunScene form the drop down. Then type in your scene number. Then click Finished.

I’m somewhat of a beginner to Vera and Blue Iris. I just pieced together a bunch of stuff from many places. So feel free to recommend better ways to accomplish. Good luck

[quote=“BOFH, post:99, topic:181819”]Have you checked if you can access Blue Iris directly using the same IP set in the plugin? I’m wondering if the DNS server you installed assigned a different IP to your Blue Iris server and the plugin doesn’t know that and is still looking at the old IP address.

Make sure that the DNS server you installed, assigns a ‘static’ IP to you Blue IRis server based on that servers MAC address. I’d suggest it do the same for Vera.[/quote]

yes I can input the IP into a browser and access the camera. All appears to be OK. How do I go about installing a static IP on the DNs. I’m using dyndns service and a D-link dir-826l router. i can’t find anyplace to install a static IP. Sorry for the questions but this is getting rather confusing.

Dave

Is anyone else having problem adding URL and DirectStreamingURL settings? They keep reverting to “/mjpg/index/video.mjpg” and “/image/index?q=80&s=80&time=now” after save and reload.

These string are automatically set. All you need to do is enter an ip / port for BI server and camera name.

These string are automatically set. All you need to do is enter an ip / port for BI server and camera name.[/quote]

Thanks for creating this plugin by the way. Been waiting for this for years.

I understand. This happens after setting the correct parameters in the “advance tab” (IP:port, name, URL, directstreamurl, etc). Everything is working until after awhile (not sure what triggers it) it reverts back to the default “index” strings. The weird thing is that the devices in question DO NOT show up as created devices in the Blue Iris Camera Plugin page. I think I’m gonna start from scratch, I might have screwed something up somewhere. What’s the cleanest way of uninstalling the plugin?

Your very welcome. Hmmm did you manually install or install via market place?

From the marketplace.

Just uninstall and reinstall

Has the updated version of the plugin hit mios yet?

Yes

Searched for “Blue”, “Iris”, “Blue Iris” I don’t see it. Not in the UI5 apps?

I couldn’t find it that way either, but if I sort by date submitted, looks like it’s on the second page. Is this the most recent version with the admin password issue updated?

I couldn’t find it that way either, but if I sort by date submitted, looks like it’s on the second page. Is this the most recent version with the admin password issue updated?[/quote]

Thanks, i’ll try that

Ive been through every page in the mios app place and I cant actually see it anywhere. Any of you guys had any luck with finding it? Also ive already got it installed and I can see that its set to auto update but hasnt done so. Im still running 0.5.

Hmm, that’ so strange. If I go to apps>install apps, it automatically orders “By modified date” and “All categories.” The DSC alarm panel plugin shows up at the top of page 1. When I go to pg 2, it’s second from the bottom, though says last modified 07/08, so not sure it’s the most recent version. Hopefully Undertoe will chime in and let us know :slight_smile:

I can’t find it either. I’ve gone all the way back to January 1st. Nothing

https://apps.mios.com/plugin.php?id=6916

Sent from my iPhone using Tapatalk