Scehduling

Forum for questions and support relating to the 1.24.x releases only.
Locked
hash4all
Posts: 1
Joined: Wed Dec 07, 2011 2:26 pm

Scehduling

Post by hash4all »

Support:

Is it possible to do scheduling of the cam to capture the image/video for n numbers of hours?
For Ex i want to capture the images/video for 5 hours between 1am to 6am.

Please let us know how we can schedule it in Zone minder.

Thanks
Hash
kirk
Posts: 4
Joined: Thu Dec 01, 2011 5:22 pm

Re: Scehduling

Post by kirk »

I'm wondering the exact same thing.

Maybe it could be done with cron jobs to stop/start zoneminder? That's the only thing I can think of - might give it a try.
kirk
Posts: 4
Joined: Thu Dec 01, 2011 5:22 pm

Re: Scehduling

Post by kirk »

Yes, just tested it and it works fine if you put it into a crontab for a user that can restart services (like root).

Here are two lines you can use:

# Stop zoneminder every day at 6am
0 6 * * * /etc/init.d/zoneminder stop

# Start zoneminder every day at 1am
0 1 * * * /etc/init.d/zoneminder start

If you're not familiar with cron syntax there are lots of resources out there. I can't link to one (board says I'm too new of a user) but search for "cron quick reference" and you'll find something.

Note though that this shuts zoneminder down completely. I believe the web frontend will still be accessible (so you can manually start it again if you want to) and I think you can browse/view events when zm is not running since that's all apache/mysql/php. Before relying on this I'd give it a bit of testing.
Locked