I'm probably just being stupid, but I just can't get zmninja to work.
Zoneminder works excellently via the web interface.
The API seems to be working.
curl -XPOST -d "user=USER&pass=PASS" http://192.168.0.80/zm/api/host/getVersion.json
Code: Select all
{"version":"1.36.33","apiversion":"2.0"}
Code: Select all
{"access_token":"XXX","access_token_expires":7200,"refresh_token":"YYY","refresh_token_expires":86400,"credentials":"auth=","append_password":0,"version":"1.36 .33","apiversion":"2.0"}
With User/Password Login there is a 401 error message and I assume that is where the problem lies.
Code: Select all
{"success":false,"data":{"name":"Insufficient privileges","message":"Insufficient privileges","url":"\/zm\/api\/monitors.json","exception ":{"class":"UnauthorizedException","code":401,"message":"Insufficient privileges"}}}
With tokens, everything is issued as normal.
Code: Select all
{"monitors":[{"Monitor":{"Id":1,...
https://zmninja.readthedocs.io/en/lates ... ion-issues
After logging in, zmninja stays at the "loading..." screen and nothing else happens.
I can't do any configuration on zmninja because there is no configuration point (yet) and in Zoneminder everything is configured as listed in the FAQ.
I'm at a loss and don't know what else I can do. Does somebody has any idea?
Best regards
Detlef Paschke