View unanswered posts | View active topics It is currently Mon May 20, 2013 9:27 pm



Reply to topic  [ 25 posts ]  Go to page 1, 2  Next
[SOLVED] How to create a motion detect zone in ZM? 
Author Message

Joined: Wed Aug 25, 2010 3:03 am
Posts: 20
Location: Quebec
Post [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

Attachment:
File comment: Point 1 can't be moved to another location and I don't see any other points to move (ex: 2, 3, 4)
zone_issue.png
zone_issue.png [ 206.61 KiB | Viewed 2999 times ]


Last edited by highmighty on Thu May 12, 2011 2:05 am, edited 1 time in total.



Thu May 05, 2011 5:20 am
Profile WWW

Joined: Wed Dec 02, 2009 10:55 pm
Posts: 551
Location: Spain
Post 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

_________________
miniITX system + 4 IPCams + 1 Webcam (ZM1.25)


Thu May 05, 2011 7:53 am
Profile

Joined: Wed Aug 25, 2010 3:03 am
Posts: 20
Location: Quebec
Post 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


Thu May 05, 2011 2:54 pm
Profile WWW

Joined: Fri May 06, 2011 12:08 pm
Posts: 5
Post 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


Fri May 06, 2011 12:31 pm
Profile

Joined: Fri May 06, 2011 12:08 pm
Posts: 5
Post 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:

Code:
   <script type="text/javascript" src="/javascript/mootools/mootools.js"></script>
   <script type="text/javascript" src="/javascript/mootools/mootools-more.js"></script>


I changed this to:

Code:
   <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>


Now working the area select and montage grid function.

SVLaller


Sun May 08, 2011 12:53 pm
Profile

Joined: Wed Aug 25, 2010 3:03 am
Posts: 20
Location: Quebec
Post 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:
Code:
/usr/share/javascript/mootools

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:
Code:
<script type="text/javascript" src="/javascript/mootools/mootools.js"></script>
<script type="text/javascript" src="/javascript/mootools/mootools-more.js"></script>

What am I doing wrong?

Thank you for your time,

highmighty


Mon May 09, 2011 8:05 pm
Profile WWW

Joined: Mon May 09, 2011 8:31 pm
Posts: 4
Post 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


Mon May 09, 2011 8:39 pm
Profile

Joined: Wed Aug 25, 2010 3:03 am
Posts: 20
Location: Quebec
Post 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


Mon May 09, 2011 8:58 pm
Profile WWW

Joined: Fri May 06, 2011 12:08 pm
Posts: 5
Post 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


Tue May 10, 2011 8:04 am
Profile

Joined: Mon May 09, 2011 8:31 pm
Posts: 4
Post 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


Tue May 10, 2011 7:09 pm
Profile

Joined: Fri May 06, 2011 12:08 pm
Posts: 5
Post Re: How to create a motion detect zone in ZM?
Don't forget the "root" is the Zoneminder directory in the path.


Tue May 10, 2011 8:23 pm
Profile

Joined: Wed Aug 25, 2010 3:03 am
Posts: 20
Location: Quebec
Post 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:
Code:
/usr/share/javascript/mootools

So those lines were modified:
Code:
<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>

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


Wed May 11, 2011 6:00 am
Profile WWW

Joined: Wed May 11, 2011 11:19 pm
Posts: 1
Post 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 :

Code:
  <script type="text/javascript" src="../javascript/mootools/mootools-core-nc.js"></script>
  <script type="text/javascript" src="../javascript/mootools/mootools-more-nc.js"></script>


I hope my experience can help you.
With best regards,
Kialne
(location Tubize, near from Brussels, Belgium)


Wed May 11, 2011 11:53 pm
Profile

Joined: Wed Aug 25, 2010 3:03 am
Posts: 20
Location: Quebec
Post 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


Thu May 12, 2011 2:06 am
Profile WWW

Joined: Sat May 21, 2011 1:22 am
Posts: 6
Post Re: [SOLVED] How to create a motion detect zone in ZM?
Bumping this as it fixed my issues also-- Thanks Kialne!


Sun May 22, 2011 8:47 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 25 posts ]  Go to page 1, 2  Next

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group