Time-based configuration options...

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
snakebyte
Posts: 45
Joined: Sun Dec 07, 2003 1:51 am

Time-based configuration options...

Post by snakebyte »

Any chance of getting something that could change the filter zones depending on the time of day? For instance, when the sprinkler system turns on, have it not trigger?
Also, is it possible to turn off certain monitors depending on the time of day? say when it's night and there are no lights outside (except for cars driving past). I suppose I could add some cron entries to start or stop the zm service, but that would affect all monitors.
algenon
Posts: 55
Joined: Mon Oct 20, 2003 1:25 am

Re: Time-based configuration options...

Post by algenon »

As an addition to this, would it be possible to add a filter based on the output of sscalc.

sscalc is a programme that could be run from cron once a day. It takes as an argument Lat/Long and outputs sunset/sunrise times.

This would solve a few problems for me, but I am not a Perl expert.

Any possibility Philip?


Algenon
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Re: Time-based configuration options...

Post by zoneminder »

In version .16 (the latest one, not the betas) you can define 'run states'. These are saved (or created) sets of monitor functions, so for example 'WatchAll' might be all your monitors just watching with no motion detection and 'OutdoorMotion' might be your outdoor cameras in motion detect mode whilst indoor ones are just watching etc. Once you set these states up (usually by saving when your cameras are in the individual states you want for them) you can change the system state by doing,

zmpkg.pl <StateName>

It should then be simple to add this to a cron job and also be pretty easy to create a custom perl script which calculates sunrise etc and executes a simple command like this.

Cheers,

Phil,
Post Reply