[SOLVED] How to create a motion detect zone in ZM?
-
- Posts: 20
- Joined: Wed Aug 25, 2010 2:03 am
- Location: Quebec
[SOLVED] How to create a motion detect zone in ZM?
Hi all,
I installed latest Ubuntu 11.04 and I reconfigured zoneminder but I'm no longer able of defining a motion detect "zone". I sure know where to go but the problem is that I can't specify the four corners of the "zone" I'd like to enable. I only see "Point 1" on the top-left corner of the window but I can't drag it to another location in the window, it stays on the top-left corner which means that this zone would cover 100% of the area which is not what I want obviously.
Have a look at the screenshot to better understand my issue. What am I doing wrong? How can I specify a zone? It was working just fine previously, before the new clean install...
Thank you all for your time and support,
highmighty
I installed latest Ubuntu 11.04 and I reconfigured zoneminder but I'm no longer able of defining a motion detect "zone". I sure know where to go but the problem is that I can't specify the four corners of the "zone" I'd like to enable. I only see "Point 1" on the top-left corner of the window but I can't drag it to another location in the window, it stays on the top-left corner which means that this zone would cover 100% of the area which is not what I want obviously.
Have a look at the screenshot to better understand my issue. What am I doing wrong? How can I specify a zone? It was working just fine previously, before the new clean install...
Thank you all for your time and support,
highmighty
Last edited by highmighty on Thu May 12, 2011 1:05 am, edited 1 time in total.
Re: How to create a motion detect zone in ZM?
Hi,
Sounds like you have some component of zoneminder is not up to date. Configuring zones should show each point location as an integer, so you could edit it manually or move the location by using the mouse. Try to update your system using the apt-get update / apt-get upgrade to see if any package shoud be updated.
Hope it helps,
PacoLM
Sounds like you have some component of zoneminder is not up to date. Configuring zones should show each point location as an integer, so you could edit it manually or move the location by using the mouse. Try to update your system using the apt-get update / apt-get upgrade to see if any package shoud be updated.
Hope it helps,
PacoLM
After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
-
- Posts: 20
- Joined: Wed Aug 25, 2010 2:03 am
- Location: Quebec
Re: How to create a motion detect zone in ZM?
Thanks, I tried apt-get update & apt-get upgrade and unfortunately it still doesn't work, I still can't configure motion detection areas?! I then uninstalled Zoneminder and reinstalled it and I still have the same issue... what else?
Thank you all for your time and support,
highmighty
Thank you all for your time and support,
highmighty
Re: How to create a motion detect zone in ZM?
Hi,
I also have this problem with Ubuntu 11.04 & Zoneminder 1.24.2. I did a clean install Ubuntu and get the Zoneminder from packages.
SVLaller
I also have this problem with Ubuntu 11.04 & Zoneminder 1.24.2. I did a clean install Ubuntu and get the Zoneminder from packages.
SVLaller
Re: How to create a motion detect zone in ZM?
Hi,
I think I found a solution. I copied the Mootools 1.2.1 to /usr/share/zoneminder/tools/mootools directory, but the Zoneminder search another place.
The path in /usr/share/zoneminder/skins/classic/includes/function.php:
I changed this to:
Now working the area select and montage grid function.
SVLaller
I think I found a solution. I copied the Mootools 1.2.1 to /usr/share/zoneminder/tools/mootools directory, but the Zoneminder search another place.
The path in /usr/share/zoneminder/skins/classic/includes/function.php:
Code: Select all
<script type="text/javascript" src="/javascript/mootools/mootools.js"></script>
<script type="text/javascript" src="/javascript/mootools/mootools-more.js"></script>
Code: Select all
<script type="text/javascript" src="tools/mootools/mootools-1.2.1-core-nc.js"></script>
<script type="text/javascript" src="tools/mootools/mootools-1.2-more-nc.js"></script>
<script type="text/javascript" src="js/mootools.ext.js"></script>
SVLaller
-
- Posts: 20
- Joined: Wed Aug 25, 2010 2:03 am
- Location: Quebec
Re: How to create a motion detect zone in ZM?
Hi SVLaller, thanks for sharing. I'd like to give it a try but I can't.
I don't know which version of "mootools" I'm using but I can tell that it's located here on my machine:
What version of mootools it is, I have no clue... if it isn't 1.2.1, where can I download that specific version? Their website list only version 1.2.5 and their latest 1.3...
Also, I've edited the "function.php" file but I couldn't find the right lines to edit (/usr/share/zoneminder/skins/classic/includes/function.php), there are no such lines as these:
What am I doing wrong?
Thank you for your time,
highmighty
I don't know which version of "mootools" I'm using but I can tell that it's located here on my machine:
Code: Select all
/usr/share/javascript/mootools
Also, I've edited the "function.php" file but I couldn't find the right lines to edit (/usr/share/zoneminder/skins/classic/includes/function.php), there are no such lines as these:
Code: Select all
<script type="text/javascript" src="/javascript/mootools/mootools.js"></script>
<script type="text/javascript" src="/javascript/mootools/mootools-more.js"></script>
Thank you for your time,
highmighty
Re: How to create a motion detect zone in ZM?
I've been fighting with this same problem... I've got 11.04 Server 64-bit running and istalled zoneminder with: sudo apt-get install zoneminder.
When I've installed it, I can see that the mootools folder wasnt even created and that why I believe there is a problem.
When I downloaded installation package from download section and unpacked it, I found that there is that mootools folder including mootools 1.2.1 version files. I tried to go with the short way and made dir "mootools" and copied files to there, then I modified that .php file, but didnt help, I only received error message.
So... I think that at the moment, if you're using newest release of ubuntu, you need install it from downloaded package, not with atp-get.
I havent tried it yet, if someone tries that, please report here...
And ye... The right file to modify is /usr/share/zoneminder/skins/classic/includes/functions.php
So its functions.php, not function.php
--
Regards
Tuomo from Finland
When I've installed it, I can see that the mootools folder wasnt even created and that why I believe there is a problem.
When I downloaded installation package from download section and unpacked it, I found that there is that mootools folder including mootools 1.2.1 version files. I tried to go with the short way and made dir "mootools" and copied files to there, then I modified that .php file, but didnt help, I only received error message.
So... I think that at the moment, if you're using newest release of ubuntu, you need install it from downloaded package, not with atp-get.
I havent tried it yet, if someone tries that, please report here...
And ye... The right file to modify is /usr/share/zoneminder/skins/classic/includes/functions.php
So its functions.php, not function.php
--
Regards
Tuomo from Finland
-
- Posts: 20
- Joined: Wed Aug 25, 2010 2:03 am
- Location: Quebec
Re: How to create a motion detect zone in ZM?
Using synaptic, I've found out that I'm currently using version 1.2.5 of mootools. I can't see where I could get version 1.2.1 installed instead, is there a web link somewhere?
And true, it is the file "functionS.php"... my mistake!
Thanks again,
highmighty
And true, it is the file "functionS.php"... my mistake!
Thanks again,
highmighty
Re: How to create a motion detect zone in ZM?
Hi,
I think the exact version of MooTools is not important, I use an older one.
Just set the correct path in the /usr/share/zoneminder/skins/classic/includes/functions.php.
SVLaller
I think the exact version of MooTools is not important, I use an older one.
Just set the correct path in the /usr/share/zoneminder/skins/classic/includes/functions.php.
SVLaller
Re: How to create a motion detect zone in ZM?
I tried using newer one allready.
I downloaded mootools 1.3.2 (was that the newest, smth like that) to mootools folder then corrected path in functions.php but after that zone settings wont work even that good and when hitting OK for new zone I receive blank error window with OK button.
I havent got enough time lately to test stuff, but I'll do when I've got time, if you wont get it work before that
--
Tuomo
I downloaded mootools 1.3.2 (was that the newest, smth like that) to mootools folder then corrected path in functions.php but after that zone settings wont work even that good and when hitting OK for new zone I receive blank error window with OK button.
I havent got enough time lately to test stuff, but I'll do when I've got time, if you wont get it work before that
--
Tuomo
Re: How to create a motion detect zone in ZM?
Don't forget the "root" is the Zoneminder directory in the path.
-
- Posts: 20
- Joined: Wed Aug 25, 2010 2:03 am
- Location: Quebec
Re: How to create a motion detect zone in ZM?
Still using the version 1.2.5 of Mootools, I modified those lines to reflect the proper "mootools" path in "functions.php" file:
Mootools path is:
So those lines were modified:
Unfortunately, that didn't help... it was actually worst, Zoneminder wouldn't start at all (stayed in a "Stopped" status) and I could no longer see any "Points" in the "Define motion zones" section, not even Point 1 (as seen in the attached screenshot in post#1), so I reverted the changes and now Zoneminder starts and I can see that "Point 1" is now showing... I still can't move it though
P.S. I've contacted the author to let him know about this issue... he might be helpful
highmighty
Mootools path is:
Code: Select all
/usr/share/javascript/mootools
Code: Select all
<script type="text/javascript" src="/usr/share/javascript/mootools/mootools.js"></script>
<script type="text/javascript" src="/usr/share/javascript/mootools/mootools-more.js"></script>
P.S. I've contacted the author to let him know about this issue... he might be helpful
highmighty
Re: How to create a motion detect zone in ZM?
Hello Guys,
Using Ubuntu 11.04, ZoneMinder v1.24.2. and the version of mootools installed by Ubuntu (libjs-mootools 1.2.5~debian1.2) :
1) 'mootools' is installed in '/usr/share/javascript/mootools' :
- it's necessary to modify the file '/usr/share/zoneminder/skins/classic/includes/functions.php' in order
to help 'zoneminder' to find the location of 'mootools'.
2) 'mootools.js' and 'mootools-more.js' are links pointing respectively to 'mootools-core.min.js' and 'mootools-more.min.js'.
- this 2 pieces of code don't give me any working results. I replace it by 'mootools-core-nc.js' and 'mootools-more-nc.js'.
And then, creation of motion detect zones is now working for me when I modify the file
'/usr/share/zoneminder/skins/classic/includes/functions.php' in this way :
I hope my experience can help you.
With best regards,
Kialne
(location Tubize, near from Brussels, Belgium)
Using Ubuntu 11.04, ZoneMinder v1.24.2. and the version of mootools installed by Ubuntu (libjs-mootools 1.2.5~debian1.2) :
1) 'mootools' is installed in '/usr/share/javascript/mootools' :
- it's necessary to modify the file '/usr/share/zoneminder/skins/classic/includes/functions.php' in order
to help 'zoneminder' to find the location of 'mootools'.
2) 'mootools.js' and 'mootools-more.js' are links pointing respectively to 'mootools-core.min.js' and 'mootools-more.min.js'.
- this 2 pieces of code don't give me any working results. I replace it by 'mootools-core-nc.js' and 'mootools-more-nc.js'.
And then, creation of motion detect zones is now working for me when I modify the file
'/usr/share/zoneminder/skins/classic/includes/functions.php' in this way :
Code: Select all
<script type="text/javascript" src="../javascript/mootools/mootools-core-nc.js"></script>
<script type="text/javascript" src="../javascript/mootools/mootools-more-nc.js"></script>
With best regards,
Kialne
(location Tubize, near from Brussels, Belgium)
-
- Posts: 20
- Joined: Wed Aug 25, 2010 2:03 am
- Location: Quebec
Re: [SOLVED] How to create a motion detect zone in ZM?
Kialne, you're the man!!
I followed your steps and it worked instantly
Thanks again for sharing, Zoneminder rocks!!
Regards,
highmighty
I followed your steps and it worked instantly
Thanks again for sharing, Zoneminder rocks!!
Regards,
highmighty
-
- Posts: 6
- Joined: Sat May 21, 2011 12:22 am
Re: [SOLVED] How to create a motion detect zone in ZM?
Bumping this as it fixed my issues also-- Thanks Kialne!