How can I define when to record ?

Forum for questions and support relating to the 1.28.x releases only.
Locked
leostereo
Posts: 5
Joined: Fri Jan 15, 2016 12:30 am

How can I define when to record ?

Post by leostereo »

I still can not find where to set this basic cctv function.
For example I want to disable the modect from recording on thuesday or ... to only record between 8-18hs.
Is that possible , please say yes ... is the only feature missing so far.
Regards,
Leandro.
User avatar
knight-of-ni
Posts: 2406
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: How can I define when to record ?

Post by knight-of-ni »

See the FAQ for the answer to your question:
http://zoneminder.readthedocs.org/en/la ... ay-or-week

Create different States and then create crontab entries to activate those states when you want.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
leostereo
Posts: 5
Joined: Fri Jan 15, 2016 12:30 am

Re: How can I define when to record ?

Post by leostereo »

Hi , thanks for the response.
Although it could work, I think it is a littel difficult for a regular user.
It is a shame ... having an easy configurable scheduller, ZM would be the best cctv software ever.
Do you think , developers will add this feature ?

Thanks,
Leandro.
User avatar
knight-of-ni
Posts: 2406
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: How can I define when to record ?

Post by knight-of-ni »

I'm sorry you have difficulty understanding, but the feature I pointed you to is designed to do exactly what you asked.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
leostereo
Posts: 5
Joined: Fri Jan 15, 2016 12:30 am

Re: How can I define when to record ?

Post by leostereo »

Please helpme understand.
What I can check so far is that when you go from running to stop state, monitors are not longer accesible, so modect will stop recording but I can not look at the monitors either.
Please give me a clue here...
You say is it possible to change the individual function of a monitor in a crontab line with the zmpkg.pl script ?
How to do it ? lets suppose I want:
monitor1 to goes from monitor to modect on weekdays from 2 to 4 am.
Monitor2 be allways in monitor mode.
Monitor3 be allways modetc mode.

Is that possible ?
Please point some doc if you are tired to explain to idiots like me.
Regards.
SteveGilvarry
Posts: 494
Joined: Sun Jun 29, 2014 1:12 pm
Location: Melbourne, AU

Re: How can I define when to record ?

Post by SteveGilvarry »

So reading the doco linked I am pretty sure this is what you need to do. Never done it myself.
Set
Monitor 1 to Monitor
Monitor 2 to Monitor
Monitor 3 to Modect

Click on the Running/Stopped link at top of console.
Enter name for new state into text box. For example "Daytime" then click save. You should now have an extra choice in the dropdown box for the state.

Now set
Monitor 1 to Modect
Monitor 2 to Monitor
Monitor 3 to Modect

Now click Running/Stopped again and create a new state, say "Nighttime"

Ok so now you have the two desired states with the monitors running in the desired mode. Each different setting you want for a camera means saving a new state as it holds the mode of all cameras at once. I think this is where you are going wrong as you are thinking you want to just change each camera, but instead you save all the cameras to a state.

Now use cron to control the changing of state, not the individual monitors. Google cron if you are not sure what this is doing.

crontab -e

Code: Select all

0 2 * * 1-5 root /usr/local/bin/zmpkg.pl Nighttime
0 4 * * 1-5 root /usr/local/bin/zmpkg.pl Daytime
Production Zoneminder 1.37.x (Living dangerously)
Random Selection of Cameras (Dahua and Hikvision)
leostereo
Posts: 5
Joined: Fri Jan 15, 2016 12:30 am

Re: How can I define when to record ?

Post by leostereo »

Thanks Steve !! I got it now.
Locked