Hardware, Software & Product Development | Sparx EngineeringHardware, Software & Product Development | Sparx EngineeringHardware, Software & Product Development | Sparx EngineeringHardware, Software & Product Development | Sparx Engineering
  • Home
  • Expertise
    • Software Engineering
    • Electrical Engineering
    • Chemical Products and Services
    • Biomedical Engineering
    • Mechanical Engineering
    • Production Management
    • Automation
    • Industrial Design
  • Blog
  • About Us
NextPrevious

Start Zoneminder Recordings with Vera Events

By dsmoot | Software | 4 comments | 7 April, 2015 | 1

In a previous post I explained how you could configure the security DVR software Zoneminder to trigger recordings from a network connection. While a neat trick, I never really explained why I set this up.

I use the Vera home automation platform as the central brains of my smart home. Vera is tied into my home security system, my lawn sprinklers, my garage door, my outside doors, and now my home security system.

Vera can be a fairly complex thing to set up but it is worth the effort to figure out. Almost any Vera connected device can be used to trigger another action. For example, I turn on the lights in my garage and walkway to my house when I open the garage door. And now I record whoever disarms my alarm when they come home with these steps.

Prerequisites:

  1. A Micasaverde Vera home automation system with at least one connected device to use as a trigger.
  2. A Zoneminder DVR system on the same network (or at least able to accept connections from the Vera on your selected port).
  3. Your Zoneminder install should be configured to allow “Network Triggers” as detailed in my previous post. If you have trouble making this recipe work, I would suggest starting with the telnet steps in that post and verify that a network connection can trigger a recording. If you can’t trigger from a telnet session, the rest of this won’t work either.
  4. A basic understanding of Vera’s Luup engine. If not, go here and here for more information.

So all you need now is the Luup code that is the glue between Vera and Zoneminder.
Vera_Luup_Screenshot

In the screenshot above, I am in the web interface of my Vera. I altered the details for my own paranoia so these are not real IP addresses. I have created a “scene” in the Vera interface called “Film back door entry”. I trigger this scene whenever someone opens the back door while my security system is armed. When triggered, the snippet of code shown opens a TCP socket to my zoneminder server at 192.168.1.5 port 6802. It sends the ascii string “2|on+10|255|Back_door_opened_while_armed|text1|text2” to the server then closes the socket. This causes camera #2 on my system (which is pointed at the back door) to record a 10 second clip with an alarm value of 255 and the title “Back_door_opened_while_armed”.

automation, home automation, security, vera, zoneminder
Avatar

dsmoot

More posts by dsmoot

Related Post

  • Zoneminder Network Triggering

    By dsmoot | 4 comments

    I will be surprised if anyone actually reads this but I was surprised by the popularity of my previous Bluetooth posts, so here goes. Home automation is one of my hobbies and I currently useRead more

  • Home Automation: The Frontier of the “Internet of Things”

    By dsmoot | 1 comment

    Home automation is one of my hobbies that I use to entertain and enlighten myself when my day job is a little tedious (which lately has been quite rare). I think home automation is onRead more

  • Building a Garage Computer From a Beagle Bone

    By dsmoot | 0 comment

    This is one of those projects I’ve wanted to do for a while and finally all the pieces are coming together. I hated the user interface on my home sprinkler system. Despite an engineering degreeRead more

  • X.509 Self-Signed Certificate for Cryptography in .NET

    By rajaz | 0 comment

    Recently, I needed to secure the communication between a .NET server application running on a Windows PC and a client application running on an embedded device. The solution was to use SSL to secure theRead more

  • Compiling ZoneMinder 1.25 from Source

    By dsmoot | 0 comment

    I have a nice MythTV setup in the house, which is an open source DVR software project.  I also have several IP cameras for security but haven’t been happy with the various software tools I’veRead more

4 comments

  • Avatar
    Andreas Selstam Reply July 8, 2015 at 8:17 am

    Great read. I’ve expanded on this and implemented a “mode change” in zmtrigger … i.e.

    -1|mode||Change mode|Away|

    I’ve added this to the Mode-switch in my Vera to whenever I change mode in Vera (Home/Away/Night/Vacation) it will trigger a specific Mode in Zoneminder.

    So thanks for the inspiration!

    • Avatar
      dsmoot Reply July 22, 2015 at 3:39 pm

      Glad you found it useful!

  • Avatar
    tikismoke Reply August 22, 2015 at 1:18 pm

    Thank’ for the tips.
    Will look to adapt it to a bash or python script in my case.

  • Avatar
    Santiago Molina Reply July 8, 2018 at 7:41 am

    Hi can you update this article to 2018 on what is the domninating technology now?

Leave a Comment

Cancel reply

Your email address will not be published. Required fields are marked *

NextPrevious
  • Home
  • Expertise
  • Blog
  • About Us
Sparx Technologies, LLC. dba Sparx Engineering © 2009 - 2020 | All Rights Reserved
  • Home
  • Expertise
    • Software Engineering
    • Electrical Engineering
    • Chemical Products and Services
    • Biomedical Engineering
    • Mechanical Engineering
    • Production Management
    • Automation
    • Industrial Design
  • Blog
  • About Us
Hardware, Software & Product Development | Sparx Engineering