Page 1 of 1

help with commandline zone configuration

Posted: Sun Mar 29, 2015 8:44 pm
by AllenW1
I want to change Zone 'Type' between 'Active' and 'Inactive' by way of the command line and by cron commands. Any pointers are appreciated.

I see from the Wiki documentation some PERL scripts for changing other configuration items, but not Zone configuration.

I can change the database with mysql commands, but they do not seem to be noticed by the running zoneminder.

I may want to change thing like 'Pixel Threshold' later.

What motivates this is different images between day and night(with IR) causing non-optimal triggering.

Re: help with commandline zone configuration

Posted: Mon Mar 30, 2015 7:17 am
by PacoLM
Hi,

I believe that will be easier to duplicate the camera and change the zone configuration in the copy. In that way you could change the state of Zoneminder being, for instance:

State DaySettings:
Camera 1- Camera function= Modect, Zone configuration Active
Camera 1(clone)- Camera function=None, Zone configuration Inactive

State NightSettings:
Camera 1 - Camera function=None, Zone configuration Inactive
Camera 1 (clone)- Camera function= Modect, Zone configuration Active

It's easier to switch between states using cron commands, don't you think?

Hope it helps,

PacoLM

Re: help with commandline zone configuration

Posted: Tue Mar 31, 2015 1:58 pm
by AllenW1
PacoLM,

What is the script for cron to execute the change of state of Zoneminder in your example?

I know how to do it in interactive mode.

Thanks, Allen

Re: help with commandline zone configuration

Posted: Tue Mar 31, 2015 2:46 pm
by PacoLM