Change Camera function from backend

Support and queries relating to all previous versions of ZoneMinder
Locked
ynn
Posts: 152
Joined: Fri Mar 17, 2006 2:30 am

Change Camera function from backend

Post by ynn »

Is there anyway we can check and then change the camera function from the back end via shell or perl? let say there are 8 cameras and they are all "Mocord" and I want to change to camera 1 - 4 to "Modect" and 5-8 to "Monitor"?
Thanks.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

The monitor states will always be accessible in the DB. This you can get easily from perl, or slightly less easily via shell.

You can use run states to control your monitors behaviour. This is easy to do from both perl and shell.
Phil
ynn
Posts: 152
Joined: Fri Mar 17, 2006 2:30 am

Post by ynn »

Thanks Phil, do you have any perl script DB example on how to get each monitor function status or changing it?
thanks.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Not to hand. I will see if I can find time to knock something up. There are several examples int he zm*.pl scripts though. You will just need to grep a bit to find them.
Phil
ynn
Posts: 152
Joined: Fri Mar 17, 2006 2:30 am

Post by ynn »

Thank so much Phil, I will monitor this forums everyday, in the mean time i will take a loox at zm*.pl.

thank you again.
Locked