scheduler start/stop record: is it possible?

Forum for questions and support relating to the 1.25.x releases only.
Locked
cybermod
Posts: 11
Joined: Sun Feb 16, 2014 5:17 pm

scheduler start/stop record: is it possible?

Post by cybermod »

for example, i need to star record from 20.00 PM to 8.00 AM, is it possibile?
basketcase
Posts: 31
Joined: Thu Aug 22, 2013 10:04 pm

Re: scheduler start/stop record: is it possible?

Post by basketcase »

You sure can, I do this at home.

I'll steal whats written on the FAQ: http://www.zoneminder.com/wiki/index.php/FAQ



How can I get ZM to do different things at different times of day or week?

If you want to configure ZoneMinder to do motion detection during the day and just record at night, for example, you will need to use ZoneMinder 'run states'. A run state is a particular configuration of monitor functions that you want to use at any time.

To save a run state you should first configure your monitors for Modect, Record, Monitor etc as you would want them during one of the times of day. Then click on the running state link at the top of the Console view. This will usually say 'Running' or 'Stopped'. You will then be able to save the current state and give it a name, 'Daytime' for example. Now configure your monitors how you would want them during other times of day and save that, for instance as 'Nighttime'.

Now you can switch between these two states by selecting them from the same dialog you saved them, or from the command line from issue the command zmpkg.pl <run state>, for example zmpkg.pl Daytime.

The final step you need to take, is scheduling the time the changes take effect. For this you can use cron. A simple entry to change to the Daylight state at at 8am and to the nighttime state at 8pm would be as follows,

Code: Select all

0 8 * * * root /usr/local/bin/zmpkg.pl Daytime
0 20 * * * root /usr/local/bin/zmpkg.pl Nighttime
Hope that helps!
cybermod
Posts: 11
Joined: Sun Feb 16, 2014 5:17 pm

Re: scheduler start/stop record: is it possible?

Post by cybermod »

great, tnx so much for your reply bascketcase!
Locked