zmNinja stuck at authenticating window

Discussion topics related to mobile applications and ZoneMinder Event Server (including machine learning)
Post Reply
jammersplash
Posts: 4
Joined: Mon Jul 04, 2016 7:18 pm

zmNinja stuck at authenticating window

Post by jammersplash »

Just installed zmNinja on fresh ZM (1.29) on ubuntu 16.04.

The wizard runs fine but when I try to check montage and other pages it get stuck at a grey page with text "authenticating..."

I have tried to redo the setup by removing app data but it still behaves the same.

What is the problem here?
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: znNinja stuck at authenticating window

Post by asker »

Hard to say without any logs/details

a) What does zmNinja logs say ? (after enabling debug logs in developer settings)
b) Have you validated the APIs work in ZM?
c) Which version of zmNinja - android/ios/desktop?

thx
I no longer work on zmNinja, zmeventnotification, pyzm or mlapi. I may respond on occasion based on my available time/interest.

Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
jammersplash
Posts: 4
Joined: Mon Jul 04, 2016 7:18 pm

Re: znNinja stuck at authenticating window

Post by jammersplash »

a) Not easy to get logs since the app freeze when I try to access my cameras. Authentication seems to work when I save the profile but then it freeze when I click montage or monitor or similar. I rerun the wizard (cleared zmninja data) and managed to goto settings and enable debug logs before it froze. Where is the log file stored? I found directory /sdcard/Android/data/com.pliablespixels.zmninja_pro but it is empty.

b) I followed all steps in the ubuntu tutorials I found and everything seems to work from web browser. How can I easily verify API is 100% ok?

c) zmninja is the latest for android (1.1.93). Running on Samsung Galaxy S6 (Android 6.0.1)
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: zmNinja stuck at authenticating window

Post by asker »

jammersplash wrote: b) I followed all steps in the ubuntu tutorials I found and everything seems to work from web browser. How can I easily verify API is 100% ok?

Hi there, please take a look at the "How to make sure your APIs are working" article here https://github.com/pliablepixels/zmNinja/wiki
I no longer work on zmNinja, zmeventnotification, pyzm or mlapi. I may respond on occasion based on my available time/interest.

Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
jammersplash
Posts: 4
Joined: Mon Jul 04, 2016 7:18 pm

Re: zmNinja stuck at authenticating window

Post by jammersplash »

Thanks

I found out that i missed to set correct permissions on /usr/share/zoneminder/

Now I can access my zoneminder server from zmninja.

The only problem I have now is the livecams are not shown. I only see question marks instead of videos.

I had problems with the last API verification step, to check monitors ( http://server/zm/api/host/monitors.json )
But I found out that I could get a list from http://server/zm/api/monitors.json
This is the path mentioned at http://zoneminder.readthedocs.io/en/stable/api.html

Which one is correct?
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: zmNinja stuck at authenticating window

Post by asker »

It's http://server/zm/api/monitors.json - i fixed the wiki.

Did you check the wiki FAQ on red question mark?
https://github.com/pliablepixels/zmNinj ... zoneminder
I no longer work on zmNinja, zmeventnotification, pyzm or mlapi. I may respond on occasion based on my available time/interest.

Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
jammersplash
Posts: 4
Joined: Mon Jul 04, 2016 7:18 pm

Re: zmNinja stuck at authenticating window

Post by jammersplash »

Thanks

I missed to setup cgi-bin path correct in zm ninja settings. It should be http://server/zm/cgi-bin

Now it works ok.

Thanks for fast answers.
Post Reply