Closed connectnet closed 3 years ago
[Getting ZM zones using http://127.0.0.1/zm/api/zones/forMonitor/2.json?username=xxx&password=yyy&user=xxx&pass=yyy
Why is that API returning an error? Try it from your browser (replace 127.0.0.1 with your ZM ip and xxx and yyy with your username and password).
I'd also please request you to do some of your own debugging instead of creating an issue the moment an error occurs.
There must be a problem between match_past_detections=yes and import_zm_zones=yes together in objectconfig.ini file. Its not possible for me to get it work together. If I remove import_zm_zones=yes I have to delete monitor-x-data.pkl file in /var/lib/zmeventnotification/images before the detection works again.
Maybe, but you haven't answered my question above. Why are you getting a 404 for the zones API? I use both match_detections and import_zm_zones
04/11/21 15:08:02 zmesdetect_m2[27265] DBG2 utils.py:177 [Getting ZM zones using http://127.0.0.1/zm/api/zones/forMonitor/2.json?username=xxx&password=yyy&user=xxx&pass=yyy]
04/11/21 15:08:02 zmesdetect_m2[27265] ERR utils.py:202 [HTTP Error in import_zm_zones:HTTP Error 404: Not Found]
Debug that first. Try it in the browser, replace IP, replace password/username
Yes you are right. After reading the docs and thinking and reading I found the issue. It was my fault because I have 3 cams and deleted the second one in zonminder and add one new. So I was confused with Monitor-2 and the "real" Monitor-ID 3. Now I reinstalled the mysql zm database and started from begin.
Event Server version app:6.1.21, pyzm:0.3.46
Hooks version (if you are using Object Detection) app:6.1.21, pyzm:0.3.46
Are you using MLAPI? (Y/N) n
The version of ZoneMinder you are using: v1.34.23
(Bug)
If import_zm_zones = yes the follow error occurs. Same if only_triggered_zm_zones=yes