Skip to content

Configuring ZoneMinder with API

Pliable Pixels edited this page Feb 13, 2016 · 69 revisions

zmNinja uses ZoneMinder APIs. You need to upgrade your ZM to an API version. 1.29 is the first stable version with API support, released on Jan 1 2016. However, any version above 1.28.107 (development snapshot) will work

Instructions for installation are provided below:

###For Ubuntu 15.x (Ubuntu systems with systemd)

###For Ubuntu 14.x (Ubuntu systems with systemV)

###For Debian 8, till an API version is released

###For CentOS or Fedora Note: The APIs will NOT work on CentOS 6 -- they require PHP 5.4 which is only available with CentOS 7.

  • As of Sep 1 2015, knnnigget has released a testing branch of zmrepo. If you are already using zmrepo, edit this file: /etc/yum.repos.d/zmrepo-centos-testing.repo (for centOS) or /etc/yum.repos.d/zmrepo-fedora-testing.repo (for Fedora) and change the line enabled=0 to enabled=1 Then just do a yum update
  • If you are not using zmrepo, visit zmrepo to set it up. All you really have to do is select your distribution at the bottom of the page and it will show you instructions on what to do. Follow them, get ZoneMinder installed and follow the instructions in the bullet point above to enable the testing repo and upgrade to the API version
  • Note that if you have changed the DB login/password after installing ZM, you need to modify the API's Database.php file to reflect this change. Please see Step 6 of this tutorial

###For Debian

###Note before you send me an email that zmNinja is not working:

  • Unless Zoneminder is installed and working (along with a working video feed), zmNinja will not work
  • If you are facing problems with ZoneMinder please join irc.freenode.net and join the channel: #zoneminder or post in the ZoneMinder forums instead of emailing ZM problems to me
  • If you are using SSL with Zoneminder and are using a self-signed certificate, zmNinja won't work unless you import the certificate into your phone read this