Timed Zones

Anything you want added or changed in future versions of ZoneMinder? Post here and there's a chance it will get in! Search to make sure it hasn't already been requested.
Post Reply
RichyF
Posts: 6
Joined: Wed Oct 26, 2005 3:04 pm
Location: Bristol, UK

Timed Zones

Post by RichyF »

Ive looked through to see if i can turn off zones at certain times but i cant seem to find it. Would it be a good idea to be able to only make sources or zones active at certain times (for example for making active out of office hours or f on weekdays from 9am - 5.30pm etc.

Sorry if this is already a possible option.

Regards
:D
Richy
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

You can use the run state to do this with a cron job.

Set your cameras how you want them for during the day (ie. camera one to monitor mode, camera two to modect.... etc)

At the top of the console click on Running like you would to stop or restart the service but instead put a name in "New State" and save.

Then set up the cameras how you want them for your off hours, and save that state same as above.

for your cron command put in:
zmpkg.pl your_run_state

There is a bit more here on this thread:
http://www.zoneminder.com/forums/viewtopic.php?t=5024
Regards,
Cordel
Alan87i
Posts: 116
Joined: Sun Jul 27, 2008 9:58 am

Post by Alan87i »

Could it not be set in a more simple way.
I read both posts mentioned in this thread and still have no clue how to do this.
I don't see why this isn't set in the last few versions.
A newb would be able to figure out how to set modect with a 24 hour time line put a 1 in the box for modect and a 2 for monitor .
Having to dig into the bowels of a program and set up a cron job ?? witch I have no idea what it means. And I have used several flavors of linux for 4 years now.
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

cron is a big part of linux and nothing to do with zm.
To get zm to change modes is probably on the long todo list. You could donate and request it bumped up the list a bit
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
coke
Posts: 518
Joined: Wed Jan 30, 2008 5:53 pm
Location: St. Louis, MO, USA

Post by coke »

And, after 4 years, you should look into some unix/linux books about administrative tools, as Cron is near the top of the list (or should be) of most of them. It's the scheduling deamon, and makes life on any 'nix much easier.

Quick google gave me an intro to cron that should serve you. There are probably hundreds, if not thousands, of similar how-tos. http://www.reallylinux.com/docs/basiccron.shtml
mrd
Posts: 269
Joined: Wed Apr 26, 2006 12:39 am
Location: Boston USA

Post by mrd »

I'm trying to use this feature to enable/disable a background filter so that I can be alerted by an SMS when I'm away from home if motion is detected in one of my zones. Does this feature support changes to filters?

Also, it would be nice if the saved states appeared in a drop-down menu.

Thanks,
MRD
Post Reply