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
Scheduled Off Times
- knight-of-ni
- Posts: 2406
- Joined: Thu Oct 18, 2007 1:55 pm
- Location: Shiloh, IL
Re: Scheduled Off Times
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/
All of these can be found at https://zoneminder.blogspot.com/
-
- Posts: 11
- Joined: Thu Sep 11, 2014 4:34 pm
Re: Scheduled Off Times
Thank you much!
Not as simple as I was hoping but we will figure it out!
Danno
Not as simple as I was hoping but we will figure it out!
Danno
-
- Posts: 11
- Joined: Thu Sep 11, 2014 4:34 pm
Re: Scheduled Off Times
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
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
- knight-of-ni
- Posts: 2406
- Joined: Thu Oct 18, 2007 1:55 pm
- Location: Shiloh, IL
Re: Scheduled Off Times
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:
If it is in your path, it will tell you where it is.
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
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/
All of these can be found at https://zoneminder.blogspot.com/