No connection with zmninja

Discussion topics related to mobile applications and ZoneMinder Event Server (including machine learning)
Post Reply
Detlef Paschke
Posts: 27
Joined: Tue Sep 12, 2023 6:14 pm

No connection with zmninja

Post by Detlef Paschke »

Hello,

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"}
curl -XPOST -d "user=USER&pass=PASS" http://192.168.0.80/zm/api/host/login.json

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"}
curl -XPOST -d "user=USER&pass=PASS" http://192.168.0.80/zm/api/monitors.json
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"}}}
curl -XGET http://192.168.0.80/zm/api/monitors.json?token=APITOKEN
With tokens, everything is issued as normal.

Code: Select all

{"monitors":[{"Monitor":{"Id":1,...
I configured Zoneminder according to these instructions:
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.
Screenshot_20230912-192539.jpg
Screenshot_20230912-192539.jpg (38.68 KiB) Viewed 4774 times
I'm at a loss and don't know what else I can do. Does somebody has any idea?

Best regards
Detlef Paschke
Detlef Paschke
Posts: 27
Joined: Tue Sep 12, 2023 6:14 pm

Re: No connection with zmninja

Post by Detlef Paschke »

Hello,

I tried a little further, but didn't get any further with the Android app.

I installed ZMNinja v1.6.009 for Windows and I can connect to the Zoneminder server and the cameras without any problems. Only the Adroid app is permanently at "loading..." after registration and without any progress.

I don't know what else to do, especially since there is no option for any settings in the Android app.

Best regards
Detlef Paschke
User avatar
iconnor
Posts: 2922
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: No connection with zmninja

Post by iconnor »

It may be that newer Android breaks it. Certainly lots of people complain that they can't even install it from the Play store.

We need to update it and release a new version .
Post Reply