{"id":607,"date":"2016-10-25T22:46:27","date_gmt":"2016-10-26T03:46:27","guid":{"rendered":"http:\/\/lisa.rushworth.us\/?p=607"},"modified":"2016-10-25T23:06:12","modified_gmt":"2016-10-26T04:06:12","slug":"zoneminder-setup","status":"publish","type":"post","link":"https:\/\/www.rushworth.us\/lisa\/?p=607","title":{"rendered":"Zoneminder Setup"},"content":{"rendered":"<p>I just installed <a href=\"https:\/\/zoneminder.com\/\" target=\"_blank\">ZoneMinder <\/a>tonight. I don&#8217;t know if I missed a section in the documentation or something&#8217;s just missing &#8212; there&#8217;s doc for getting the build onto your box (or building your own from source). I didn&#8217;t want to install the package and all of its dependencies from their repo, so I manually installed the prereqs from the standard Fedora repositories. Installed the zoneminder rpm and switched from the &#8216;installation guide&#8217; to the &#8216;user guide&#8217;. Which starts out on a web site. Umm &#8230; what web site? There&#8217;s definitely something missing here. Their package drops a config file in \/etc\/httpd\/conf.d &#8230; *but* it presupposes that it is a dedicated server (which, in fairness, is the recommended configuration).<\/p>\n<p>I edited the zoneminder.conf file and threw the whole thing in a VirtualHost tag, added an SSL cert for the hostname I&#8217;m using, and restarted Apache. OK, that&#8217;s better &#8230; I get *something*. Unfortunately &#8216;something&#8217; is a massive MySQL error.<\/p>\n<p>Some searching (rpm -ql zoneminder, then search through the files the package installed for something that looks good) yielded a config file at \/etc\/zm\/zm.conf. Went in there, defined a database, user, and password. Created said database &amp; user in mysql &amp; assigned rights. Umm, stranger database error that leads me to believe the database hasn&#8217;t been initialized. Oops. LMGTFY. Found a SQL file at \/usr\/share\/zoneminder\/db\/zm_create.sql and imported *that* &#8230; wasn&#8217;t sure if it was as simple as changing the zm database name in the SQL file to what I wanted or not, so I just used their default database name. Went back into MySQL and assigned the user I&#8217;d created earlier rights to the zm database and dropped *my* database. (Note, if you don&#8217;t use PHP date &#8216;stuff&#8217;, you may need to define the time zone in your php.ini file &#8230; I&#8217;d already set a default for other purposes).<\/p>\n<p>Refresh and voila, I&#8217;ve got a system. You&#8217;ve got to click &#8216;start&#8217; at the top for it to, well, start pulling in video feeds. I set up a VERY basic link to our WansView camera &#8212; ffmpg type, source is the full videostream.cgi URL, and remote method is &#8220;RTP\/Unicast&#8221;. I can now see the video from our camera via the web site. WooHoo!<\/p>\n<p>Now we need to get the motion detection set up &amp; play with all of the options \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I just installed ZoneMinder tonight. I don&#8217;t know if I missed a section in the documentation or something&#8217;s just missing &#8212; there&#8217;s doc for getting the build onto your box (or building your own from source). I didn&#8217;t want to install the package and all of its dependencies from their repo, so I manually installed &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[63],"tags":[62,43,61],"class_list":["post-607","post","type-post","status-publish","format-standard","hentry","category-home-automation","tag-cctv","tag-home-automation","tag-zoneminder"],"_links":{"self":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/607","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=607"}],"version-history":[{"count":2,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/607\/revisions"}],"predecessor-version":[{"id":610,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/607\/revisions\/610"}],"wp:attachment":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=607"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=607"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=607"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}