Page 1 of 1

Scheduled Off Times

Posted: Mon Feb 02, 2015 1:24 am
by prenger745
Does Zoneminder have any way to schedule modetect or not?

For example...my brother has a camera overlooking his swimming pool. He basically wants to have the camera NOT do modetect from 9am to 5pm or something like that. No need to record a day at his pool with his family.

Thanks,
Dan

Re: Scheduled Off Times

Posted: Mon Feb 02, 2015 1:35 pm
by knight-of-ni

Re: Scheduled Off Times

Posted: Tue Feb 03, 2015 1:00 am
by prenger745
Thank you much!

Not as simple as I was hoping but we will figure it out!

Danno

Re: Scheduled Off Times

Posted: Sat Feb 07, 2015 12:36 am
by prenger745
I just wanted to thank you. It was not difficult at all to do. I have not really had to mess with the chrontab before so it was a learning experience but we have it nailed down now. The only thing I had to change was the path. Here is what is in the wiki

0 8 * * * root /usr/local/bin/zmpkg.pl Daytime
0 20 * * * root /usr/local/bin/zmpkg.pl Nighttime

It wouldn't work with those paths. After some testing I was able to get it to work in the chrontab with just this:

0 20 * * * root zmpkg.pl Normal
0 8 * * * root zmpkg.pl pooloff


I didn't dig down to find where zmpkg.pl is residing but it wouldn't take too much effort.

Again, Thanks!

Dan

Re: Scheduled Off Times

Posted: Sat Feb 07, 2015 12:58 am
by knight-of-ni
The path to where your zoneminder executable files are depends on your Prefix.
Your prefix is determined at build time.

If you installed from source, the prefix is /usr/local
If you installed from a package (recommend), the prefix is /usr

In any case, in Linux anytime you can't find an executable file, just use type:

Code: Select all

type zmpkg.pl
If it is in your path, it will tell you where it is.