Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing event only shown with Filters #445

Closed
requa3r0 opened this issue Feb 5, 2017 · 9 comments
Closed

missing event only shown with Filters #445

requa3r0 opened this issue Feb 5, 2017 · 9 comments

Comments

@requa3r0
Copy link

requa3r0 commented Feb 5, 2017

Platform & OS Version
Android 6.0.1 Marshmallow

The version of the app you are reporting:
1.2.35

Device details:
HTC 10 standard/Stock

Debian 8 with zoneminder 1.29 with a cloned API from github
*/zm/api are all green and the api is working fine!

What is the nature of your issue
I am Missing several events in the standard events view..generally i only get events from one camera? Always cam 3 "Garage" out of 3 in total.
It was not alleways like this, bit it has been doing this for a while now?

I can only view events from the other camera if i apply a filter, like from today or yesterday

Then all events shows?

Details
I have loads of events on each camera
camera events latest running id
Indkorsel 1036 4071
Terrasse 891 3827
Garage 475 4072

Thanks!

I have attached 2 images
One of the unfiltered events from 4067 that does not show all events

And one with a filter just based on date...from yesterday, where I can see all the events.

What is going on?

events-filter-on
events-with-no-filter

@requa3r0
Copy link
Author

requa3r0 commented Feb 5, 2017

push-over-events

Here is an overview of the events I have received in PushOver on my android.

Not that it is directly related, but I added pushover support to your great zmeventserver

This way I get pushover events when my alarm is turned on/off, because its in sync with my zoneminder and I have scripted it this way. That is super great!

The actual alarm events have a different sound and comes 3-5 sec delay. Super snappy!
The notification implementation in the app does basically not work.
I almost don't get get any notifications.

I can highly recommend to add pushover support in the zmeventserver in general.
Here is the small pearl code I added to achieve the pushover functionality.
It could be done in a more general way i sure ;O)

#equa3r0 Pushover
sub pushover{
LWP::UserAgent->new()->post(
'https://api.pushover.net/1/messages.json', [
'token' => 'xxxxxxxxxx',
'user' => 'xxxxxxxxxxx',
'priority' => '1',
'message' =>"$alarm_header",
]);
}

This is really the main module

.
.
add this around line 1130
.

		if (checkEvents())
		{
			#send notificatoin with pushover
			pushover();

.
.
.
\equa3r0

@pliablepixels
Copy link
Member

That's odd. Can you tap on the "..." and make sure "all event" are selected?

@requa3r0
Copy link
Author

requa3r0 commented Feb 6, 2017

I have tryed to refresh quite a numbers times.

I just changed to dynamic ip and am now using a ddns service.
So I updated the app with a domain name instead of the ip and disable the eventserver.
So a edit and save on settings!

Now the resent events are all showing again.

I have seen this behavior... It works.. Then it doesn't... Before... Right now the events shows in correct chronological order from 4093 - 4071 (last 24 h
screenshot_20170206-135952

AND

screenshot_20170206-140627

)...Then the next is 4047? The split is 1 or 2 days ago!

@requa3r0
Copy link
Author

requa3r0 commented Feb 6, 2017

I'm vondering if my zonminder database is broken somehow or the hole zm inmpementation is suffering from something. Everthing is looking just dandy on the zm homepage ?

@pliablepixels
Copy link
Member

I'm not sure. Here is one way to find out:

When this problem occurs, load up a browser on your desktop, log into ZM, then open a new tab and type in http://server/zm/api/events.json and see if it shows events zmNinja is not showing

Then please also post zmNinja debug logs

@requa3r0
Copy link
Author

requa3r0 commented Feb 28, 2017

Still continued to see same issue.
Deleted all events... Still the same.
Was running zm 1.29 cloned from git + manually installed api 1.29 from git...desided to update the api to 1.30.
Now running zm 1.29 h api 1.30. This seems to solve the problem.
I'm running a Debian 8 server, that is running a lot of different tasks, and I have always run Debian. It's the rock of Linux on which all (Debian based) distributions grow as mos 😂

I just really hope the latest version of zoneminder + api will soon be supported on Debian directly from repository 😢

@pliablepixels
Copy link
Member

pliablepixels commented Feb 28, 2017

Ah ok, glad you figured out its a server API issue.
As far as I know debian has 1.30 https://wiki.zoneminder.com/Debian_9_64-bit_with_Zoneminder_1.30.0_the_Easy_Way

apt show zoneminder -a

@requa3r0
Copy link
Author

hmm ok on Debian 9 ;O)
Im running debian 8 and have way to much stuff ruinning to dist upgrade right now..if it works... im happy..;O)

@pliablepixels
Copy link
Member

closing - as this looks like its a ZM API version issue, not zmNinja

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants