zmNinja having hard time with Run states changing

Discussion topics related to mobile applications for ZoneMinder
Post Reply
tsp84
Posts: 68
Joined: Thu Dec 24, 2020 4:04 am

zmNinja having hard time with Run states changing

Post by tsp84 » Sat Jan 23, 2021 3:04 am

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.

User avatar
asker
Posts: 1477
Joined: Sun Mar 01, 2015 12:12 pm

Re: zmNinja having hard time with Run states changing

Post by asker » Sat Jan 23, 2021 11:12 am

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
Please don't ask me questions via PM. Feel free to post in the forums or Github

My collection of ZoneMinder learnings:
https://wiki.zoneminder.com/Various_ZM_thoughts

tsp84
Posts: 68
Joined: Thu Dec 24, 2020 4:04 am

Re: zmNinja having hard time with Run states changing

Post by tsp84 » Sat Jan 23, 2021 3:57 pm

Thanks for the reply! I have applied those changes and will report back.

tsp84
Posts: 68
Joined: Thu Dec 24, 2020 4:04 am

Re: zmNinja having hard time with Run states changing

Post by tsp84 » Sun Jan 24, 2021 5:45 am

It still seems to have the same behavior, here is a YouTube link for a screen recording of the issue. https://youtu.be/jCNdOmIMObY

User avatar
asker
Posts: 1477
Joined: Sun Mar 01, 2015 12:12 pm

Re: zmNinja having hard time with Run states changing

Post by asker » Sun Jan 24, 2021 12:14 pm

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).
Please don't ask me questions via PM. Feel free to post in the forums or Github

My collection of ZoneMinder learnings:
https://wiki.zoneminder.com/Various_ZM_thoughts

tsp84
Posts: 68
Joined: Thu Dec 24, 2020 4:04 am

Re: zmNinja having hard time with Run states changing

Post by tsp84 » Tue Jan 26, 2021 4:30 pm

It's a minor inconvenience which I can deal with. Appreciate the app and all the work to make zoneminder amazing.

tsp84
Posts: 68
Joined: Thu Dec 24, 2020 4:04 am

Re: zmNinja having hard time with Run states changing

Post by tsp84 » Thu Jan 28, 2021 1:01 am

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?

tsp84
Posts: 68
Joined: Thu Dec 24, 2020 4:04 am

Re: zmNinja having hard time with Run states changing

Post by tsp84 » Thu Jan 28, 2021 8:11 pm

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 1755 times

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests