how to limit events to a certain timeframe

Forum for questions and support relating to the 1.24.x releases only.
Locked
nicod
Posts: 1
Joined: Tue Jul 12, 2011 6:09 pm

how to limit events to a certain timeframe

Post by nicod »

I'm a sleepwalker, so I installed a camera next to my bedroom to keep track of myself. However, I want to make sure zm only records events during the night. I know I can use filters to filter out unwanted events, but this happens after the recording if I understand correctly. I actually want to turn off event processing completely during certain hours (to limit harddisk usage, lessen the load on my tiny server and prove to my wife that I really don't care when she gets out of bed in the morning)
I know I could use crontab to turn off zm completely at a certain time but this would also prevent me from looking at recorded events.

Any ideas how to turn off processing for a specific monitor between certain hours?

thanks in advance,

Nico
kross
Posts: 12
Joined: Wed Jun 01, 2011 8:12 pm

Re: how to limit events to a certain timeframe

Post by kross »

Actually you don't need the zm daemons running to view recorded events. So using cron to stop and start zm might be the easiest.
alf
Posts: 41
Joined: Wed Jun 17, 2009 6:13 pm

Re: how to limit events to a certain timeframe

Post by alf »

http://en.wikipedia.org/wiki/Cron

At the prompt

easiest editor

$ sudo export EDITOR=gedit

$ crontab -e

#do something like


01 18 * * * /what/ever/you/want/to/start # everyday start at seven pm
01 08 * * * /what/ever/you/want/to/stop #every day at eight am


I think you might be able to start and stop apache which will I believer do the trick for you.
Locked