Page 1 of 1
control camera modes independently from command line
Posted: Tue Jun 20, 2006 10:12 am
by henke
Hi,
Is there a way to change a camera mode directly from command line without the creation of a new state?
thank you for your help!
Posted: Wed Jun 21, 2006 7:39 am
by henke
Hi,
Is there really no way to do this?
-h
Posted: Wed Jun 21, 2006 9:27 am
by voronwe
Hi Henke
Not from what i know.
Posted: Wed Jun 21, 2006 9:28 am
by jameswilson
wel i havnt checked the docs as i have never need to do this but i suppose you 'could' edit the db with a command, then restat zm with a command if you really have to
Posted: Wed Jun 21, 2006 1:10 pm
by henke
Hi,
Ok thank you. There were some suggestions in previous postings long time ago that it was possible but maybe then it isnt.
I guess I have to look into changing the db from scripts or manually starting the zmc and zma daemons from scripts.
I have to control 10+ cameras independently and on irregular intervals so therefore I am looking for a solution to this.
-h
Posted: Wed Jun 21, 2006 2:02 pm
by jameswilson
You could duplicate your cameras if needed if that helps
ie have 2 cam1 one as mocord one as record etc
Posted: Wed Jun 21, 2006 2:15 pm
by rdmelin
Something like this
Code: Select all
echo "UPDATE Monitors SET Function='Modect' WHERE Id='1'" |mysql -u zmuser -pzmpass zm && zmpkg.pl restart
Posted: Wed Jun 21, 2006 6:00 pm
by henke
Thank you rdmelin! That does the trick!
Posted: Fri Jun 23, 2006 9:36 am
by zoneminder
You can also use zmdc.pl directly to just control individual daemons if you want to make it a little quicker.