control camera modes independently from command line

Support and queries relating to all previous versions of ZoneMinder
Locked
henke
Posts: 60
Joined: Thu Nov 10, 2005 8:16 am

control camera modes independently from command line

Post 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!
henke
Posts: 60
Joined: Thu Nov 10, 2005 8:16 am

Post by henke »

Hi,

Is there really no way to do this?

-h
User avatar
voronwe
Posts: 193
Joined: Tue Jan 18, 2005 12:40 am
Location: Copenhagen Denmark

Post by voronwe »

Hi Henke

Not from what i know.
Best Regards
Tom Stage
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post 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
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
henke
Posts: 60
Joined: Thu Nov 10, 2005 8:16 am

Post 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
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

You could duplicate your cameras if needed if that helps
ie have 2 cam1 one as mocord one as record etc
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
User avatar
rdmelin
Posts: 863
Joined: Wed Oct 29, 2003 2:23 pm
Location: Ellensburg, WA USA

Post 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 
henke
Posts: 60
Joined: Thu Nov 10, 2005 8:16 am

Post by henke »

Thank you rdmelin! That does the trick!
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

You can also use zmdc.pl directly to just control individual daemons if you want to make it a little quicker.
Phil
Locked