New Real time Event Notification Service for ZM

If you've made a patch to quick fix a bug or to add a new feature not yet in the main tree then post it here so others can try it out.
Post Reply
User avatar
asker
Posts: 1421
Joined: Sun Mar 01, 2015 12:12 pm

New Real time Event Notification Service for ZM

Post by asker » Wed Oct 07, 2015 4:26 pm

What is it?

A secure web socket based event notification system to report new events in real time.
Ties into ZM authentication

As of Oct 24 2015, version 0.3 also fully supports APNS/GCM if you write your own app that needs them. If you are using zmNinja, all the push work is already done for you. Read the README for the event server.

Why do we need it?

using filters to report events is far from real time

Who uses it?

You are supposed to use it with your own app. But zmNinja uses it too. Demo HERE

Awesome, what can it do, how do I use it, how do I install it, is the moon blue today?

Answers to all your questions HERE
Last edited by asker on Sat Oct 24, 2015 9:54 pm, edited 2 times in total.
Please don't ask me questions via PM. Feel free to post in the forums or Github

My collection of ZoneMinder learnings:
https://wiki.zoneminder.com/Various_ZM_thoughts

aaronl
Posts: 33
Joined: Wed Aug 19, 2015 9:11 pm

Re: New Real time Event Notification Service for ZM

Post by aaronl » Wed Oct 07, 2015 7:12 pm

Is this a requirement for zmNinja, or just recommended?

User avatar
asker
Posts: 1421
Joined: Sun Mar 01, 2015 12:12 pm

Re: New Real time Event Notification Service for ZM

Post by asker » Wed Oct 07, 2015 7:32 pm

aaronl wrote:Is this a requirement for zmNinja, or just recommended?
Neither required nor recommended - strictly optional :-)
Please don't ask me questions via PM. Feel free to post in the forums or Github

My collection of ZoneMinder learnings:
https://wiki.zoneminder.com/Various_ZM_thoughts

User avatar
asker
Posts: 1421
Joined: Sun Mar 01, 2015 12:12 pm

Re: New Real time Event Notification Service for ZM

Post by asker » Mon Oct 19, 2015 2:22 pm

I've just released a new version of the Event Server (0.2). It's currently in the "experimental" branch. Will be migrated to stable branch soon
https://github.com/pliablepixels/zmeven ... perimental

New features:
  • you can now register specific monitors for which events will be broadcasted
  • Supports iOS APNS fully - however its of no use to you unless you have an iOS developer account - you will need to re-compile zmNinja as well using your Push certificates. Like I said before, this won't change unless I host my own push server at my own cost.
  • new commands added and JSON normalized further - see README
Please don't ask me questions via PM. Feel free to post in the forums or Github

My collection of ZoneMinder learnings:
https://wiki.zoneminder.com/Various_ZM_thoughts

segordon
Posts: 37
Joined: Tue Aug 11, 2015 10:04 am

Re: New Real time Event Notification Service for ZM

Post by segordon » Tue Oct 20, 2015 10:53 pm

Here's a project I started last night which works in conjunction with the real time event server.

It allows me to receive those alerts on my desktop, and optionally open them for review in my web browser.

It's crude, but it works. I'll be smoothing out the rough edges in the next few days.

Multi-platform support in the works.

https://github.com/segordon/zm-tattletale

User avatar
asker
Posts: 1421
Joined: Sun Mar 01, 2015 12:12 pm

Re: New Real time Event Notification Service for ZM

Post by asker » Thu Oct 22, 2015 11:22 pm

Very nice!
Please don't ask me questions via PM. Feel free to post in the forums or Github

My collection of ZoneMinder learnings:
https://wiki.zoneminder.com/Various_ZM_thoughts

kenneth558
Posts: 18
Joined: Mon Jul 27, 2015 3:57 am

Re: New Real time Event Notification Service for ZM

Post by kenneth558 » Mon Oct 26, 2015 5:08 am

Work on other aspects of my system has kept me from finding this out for myself:
Judging from the settings of average score among others, my guess is that an alert can not get emailed until the event [that triggered my emailing filter] is completely ended, am I right? IOW, if an event that matches my filter to email me continues on for a long time before ending, my guess is that ZM is unable to notify me for that "long time". Can someone confirm or deny my suspicions?

If my suspicions are correct, does this improvement, the one this thread is about, improve that ZM 'flaw' (as I see it, anyway)?
Last edited by kenneth558 on Mon Oct 26, 2015 7:29 pm, edited 1 time in total.

segordon
Posts: 37
Joined: Tue Aug 11, 2015 10:04 am

Re: New Real time Event Notification Service for ZM

Post by segordon » Mon Oct 26, 2015 11:34 am

segordon wrote:Here's a project I started last night which works in conjunction with the real time event server.

It allows me to receive those alerts on my desktop, and optionally open them for review in my web browser.

https://github.com/segordon/zm-tattletale

Re-wrote it with options for logging to file, alerting with sound files, alerting with dialog windows, and timestamps. More features on the way. Also it's now pretty multi-platform friendly.

User avatar
asker
Posts: 1421
Joined: Sun Mar 01, 2015 12:12 pm

Re: New Real time Event Notification Service for ZM

Post by asker » Tue Nov 03, 2015 5:14 pm

Kenneth, Zoneminder updates an event the moment it occurs - it does not wait till the end.
The real time event server also detects this and reports it right away - so its immediate.

If you are referring to filters, I haven't looked at the code - but its somewhat unrelated to how the event server works.
kenneth558 wrote:Work on other aspects of my system has kept me from finding this out for myself:
Judging from the settings of average score among others, my guess is that an alert can not get emailed until the event [that triggered my emailing filter] is completely ended, am I right? IOW, if an event that matches my filter to email me continues on for a long time before ending, my guess is that ZM is unable to notify me for that "long time". Can someone confirm or deny my suspicions?

If my suspicions are correct, does this improvement, the one this thread is about, improve that ZM 'flaw' (as I see it, anyway)?
Please don't ask me questions via PM. Feel free to post in the forums or Github

My collection of ZoneMinder learnings:
https://wiki.zoneminder.com/Various_ZM_thoughts

mrd
Posts: 255
Joined: Wed Apr 26, 2006 12:39 am
Location: Boston USA

Re: New Real time Event Notification Service for ZM

Post by mrd » Mon Mar 30, 2020 2:05 am

Is this included in the most recent release of ZM now?
MRD

User avatar
asker
Posts: 1421
Joined: Sun Mar 01, 2015 12:12 pm

Re: New Real time Event Notification Service for ZM

Post by asker » Tue Apr 07, 2020 4:52 pm

mrd wrote:
Mon Mar 30, 2020 2:05 am
Is this included in the most recent release of ZM now?
No. Recent versions of ZM have an option to auto-enable it on ZM start, but the installation process is separate.
Start here https://zmeventnotification.readthedocs ... stall.html
Please don't ask me questions via PM. Feel free to post in the forums or Github

My collection of ZoneMinder learnings:
https://wiki.zoneminder.com/Various_ZM_thoughts

mrd
Posts: 255
Joined: Wed Apr 26, 2006 12:39 am
Location: Boston USA

Re: New Real time Event Notification Service for ZM

Post by mrd » Tue Apr 07, 2020 7:11 pm

Thanks!
MRD

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests