help with commandline zone configuration

Forum for questions and support relating to the 1.27.x releases only.
Locked
AllenW1
Posts: 3
Joined: Tue Dec 02, 2014 12:24 am

help with commandline zone configuration

Post 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.
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Re: help with commandline zone configuration

Post 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

After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
AllenW1
Posts: 3
Joined: Tue Dec 02, 2014 12:24 am

Re: help with commandline zone configuration

Post 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
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Re: help with commandline zone configuration

Post by PacoLM »


After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
Locked