ZoneMinder / zmeventnotification

Machine Learning powered Secure Websocket & MQTT based ZoneMinder event notification server
415 stars 129 forks source link

Push Issue #5

Closed g4dge closed 8 years ago

g4dge commented 8 years ago

Hi There,

I've got an issue, and I'm unable to work out what to do or where to goto next. As far as I can tell everything looks to be working, but I am unable to get any notifications to my Android phone.

It's not clear if I need to add my device ID to your script, or if the submission from the application should set this up. I've specified for the token to go into /tmp/zm since the permissions are already good for the www user to write to.

Could you please take a look at the following and see if you can work it out. Any help would be appreciated.

Jan 9 20:09:34 behemoth zmdc[3447]: INF ['zmeventnotification.pl' sending stop to pid 3503 at 16/01/09 20:09:34] Jan 9 20:09:35 behemoth zmdc[3447]: INF ['zmeventnotification.pl' exited, signal 14] Jan 9 20:09:48 behemoth zmdc[3447]: INF ['zmeventnotification.pl' starting at 16/01/09 20:09:48, pid = 21102] Jan 9 20:09:48 behemoth zmdc[21102]: INF ['zmeventnotification.pl' started at 16/01/09 20:09:48] Jan 9 20:09:48 behemoth zmeventnotification[21102]: INF [Push enabled via PushProxy] Jan 9 20:09:48 behemoth zmeventnotification[21102]: INF [direct APNS disabled] Jan 9 20:09:49 behemoth zmeventnotification[21102]: INF [Event Notification daemon v 0.5 starting] Jan 9 20:09:49 behemoth zmeventnotification[21102]: INF [Creating /tmp/zm/tokens.txt] Jan 9 20:09:49 behemoth zmeventnotification[21102]: INF [Total event client connections: 0] Jan 9 20:09:49 behemoth zmeventnotification[21102]: INF [Reloading Monitors...] Jan 9 20:09:49 behemoth zmeventnotification[21102]: INF [Loading monitors] Jan 9 20:09:49 behemoth zmeventnotification[21102]: INF [Checking https://pliablepixels.ddns.net:8801 reachability...] Jan 9 20:09:51 behemoth zmeventnotification[21102]: INF [PushProxy https://pliablepixels.ddns.net:8801 is reachable.] Jan 9 20:09:51 behemoth zmeventnotification[21102]: INF [Web Socket Event Server listening on port 9000] Jan 9 20:09:53 behemoth zmeventnotification[21102]: INF [got a websocket connection from ::ffff:10.1.1.19 (0) active connections] Jan 9 20:09:53 behemoth zmeventnotification[21102]: INF [Websocket remotely disconnected from ::ffff:10.1.1.19] Jan 9 20:09:57 behemoth zmeventnotification[21102]: INF [got a websocket connection from ::ffff:10.1.1.19 (0) active connections] Jan 9 20:09:57 behemoth zmeventnotification[21102]: INF [Websocket remotely disconnected from ::ffff:10.1.1.19] Jan 9 20:10:02 behemoth zmeventnotification[21102]: INF [got a websocket connection from ::ffff:10.1.1.19 (0) active connections] Jan 9 20:10:02 behemoth zmeventnotification[21102]: INF [Websocket remotely disconnected from ::ffff:10.1.1.19] Jan 9 20:10:36 behemoth zmeventnotification[21102]: INF [New event 340 reported for HD-Feed] Jan 9 20:10:37 behemoth zmeventnotification[21102]: INF [Broadcasting new events to all 0 websocket clients] Jan 9 20:10:40 behemoth zmeventnotification[21102]: INF [got a websocket connection from ::ffff:10.8.0.6 (0) active connections] Jan 9 20:10:40 behemoth zmeventnotification[21102]: INF [Websocket remotely disconnected from ::ffff:10.8.0.6] Jan 9 20:10:47 behemoth zmeventnotification[21102]: INF [got a websocket connection from ::ffff:10.8.0.6 (0) active connections]

Many Thanks

Rob

g4dge commented 8 years ago

Some information from the app...

Jan 9, 2016 11:47:27 PM INFO Websocket closed Jan 9, 2016 11:47:22 PM INFO Websocket closed Jan 9, 2016 11:47:17 PM INFO Websocket closed Jan 9, 2016 11:47:12 PM INFO Websocket closed Jan 9, 2016 11:47:07 PM INFO Websocket closed Jan 9, 2016 11:47:02 PM INFO Websocket closed Jan 9, 2016 11:46:57 PM INFO Stream authentication construction: Jan 9, 2016 11:46:57 PM INFO Data Model: Did not find any stream mode of auth Jan 9, 2016 11:46:57 PM INFO DataModel: Did not find a stream auth key, looking for user= Jan 9, 2016 11:46:57 PM INFO Websocket closed Jan 9, 2016 11:46:57 PM INFO Stored montage order does not exist Jan 9, 2016 11:46:57 PM INFO Inside Montage Ctrl:We found 4 monitors Jan 9, 2016 11:46:57 PM INFO Stored montage order does not exist Jan 9, 2016 11:46:57 PM INFO Monitor load was successful, loaded 4 monitors Jan 9, 2016 11:46:57 PM INFO ZM_EVENT_IMAGE_DIGITS is 5 Jan 9, 2016 11:46:57 PM INFO Got API version: 1.29.0 Jan 9, 2016 11:46:56 PM INFO ZM has recaptcha disabled - good Jan 9, 2016 11:46:56 PM INFO Stream authentication construction: Jan 9, 2016 11:46:56 PM INFO getMonitors:Loading all monitors Jan 9, 2016 11:46:56 PM INFO Websocket was closed, trying to re-open Jan 9, 2016 11:46:56 PM INFO Deferring auth key, as monitorId unknown Jan 9, 2016 11:46:56 PM INFO zmAutologin successfully logged into Zoneminder Jan 9, 2016 11:46:56 PM INFO Checking if reCaptcha is enabled in ZM... Jan 9, 2016 11:46:56 PM INFO zmAutologin called Jan 9, 2016 11:46:56 PM INFO Cancelling zmAutologin timer Jan 9, 2016 11:46:56 PM INFO not checking for touchID Jan 9, 2016 11:46:56 PM INFO User credentials are provided Jan 9, 2016 11:46:55 PM INFO zmNinja Version: 1.0.2 Jan 9, 2016 11:46:55 PM INFO Deleting old log file as it exceeds 10000 bytes 2016-01-09T23:46:55.446Z INFO Initializing Websocket with URL wss:// , will connect later... 2016-01-09T23:46:55.428Z INFO Setting up push registration 2016-01-09T23:46:55.424Z INFO DataModel init recovered this loginData as {"serverName":"Behemoth","username":"","password":"","url":"http://","apiurl":"http:///api","eventServer":"wss://","maxMontage":"10","streamingurl":"http:///cgi-bin","maxFPS":"3","montageQuality":"50","singleImageQuality":"50","useSSL":false,"keepAwake":true,"isUseAuth":"1","isUseEventServer":"1","disablePush":"1","eventServerMonitors":"3","eventServerInterval":"60","refreshSec":"2","enableDebug":false,"usePin":false,"pinCode":"","canSwipeMonitors":true,"persistMontageOrder":false,"onTapScreen":"events","enableh264":true,"gapless":true,"montageOrder":"","montageHiddenOrder":"","montageArraySize":"1:1:1","graphSize":200,"minAlarmCount":"1","montageSize":"1","useNphZms":true} 2016-01-09T23:46:55.393Z INFO ZMData init: checking for stored variables & setting up log file 2016-01-09T23:46:55.371Z INFO Device is ready

pliablepixels commented 8 years ago

Hi, so it looks like your event server is working fine, but the app cannot connect to the event server. Since this seems to be a zmNinja issue, I am going to close this one and create a new issue in zmNinja so we can resolve this.