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.
Time-based configuration options...
Re: Time-based configuration options...
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
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
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Re: Time-based configuration options...
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,
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,