Page 1 of 1

zmNinja having hard time with Run states changing

Posted: Sat Jan 23, 2021 3:04 am
by tsp84
I have multiple monitors per camera for night/day and winter/summer. When the run state changes via sunwait cronjob zmNinja seems to have a hard time with that. I have to go into montage and set which monitors to view instead of leaving them all on. It seems zmninja doesnt show a monitor if its stream isnt active so I just have them all on viewable but zmninja isnt behaving as expected and seems to disable viewing monitors. I have to end up selecting which moniotors to view and then having to go into settings and hit save so zmninja reloads and then it seems to straighten out. Is there anything I am missing here thats obvious?

This also affects event list and event review.

Re: zmNinja having hard time with Run states changing

Posted: Sat Jan 23, 2021 11:12 am
by asker
zmNinja caches information from monitor list for 24 hours. Try this:

1. zmNinja->Developer Settings: Disable "use API caching"
2.zmNinja->clear API cache
3. kill zmNinja
4. Load zmNinja, go to montage, enable all monitors

Re: zmNinja having hard time with Run states changing

Posted: Sat Jan 23, 2021 3:57 pm
by tsp84
Thanks for the reply! I have applied those changes and will report back.

Re: zmNinja having hard time with Run states changing

Posted: Sun Jan 24, 2021 5:45 am
by tsp84
It still seems to have the same behavior, here is a YouTube link for a screen recording of the issue. https://youtu.be/jCNdOmIMObY

Re: zmNinja having hard time with Run states changing

Posted: Sun Jan 24, 2021 12:14 pm
by asker
Hmm, I'll have to look into this. May not be a quick fix - there is a lot of ugliness in how I handle hidden monitors (this was coded during the days I was learning how to program a mobile app in Angularjs, and I haven't changed it).

Re: zmNinja having hard time with Run states changing

Posted: Tue Jan 26, 2021 4:30 pm
by tsp84
It's a minor inconvenience which I can deal with. Appreciate the app and all the work to make zoneminder amazing.

Re: zmNinja having hard time with Run states changing

Posted: Thu Jan 28, 2021 1:01 am
by tsp84
On a related note, is there anyway for zmNinja to know when a run state has changed? I have to relogin to the server via 'Settings' before it realizes that a run state change has occured therefore updating the montage list accordingly. Im not a programmer at all but could it be added to the zmeventnotification logic on the server? When it checks for new events can it also check to see if run states have changed and update the app accordingly? idk if it would be a polling situation or could write something to listen for sent events?

Re: zmNinja having hard time with Run states changing

Posted: Thu Jan 28, 2021 8:11 pm
by tsp84
Here is a screenshot of what I mean. You can see that the mode is set wrong. The streams that have output are set as none and the old streams are set as modect.
Screenshot_20210128-130915_zmNinja.jpg
Screenshot_20210128-130915_zmNinja.jpg (404.47 KiB) Viewed 3743 times