ZoneMinder for RPi 2

Forum for questions and support relating to the 1.28.x releases only.
_peterlast
Posts: 14
Joined: Tue Apr 14, 2015 6:01 pm

ZoneMinder for RPi 2

Post by _peterlast »

Is this version already available somewhere for the Raspberry Pi 2? Couldn't find it anywhere, only found someone wondering wether the Pi 2 is powerfull enough and a topic on here with someone having problems building it.
advbug
Posts: 14
Joined: Thu Oct 16, 2014 8:41 am

Re: ZoneMinder for RPi 2

Post by advbug »

Hi,

I compiled it but it didn't work properly... I just gut error messages that zm capture deamon crashed. So I installed "good old" 1.25 and it is working fine with one 720p IP camera over mjpeg. Unfortunately 1080p didn't work.
_peterlast
Posts: 14
Joined: Tue Apr 14, 2015 6:01 pm

Re: ZoneMinder for RPi 2

Post by _peterlast »

Ok, sounds good. Have you a link to a file and perhaps a (short) install guide? It would greatly help me to automate my home. I'm planning on having Zoneminder on the RPi 2 record the stream and also syncing it with a cloud service instead of my 2bay Synology. Will easily save me 18w, educated guess on power consumption of my Syno recording the stream is around 20w as opposed to a few watts of the Pi. And since it's running anyway as part of my multi-room audio setup... :)
advbug
Posts: 14
Joined: Thu Oct 16, 2014 8:41 am

Re: ZoneMinder for RPi 2

Post by advbug »

I believe it was just "apt-get install zoneminder" on ubuntu. :) After this you just need "ln -s /etc/zm/apache.conf /etc/apache2/conf.d/zoneminder.conf" and restart apache2.
_peterlast
Posts: 14
Joined: Tue Apr 14, 2015 6:01 pm

Re: ZoneMinder for RPi 2

Post by _peterlast »

Did you install Snappy Core on a uSD? Or regular Ubuntu/Xubuntu for ARMv7/RPi 2?
advbug
Posts: 14
Joined: Thu Oct 16, 2014 8:41 am

Re: ZoneMinder for RPi 2

Post by advbug »

Oh, it was Raspbian. So debian, not ubuntu.
_peterlast
Posts: 14
Joined: Tue Apr 14, 2015 6:01 pm

Re: ZoneMinder for RPi 2

Post by _peterlast »

Thanks, got it running. Now to get it recording video and syncing this with a cloudservice, as it seems now I will be fiddling with Megacmd or Megatools.
advbug
Posts: 14
Joined: Thu Oct 16, 2014 8:41 am

Re: ZoneMinder for RPi 2

Post by advbug »

Keep in mind:

Doing motion detection on a 720p camera the Pi2 is busy...a lot! U should use a very fast microSD card for it.
User avatar
knight-of-ni
Posts: 2406
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: ZoneMinder for RPi 2

Post by knight-of-ni »

This might interest some of you:
http://www.zoneminder.com/forums/viewto ... 32&t=23156

I just got these uploaded last night and could use a couple of you to verify that it works for someone else besides me.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
_peterlast
Posts: 14
Joined: Tue Apr 14, 2015 6:01 pm

Re: ZoneMinder for RPi 2

Post by _peterlast »

advbug wrote:Keep in mind:

Doing motion detection on a 720p camera the Pi2 is busy...a lot! U should use a very fast microSD card for it.
Even with the quadcore? Or is ZM not multi-thread/core ready?
knnniggett wrote:This might interest some of you:
http://www.zoneminder.com/forums/viewto ... 32&t=23156

I just got these uploaded last night and could use a couple of you to verify that it works for someone else besides me.
I'll give it a try when I can find some time, I'm terribly busy atm :(
_peterlast
Posts: 14
Joined: Tue Apr 14, 2015 6:01 pm

Re: ZoneMinder for RPi 2

Post by _peterlast »

I can't get 1.25 from the repo to work :( It doesn't show any image. I get some errors. Can anyone help me?

Apache2 error.log:

Code: Select all

[Wed Jul 08 19:11:11 2015] [error] [client 192.168.0.23] ERR [socket_sendto( /tmp/zm/zms-966606s.sock ) failed: No such file or directory], referer: http://192.168.0.215/zoneminder/index.php?view=watch&mid=1
Access logs has several of these entries:

Code: Select all

192.168.0.23 - - [08/Jul/2015:19:59:28 +0200] "GET /zoneminder/index.php HTTP/1.1" 200 2393 "http://192.168.0.215/zoneminder/index.php" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Firefox/38.0"

192.168.0.23 - - [08/Jul/2015:20:01:50 +0200] "POST /zoneminder/index.php HTTP/1.1" 200 530 "http://192.168.0.215/zoneminder/index.php?view=watch&mid=1" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Firefox/38.0"
Zoneminder log is full of:

Code: Select all

2015-07-08 20:08:52.413720	web_php	3196	ERR	socket_sendto( /tmp/zm/zms-966606s.sock ) failed: No such file or directory	/usr/share/zoneminder/includes/functions.php
Also has a few other errors but the above fills 80% of the error log entries.

I have searched for quite some time and could only find that I might need to add cgi-bin variables to Apache2. So I created zoneminder.conf in conf.d with contents:

Code: Select all

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/

   <Directory>
      AllowOverride None
      Options +ExecCGI +SymLinksIfOwnerMatch
      Order allow,deny
      Allow from all
   </Directory>
/usr/lib/cgi-bin/ contains:
nph-zms zms

apache2.conf contains nothing with the string "zms" or "cgi".
User avatar
knight-of-ni
Posts: 2406
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: ZoneMinder for RPi 2

Post by knight-of-ni »

Well, you certainly didn't get zoneminder 1.25 from one of our repos.
Try posting into into the 1.25 forum if you want support for that old version.
Or upgrade to zoneminder 1.28.1, found in zmrepo.zoneminder.com.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
_peterlast
Posts: 14
Joined: Tue Apr 14, 2015 6:01 pm

Re: ZoneMinder for RPi 2

Post by _peterlast »

I got it from the standard raspbian repo. But I can add that zm repo and install 1.28 on my pi 2?
_peterlast
Posts: 14
Joined: Tue Apr 14, 2015 6:01 pm

Re: ZoneMinder for RPi 2

Post by _peterlast »

The repo has nothing for the RPi or RPi 2 unfortunately :(
User avatar
knight-of-ni
Posts: 2406
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: ZoneMinder for RPi 2

Post by knight-of-ni »

Sure it does. I placed them there myself, and am running the package on my own Raspberry Pi 2.

Navigate to zmrepo.zoneminder.com, choose the Fedora 22 distro, follow the instructions that appear after selecting the distro.

What it doesn't have, though, are deb packages for the Raspbian distro. iconnor builds those, and I am not sure where he put his packages for the Raspberry Pi. They don't appear in his primary ppa. You might want to send him a pm if you want to install zoneminder deb on Raspbian.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
Locked