Page 1 of 2
ZoneMinder for RPi 2
Posted: Wed Apr 15, 2015 9:11 pm
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.
Re: ZoneMinder for RPi 2
Posted: Tue Apr 21, 2015 6:16 am
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.
Re: ZoneMinder for RPi 2
Posted: Fri May 01, 2015 10:33 pm
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...
Re: ZoneMinder for RPi 2
Posted: Fri May 01, 2015 10:42 pm
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.
Re: ZoneMinder for RPi 2
Posted: Sat May 02, 2015 2:59 pm
by _peterlast
Did you install Snappy Core on a uSD? Or regular Ubuntu/Xubuntu for ARMv7/RPi 2?
Re: ZoneMinder for RPi 2
Posted: Sat May 02, 2015 4:53 pm
by advbug
Oh, it was Raspbian. So debian, not ubuntu.
Re: ZoneMinder for RPi 2
Posted: Sun May 03, 2015 8:47 pm
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.
Re: ZoneMinder for RPi 2
Posted: Mon May 11, 2015 8:54 am
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.
Re: ZoneMinder for RPi 2
Posted: Thu May 14, 2015 1:21 pm
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.
Re: ZoneMinder for RPi 2
Posted: Tue May 19, 2015 7:44 pm
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?
I'll give it a try when I can find some time, I'm terribly busy atm
Re: ZoneMinder for RPi 2
Posted: Wed Jul 08, 2015 6:16 pm
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".
Re: ZoneMinder for RPi 2
Posted: Wed Jul 08, 2015 6:41 pm
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.
Re: ZoneMinder for RPi 2
Posted: Wed Jul 08, 2015 6:51 pm
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?
Re: ZoneMinder for RPi 2
Posted: Sat Jul 11, 2015 8:32 am
by _peterlast
The repo has nothing for the RPi or RPi 2 unfortunately
Re: ZoneMinder for RPi 2
Posted: Sat Jul 11, 2015 1:06 pm
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.