Authentication failed from zmNinja in browser

Discussion topics related to mobile applications and ZoneMinder Event Server (including machine learning)
Post Reply
wbaccari
Posts: 2
Joined: Fri Nov 11, 2016 8:46 pm

Authentication failed from zmNinja in browser

Post by wbaccari »

I'm trying to use zmNinja from a browser on the same machine where zm is installed.

I followed this guide https://github.com/pliablepixels/zmNinj ... rom-Source.

When I try to setup a new connection I always get a 'ZoneMinder authentication failed' error message.

I am not using zm authentication.

I tried using both 'http://localhost/zm' and 'http://192.168.2.13/zm' as zm portal URL. The connection from the zmNinja Android app worked using http://192.168.2.13/zm.

I tried setting up the ProxyURL in ionic.config.json to the same URLs above without success.

In the versbose infromation logged in the terminal when running 'ionic serve' with the '-c' option I found:

Reachability test..http://localhost/zm/index.php
Failed reachability on http://localhost/zm/index.php with error {"data":null,"status":0,"config":{"method":"GET","transformRequest":[null],"transformResponse":[null],"url":"http://localhost/zm/index.php","headers ... ation/json, text/plain, */*"}},"statusText":""}


Does anybody has any idea about how to make this work?
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Authentication failed from zmNinja in browser

Post by knight-of-ni »

Moved to the mobile apps forum
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: Authentication failed from zmNinja in browser

Post by asker »

Here is a simpler way.

Just copy the entire "www" directory of zmNinja into your apache www/zmNinja directory (create zmNinja) then load up a browser and get to http://server/zmNinja/index.html
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
Post Reply