Search found 34 matches

by hahobson
Tue Dec 14, 2021 7:10 am
Forum: Mobile Apps and Event Server
Topic: Zone alarms vs monitor alarms via websocket JSON output
Replies: 31
Views: 38643

Re: Zone alarms vs monitor alarms via websocket JSON output

I started using my Android phones set up can CCTV cameras. The performance is much better than the USB camera. I used the USB camera for testing ZM's features. I won't be using any in my project.
by hahobson
Fri Dec 10, 2021 11:44 am
Forum: Mobile Apps and Event Server
Topic: Zone alarms vs monitor alarms via websocket JSON output
Replies: 31
Views: 38643

Re: Zone alarms vs monitor alarms via websocket JSON output

Thanks Asker. I need to do some more testing.
by hahobson
Tue Dec 07, 2021 5:04 am
Forum: Mobile Apps and Event Server
Topic: Zone alarms vs monitor alarms via websocket JSON output
Replies: 31
Views: 38643

Re: Zone alarms vs monitor alarms via websocket JSON output

Below, it references 192.168.0.103. Not sure why it does that. The machine's address is 192.168.0.100. harry@harry-4300-SFF-PC:~$ sudo -u www-data /var/lib/zmeventnotification/bin/zm_detect.py --config /etc/zm/objectconfig.ini --eventid 5290 --monitorid 4 --debug 12/07/21 10:06:37 zmesdetect_m4[5707 ...
by hahobson
Tue Dec 07, 2021 2:14 am
Forum: Mobile Apps and Event Server
Topic: Zone alarms vs monitor alarms via websocket JSON output
Replies: 31
Views: 38643

Re: Zone alarms vs monitor alarms via websocket JSON output

Thanks Asker,

"Cause":"End:Motion: lowerleft, upperRight is every helpful in my and other's applications. Still seeing if I can get the alarm ID to increment a bit faster.
by hahobson
Sat Dec 04, 2021 12:51 pm
Forum: Mobile Apps and Event Server
Topic: Zone alarms vs monitor alarms via websocket JSON output
Replies: 31
Views: 38643

Re: Zone alarms vs monitor alarms via websocket JSON output

Thanks Kitkat, Zones seem to pop up randomly. There is this on the .ini file: # Interval, in seconds, to reload known monitors (default: 300). monitor_reload_interval = 300 That is 5 minutes. Wonder if that effects reporting over the websocket and the event ID. event_check_interval = 5 ,, That would ...
by hahobson
Fri Dec 03, 2021 9:02 am
Forum: Mobile Apps and Event Server
Topic: Zone alarms vs monitor alarms via websocket JSON output
Replies: 31
Views: 38643

Re: Zone alarms vs monitor alarms via websocket JSON output

{"events":[{"Cause":"End:Motion: lowerleft, upperRight","EventId":"4707","MonitorId":"4","DetectionJson":[],"RulesObject":{},"Name":"1"}],"type":"","status":"Success","event":"alarm"} lowerleft and upperRight are actual zones. That's really good news, as it satisfies my requirement fully
by hahobson
Fri Dec 03, 2021 8:57 am
Forum: Mobile Apps and Event Server
Topic: Zone alarms vs monitor alarms via websocket JSON output
Replies: 31
Views: 38643

Re: Zone alarms vs monitor alarms via websocket JSON output

The Event ID is not incrementing often. Like it takes minutes.
by hahobson
Fri Dec 03, 2021 7:54 am
Forum: Mobile Apps and Event Server
Topic: Zone alarms vs monitor alarms via websocket JSON output
Replies: 31
Views: 38643

Re: Zone alarms vs monitor alarms via websocket JSON output

import json from websocket import create_connection from time import sleep ws = create_connection("ws://127.0.0.1:9000") ws.send(json.dumps({"event":"auth","data":{"user":"admin","password":"admin"}})) result = ws.recv() print (result) while True: ws.send(json.dumps({"event":"control","data":{"type ...
by hahobson
Fri Dec 03, 2021 3:33 am
Forum: Mobile Apps and Event Server
Topic: Zone alarms vs monitor alarms via websocket JSON output
Replies: 31
Views: 38643

Re: Zone alarms vs monitor alarms via websocket JSON output

I will write a listener today that will poll the websocket every second to see what happens.

I will look at the .ini file and turnoff the hooks.

The current script seems to only work after 10 minutes. The delay of the alarm is 3 seconds or so.
by hahobson
Fri Dec 03, 2021 2:04 am
Forum: Mobile Apps and Event Server
Topic: Zone alarms vs monitor alarms via websocket JSON output
Replies: 31
Views: 38643

Re: Zone alarms vs monitor alarms via websocket JSON output

If I run the Python script for say 5 to 10 minutes, then dangle my fingers in front of the camera to cause an alarm, a couple of seconds later I get that output that makes me salivate.
by hahobson
Fri Dec 03, 2021 1:46 am
Forum: Mobile Apps and Event Server
Topic: Zone alarms vs monitor alarms via websocket JSON output
Replies: 31
Views: 38643

Re: Zone alarms vs monitor alarms via websocket JSON output

Do I need a hook? Do I want a hook? I wonder what I can turn off that could simplify and speed things up. All I want is that JSON output that tells me which monitor has an alarm. There are no zone alarms, but a monitor alarm may be enough for what I am doing. Thanks Kitkat!
by hahobson
Thu Dec 02, 2021 11:50 pm
Forum: Mobile Apps and Event Server
Topic: Zone alarms vs monitor alarms via websocket JSON output
Replies: 31
Views: 38643

Re: Zone alarms vs monitor alarms via websocket JSON output

The websocket output randomly or with great delay sends a message. I cannot ascertain which at the moment.
by hahobson
Thu Dec 02, 2021 9:28 pm
Forum: Mobile Apps and Event Server
Topic: Zone alarms vs monitor alarms via websocket JSON output
Replies: 31
Views: 38643

Re: Zone alarms vs monitor alarms via websocket JSON output

@Kitkat Zoneminder's web GUI shows an alarm within a reasonable time, and so does the ES, but the websocket output seems to randomly output the alarm.
by hahobson
Thu Dec 02, 2021 8:28 am
Forum: Mobile Apps and Event Server
Topic: Zone alarms vs monitor alarms via websocket JSON output
Replies: 31
Views: 38643

Re: Zone alarms vs monitor alarms via websocket JSON output

Output: {"status":"Success","type":"","events":[{"MonitorId":"4","EventId":"4560","Cause":"","Name":"1","RulesObject":{},"DetectionJson":[]}],"event":"alarm"} The above output takes several minutes to be triggered. It does not reflect the zone but it does show the monitor ID, which might be enough ...
by hahobson
Thu Dec 02, 2021 6:40 am
Forum: Mobile Apps and Event Server
Topic: Zone alarms vs monitor alarms via websocket JSON output
Replies: 31
Views: 38643

Re: Zone alarms vs monitor alarms via websocket JSON output

harry@harry-HP-Compaq-Pro-4300-SFF-PC:~$ sudo python3 soxx.py {"event":"auth","reason":"","version":"6.1.27","type":"","status":"Success"} {"reason":"","event":"control","type":"version","status":"Success","version":"6.1.27"} --{"event":"alarm","status":"Success","type":"","events":[{"DetectionJson ...