easy way to disable/enable the system?

Forum for questions and support relating to the 1.29.x releases only.
Locked
777funk
Posts: 49
Joined: Thu Mar 31, 2016 8:53 pm

easy way to disable/enable the system?

Post by 777funk »

I am having to disable each MoDect one camera at a time. Is there an easy way to let them monitor but turn MoDect for them ALL on/off at will?
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: easy way to disable/enable the system?

Post by asker »

Yup - just define two run states
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
SteveGilvarry
Posts: 494
Joined: Sun Jun 29, 2014 1:12 pm
Location: Melbourne, AU

Re: easy way to disable/enable the system?

Post by SteveGilvarry »

Asker is that in the User guide? I did a quick search and couldn't see anything about states, we may need to add something so we can link to it.
777funk for reference it is at the top of the console under the Running or Stopped State. Set monitors how you want them and Add a New state.
Production Zoneminder 1.37.x (Living dangerously)
Random Selection of Cameras (Dahua and Hikvision)
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: easy way to disable/enable the system?

Post by asker »

its in the FAQ under extending Zoneminder.
However I do think it warrants being elevated to the main docs - this is a common need. I'll add it.
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
777funk
Posts: 49
Joined: Thu Mar 31, 2016 8:53 pm

Re: easy way to disable/enable the system?

Post by 777funk »

I see extending Zoneminder in the FAQ but all I see is cron jobs which I'm somewhat familiar with. I'm not looking to schedule anything however, just looking for an easy way to enable/disable MoDect on all cameras with a single action.
SteveGilvarry
Posts: 494
Joined: Sun Jun 29, 2014 1:12 pm
Location: Melbourne, AU

Re: easy way to disable/enable the system?

Post by SteveGilvarry »

https://github.com/ZoneMinder/ZoneMinde ... eb-console
See Point I (Capital i)
This will make it to the docs eventually, but most often people setup the states and use cron to change them on a schedule. In your case configure your required run states and swap between them as desired. So in your particular case, set all monitors to Monitor, click on "Running" add new state (I think that saves it), then change all to modect and then add another state. Then when you click on State link it will give you options in drop down to swap to your saved states.
Production Zoneminder 1.37.x (Living dangerously)
Random Selection of Cameras (Dahua and Hikvision)
777funk
Posts: 49
Joined: Thu Mar 31, 2016 8:53 pm

Re: easy way to disable/enable the system?

Post by 777funk »

That works great! Thanks! Does it also save Filter states? I'd like different filters for different run states.
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: easy way to disable/enable the system?

Post by asker »

nope
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
777funk
Posts: 49
Joined: Thu Mar 31, 2016 8:53 pm

Re: easy way to disable/enable the system?

Post by 777funk »

I think it might save filter states. I just changed the email filter state and nothing happened (still emailing alerts). Then I saved the run state with the updated filter state and the emails stopped (matching my filter criterion).
Locked