ZoneMinder / zmNinja

High performance, cross platform ionic app for Home/Commerical Security Surveillance using ZoneMinder
http://zmninja.zoneminder.com
Other
1.02k stars 271 forks source link

Add support for manual disable/enable alarms #507

Closed pinballnewf closed 7 years ago

pinballnewf commented 7 years ago

Hi, please add support to manually enable/disable alarms for monitors. This comes in handy when moving PTZ cameras.

This function is available from the live view monitor on the web ui and the api call http://IP/zm/api/monitors/alarm/id:<monitor#>/command:on/off.json

Thank you!

pliablepixels commented 7 years ago

Ah ok if that is what you meant then it's already supported. There is a lighting button and a crossed out lighting button in zmNinja that invokes those apis.

pinballnewf commented 7 years ago

Oh really? Sorry man! 😉

Let me try, sorry I did not find that.

I dont think there is any inbuilt support in ZM to suppress motion alarms, but there probably should be. I just do it by hand..

On Wed, Mar 29, 2017 at 5:54 PM, Pliable Pixels notifications@github.com wrote:

Ah ok if that is what you meant then it's already supported. There is a lighting button and a crossed out lighting button in zmNinja that invokes those apis.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/pliablepixels/zmNinja/issues/507#issuecomment-290261240, or mute the thread https://github.com/notifications/unsubscribe-auth/AP9IRgIDvRedSPdc48lINHdzoX3gelq1ks5rqu89gaJpZM4Mtsi9 .

pinballnewf commented 7 years ago

Hmm that button seems to cancel an existing alarm... not disable alarms..

On Wed, Mar 29, 2017 at 5:54 PM, Pliable Pixels notifications@github.com wrote:

Ah ok if that is what you meant then it's already supported. There is a lighting button and a crossed out lighting button in zmNinja that invokes those apis.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/pliablepixels/zmNinja/issues/507#issuecomment-290261240, or mute the thread https://github.com/notifications/unsubscribe-auth/AP9IRgIDvRedSPdc48lINHdzoX3gelq1ks5rqu89gaJpZM4Mtsi9 .

pliablepixels commented 7 years ago

Right. The API you pointed to does that too. I added those APIS to ZM for zmNinja.

pinballnewf commented 7 years ago

Hmmm ok i am looking for same functionality as the disable alarms button on the lower left of a live monitor screen. I misread the API docs i guess.

But i can probably just patch the API on my instance to do that now that i can use the lightning bolts to call them.

On Mar 29, 2017 10:09 PM, "Pliable Pixels" notifications@github.com wrote:

Right. The API you pointed to does that too. I added those APIS to ZM for zmNinja.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/pliablepixels/zmNinja/issues/507#issuecomment-290267883, or mute the thread https://github.com/notifications/unsubscribe-auth/AP9IRsocRtjel0UyUSZJqrSMKuHQP4EEks5rqvnagaJpZM4Mtsi9 .

pliablepixels commented 7 years ago

@pinballnewf - when you say

ok i am looking for same functionality as the disable alarms button on the lower left of a live monitor screen.

Are you referring to the ZM web screen or zmNinja screen? if its the zmNinja screen, those two buttons basically invoke the alarm API you pointed to earlier.

pliablepixels commented 7 years ago

closing as no update from OP - please re-open if this is still an issue