Modect schedule

Support and queries relating to all previous versions of ZoneMinder
Locked
mnordstr
Posts: 2
Joined: Tue Mar 07, 2006 6:54 pm

Modect schedule

Post by mnordstr »

Hi,

I'd like to create a recording solution that uses modect to record in a certain timeframe. What I basically want is to put the cameras in modect mode during night, and off or monitor during daytime. What's the proper recommended way to do this? A cronjob that edits the database?

Thanks!
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

The current recommended way is to use run states. Search for 'run state' and you should get some guidance if there's nothing in the manual. Basically set up ZM as you would want for the night, click on the 'Running' link and save it as 'Night' or something, then set up your cams for the day and save that state as 'Day'. Then in a cron job just do 'zmpkg.pl Day' etc to switch.

Be warned that there is a small bug in 1.22.0 that affects saving run states. If you find the run state threads you should see the little patch that fixes it also.
Phil
mnordstr
Posts: 2
Joined: Tue Mar 07, 2006 6:54 pm

Post by mnordstr »

Thanks, seems to work!
Locked