disabling individual camers via CLI?

Forum for questions and support relating to the 1.28.x releases only.
Locked
marcjw
Posts: 8
Joined: Wed Jun 24, 2015 1:38 am

disabling individual camers via CLI?

Post by marcjw »

New ZM user here. While I've found that zmpkg.pl does what I need for stopping and starting ZM from a command line, I'd like to be able to script the enabling / disabling of individual cameras, also from a command line but am unsure how. Is this possible?
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: disabling individual camers via CLI?

Post by asker »

If all you want to do is enable/disable, explore zmu

Code: Select all

zmu --help
marcjw wrote:New ZM user here. While I've found that zmpkg.pl does what I need for stopping and starting ZM from a command line, I'd like to be able to script the enabling / disabling of individual cameras, also from a command line but am unsure how. Is this possible?
I no longer work on zmNinja, zmeventnotification, pyzm or mlapi. I may respond on occasion based on my available time/interest.

Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
marcjw
Posts: 8
Joined: Wed Jun 24, 2015 1:38 am

Re: disabling individual camers via CLI?

Post by marcjw »

After a lengthy hiatus I'm now finally able to properly tend to my ZM once again.

Unfortunately, it appears that zmu won't or can't suspend or disable individual cameras. The help screen has commands for both --suspend and --disable but neither seem to work. No error (or success) is returned and MODECT continues on as if nothing changed. I tried this on all 5 cameras with the same results.

There has to be a way to perform an individual camera disable (or suspend or run state) from the command line that I'm just not seeing, doesn't there?

asker wrote:If all you want to do is enable/disable, explore zmu

Code: Select all

zmu --help
marcjw wrote:New ZM user here. While I've found that zmpkg.pl does what I need for stopping and starting ZM from a command line, I'd like to be able to script the enabling / disabling of individual cameras, also from a command line but am unsure how. Is this possible?
marcjw
Posts: 8
Joined: Wed Jun 24, 2015 1:38 am

Re: disabling individual camers via CLI?

Post by marcjw »

Never mind, I'm a moron. I discovered that zmu requires root. sudo zmu -m etc works fine.
Locked