-
-
Notifications
You must be signed in to change notification settings - Fork 272
Configuring ZoneMinder with API
Pliable Pixels edited this page Jan 2, 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 2015. 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)
- [Easy Way: Install from Package] (https://github.com/pliablepixels/zmNinja/wiki/Easy-Way:-Ubuntu-15,-Install-ZoneMinder-API-from-Package)
- Easy Way: Upgrade from an old package that does not support APIs
- [Slightly Harder Way: Compile from Source] (https://github.com/pliablepixels/zmNinja/wiki/Hard-Way:-Ubuntu-15,-Compile-ZoneMinder-API-from-source)
###For Ubuntu 14.x (Ubuntu systems with systemV)
- [Easy Way: Install from Package] (https://github.com/pliablepixels/zmNinja/wiki/Easy-Way:-Ubuntu-14,-Install-ZoneMinder-API-from-Package)
###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 lineenabled=0
toenabled=1
Then just do ayum 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
- There is no official package, but user bbunge describes how to set it up by copying the API directory See [here] (http://www.zoneminder.com/forums/viewtopic.php?p=89462#p89462)
###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