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
  • Careers
  • 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

dsmoot

More posts by dsmoot

Related Posts

  • Reading line-by-line from a serial port (or other byte-oriented stream)

    By Ben Voigt | 10 comments

    With many .NET developers moving from the traditional (and broken) System.IO.Ports.SerialPort DataReceived event handling to either the correct and more efficient BaseStream.BeginRead / BaseStream.EndRead pair I promoted in my last post or the newer BaseStream.ReadAsyncRead more

  • How to Model NPT Threads in Solidworks

    By rmontifar | 2 comments

    National Pipe Thread Taper or NPT threaded pipes and fittings are deployed in a variety of fields where transportation or containment of liquids, gases, steam, or hydraulic fluid is required. The NPT geometry allows internalRead more

  • Multi-Tiered Linux Backup System – Part I

    By dreynolds | 0 comment

    Backing up important data and memories is an important task that should not be neglected. Just as important as performing Linux backups is verifying that the backups made are good and can be used toRead more

  • Clojure: An improved workflow

    By dfohl | 0 comment

    Like many beginning Clojure programmers, I started off following Stuart Sierra’s “Reloaded” workflow guide. While it was a great starting point, there were a number of things that I wanted to change. If the projectRead more

  • nRF51 Development Environment with Eclipse

    By dreynolds | 6 comments

    This blog post aims to describe how to setup a fully functional nRF51 development environment using Eclipse and the GCC toolchain.  We are using a Segger JLink GDB server for the debugging portion, but thereRead more

4 comments

  • 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!

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

      Glad you found it useful!

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

  • 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
  • Careers
  • About Us
Sparx Technologies, LLC. dba Sparx Engineering © 2009 - 2022 | All Rights Reserved
  • Home
  • Expertise
    • Software Engineering
    • Electrical Engineering
    • Chemical Products and Services
    • Biomedical Engineering
    • Mechanical Engineering
    • Production Management
    • Automation
    • Industrial Design
  • Blog
  • Careers
  • About Us
Hardware, Software & Product Development | Sparx Engineering