NEWS
Test Adapter zoneminder v0.3.x
-
@Meistertr Habe ich dir per Chat zukommen lassen.
-
so in der 0.3.2 sollten nun alle loginprobleme gelößt sein..
-
so also die login probleme sehe ich nun mit der 0.3.2 als erledigt an und wende mich nun wieder dem ausweiten der Funktionen zu.
-
@Meistertr
Vielen Dank funktioniert. Top!ZMEvent kommen leider auch keine Daten.
Einzig, nach einer bestimmten Zeit verliert er die Verbindung und nach neustart des Adapters geht es wieder....host.nuc-ubuntu 2019-11-04 05:44:23.025 error Caught by controller[6]: at process._tickCallback (internal/process/next_tick.js:63:19) host.nuc-ubuntu 2019-11-04 05:44:23.025 error Caught by controller[6]: at endReadableNT (_stream_readable.js:1145:12) host.nuc-ubuntu 2019-11-04 05:44:23.025 error Caught by controller[6]: at IncomingMessage.emit (events.js:203:15) host.nuc-ubuntu 2019-11-04 05:44:23.025 error Caught by controller[6]: at Object.onceWrapper (events.js:286:20) host.nuc-ubuntu 2019-11-04 05:44:23.025 error Caught by controller[6]: at IncomingMessage.<anonymous> (/opt/iobroker/node_modules/request/request.js:1083:12) host.nuc-ubuntu 2019-11-04 05:44:23.025 error Caught by controller[6]: at Request.emit (events.js:198:13) host.nuc-ubuntu 2019-11-04 05:44:23.025 error Caught by controller[6]: at Request.<anonymous> (/opt/iobroker/node_modules/request/request.js:1161:10) host.nuc-ubuntu 2019-11-04 05:44:23.025 error Caught by controller[6]: at Request.emit (events.js:198:13) host.nuc-ubuntu 2019-11-04 05:44:23.025 error Caught by controller[6]: at Request.self.callback (/opt/iobroker/node_modules/request/request.js:185:22) host.nuc-ubuntu 2019-11-04 05:44:23.025 error Caught by controller[6]: at Request.RP$callback [as _callback] (/opt/iobroker/node_modules/request-promise-core/lib/plumbing.js:46:31) host.nuc-ubuntu 2019-11-04 05:44:23.025 error Caught by controller[6]: at Request.plumbing.callback (/opt/iobroker/node_modules/request-promise-core/lib/plumbing.js:104:33) host.nuc-ubuntu 2019-11-04 05:44:23.025 error Caught by controller[6]: at new StatusCodeError (/opt/iobroker/node_modules/request-promise-core/lib/errors.js:32:15) host.nuc-ubuntu 2019-11-04 05:44:23.025 error Caught by controller[6]: Unhandled rejection StatusCodeError: 401 - "{\"success\":false,\"data\":{\"name\":\"Expired token\",\"message\":\"Expired token\",\"url\":\"\\/zm\\/api\\/monitors.json?token= host.nuc-ubuntu 2019-11-04 05:44:23.025 error Caught by controller[5]: at process._tickCallback (internal/process/next_tick.js:63:19) host.nuc-ubuntu 2019-11-04 05:44:23.025 error Caught by controller[5]: at endReadableNT (_stream_readable.js:1145:12) host.nuc-ubuntu 2019-11-04 05:44:23.025 error Caught by controller[5]: at IncomingMessage.emit (events.js:203:15) host.nuc-ubuntu 2019-11-04 05:44:23.025 error Caught by controller[5]: at Object.onceWrapper (events.js:286:20) host.nuc-ubuntu 2019-11-04 05:44:23.025 error Caught by controller[5]: at IncomingMessage.<anonymous> (/opt/iobroker/node_modules/request/request.js:1083:12) host.nuc-ubuntu 2019-11-04 05:44:23.024 error Caught by controller[5]: at Request.emit (events.js:198:13) host.nuc-ubuntu 2019-11-04 05:44:23.024 error Caught by controller[5]: at Request.<anonymous> (/opt/iobroker/node_modules/request/request.js:1161:10) host.nuc-ubuntu 2019-11-04 05:44:23.024 error Caught by controller[5]: at Request.emit (events.js:198:13) host.nuc-ubuntu 2019-11-04 05:44:23.024 error Caught by controller[5]: at Request.self.callback (/opt/iobroker/node_modules/request/request.js:185:22) host.nuc-ubuntu 2019-11-04 05:44:23.024 error Caught by controller[5]: at Request.RP$callback [as _callback] (/opt/iobroker/node_modules/request-promise-core/lib/plumbing.js:46:31) host.nuc-ubuntu 2019-11-04 05:44:23.024 error Caught by controller[5]: at Request.plumbing.callback (/opt/iobroker/node_modules/request-promise-core/lib/plumbing.js:104:33) host.nuc-ubuntu 2019-11-04 05:44:23.024 error Caught by controller[5]: at new StatusCodeError (/opt/iobroker/node_modules/request-promise-core/lib/errors.js:32:15) host.nuc-ubuntu 2019-11-04 05:44:23.024 error Caught by controller[5]: Unhandled rejection StatusCodeError: 401 - "{\"success\":false,\"data\":{\"name\":\"Expired token\",\"message\":\"Expired token\",\"url\":\"\\/zm\\/api\\/monitors.json?token= host.nuc-ubuntu 2019-11-04 05:44:23.024 error Caught by controller[4]: at process._tickCallback (internal/process/next_tick.js:63:19) host.nuc-ubuntu 2019-11-04 05:44:23.024 error Caught by controller[4]: at endReadableNT (_stream_readable.js:1145:12) host.nuc-ubuntu 2019-11-04 05:44:23.024 error Caught by controller[4]: at IncomingMessage.emit (events.js:203:15) host.nuc-ubuntu 2019-11-04 05:44:23.024 error Caught by controller[4]: at Object.onceWrapper (events.js:286:20) host.nuc-ubuntu 2019-11-04 05:44:23.024 error Caught by controller[4]: at IncomingMessage.<anonymous> (/opt/iobroker/node_modules/request/request.js:1083:12) host.nuc-ubuntu 2019-11-04 05:44:23.024 error Caught by controller[4]: at Request.emit (events.js:198:13) host.nuc-ubuntu 2019-11-04 05:44:23.024 error Caught by controller[4]: at Request.<anonymous> (/opt/iobroker/node_modules/request/request.js:1161:10) host.nuc-ubuntu 2019-11-04 05:44:23.024 error Caught by controller[4]: at Request.emit (events.js:198:13) host.nuc-ubuntu 2019-11-04 05:44:23.024 error Caught by controller[4]: at Request.self.callback (/opt/iobroker/node_modules/request/request.js:185:22) host.nuc-ubuntu 2019-11-04 05:44:23.024 error Caught by controller[4]: at Request.RP$callback [as _callback] (/opt/iobroker/node_modules/request-promise-core/lib/plumbing.js:46:31) host.nuc-ubuntu 2019-11-04 05:44:23.024 error Caught by controller[4]: at Request.plumbing.callback (/opt/iobroker/node_modules/request-promise-core/lib/plumbing.js:104:33) host.nuc-ubuntu 2019-11-04 05:44:23.024 error Caught by controller[4]: at new StatusCodeError (/opt/iobroker/node_modules/request-promise-core/lib/errors.js:32:15) host.nuc-ubuntu 2019-11-04 05:44:23.024 error Caught by controller[4]: Unhandled rejection StatusCodeError: 401 - "{\"success\":false,\"data\":{\"name\":\"Expired token\",\"message\":\"Expired token\",\"url\":\"\\/zm\\/api\\/monitors.json?token= host.nuc-ubuntu 2019-11-04 05:44:23.024 error Caught by controller[3]: at process._tickCallback (internal/process/next_tick.js:63:19) host.nuc-ubuntu 2019-11-04 05:44:23.024 error Caught by controller[3]: at endReadableNT (_stream_readable.js:1145:12) host.nuc-ubuntu 2019-11-04 05:44:23.024 error Caught by controller[3]: at IncomingMessage.emit (events.js:203:15) host.nuc-ubuntu 2019-11-04 05:44:23.024 error Caught by controller[3]: at Object.onceWrapper (events.js:286:20) host.nuc-ubuntu 2019-11-04 05:44:23.024 error Caught by controller[3]: at IncomingMessage.<anonymous> (/opt/iobroker/node_modules/request/request.js:1083:12) host.nuc-ubuntu 2019-11-04 05:44:23.024 error Caught by controller[3]: at Request.emit (events.js:198:13) host.nuc-ubuntu 2019-11-04 05:44:23.024 error Caught by controller[3]: at Request.<anonymous> (/opt/iobroker/node_modules/request/request.js:1161:10) host.nuc-ubuntu 2019-11-04 05:44:23.024 error Caught by controller[3]: at Request.emit (events.js:198:13) host.nuc-ubuntu 2019-11-04 05:44:23.024 error Caught by controller[3]: at Request.self.callback (/opt/iobroker/node_modules/request/request.js:185:22) host.nuc-ubuntu 2019-11-04 05:44:23.024 error Caught by controller[3]: at Request.RP$callback [as _callback] (/opt/iobroker/node_modules/request-promise-core/lib/plumbing.js:46:31) host.nuc-ubuntu 2019-11-04 05:44:23.024 error Caught by controller[3]: at Request.plumbing.callback (/opt/iobroker/node_modules/request-promise-core/lib/plumbing.js:104:33) host.nuc-ubuntu 2019-11-04 05:44:23.024 error Caught by controller[3]: at new StatusCodeError (/opt/iobroker/node_modules/request-promise-core/lib/errors.js:32:15) host.nuc-ubuntu 2019-11-04 05:44:23.024 error Caught by controller[3]: Unhandled rejection StatusCodeError: 401 - "{\"success\":false,\"data\":{\"name\":\"Expired token\",\"message\":\"Expired token\",\"url\":\"\\/zm\\/api\\/monitors.json?token= host.nuc-ubuntu 2019-11-04 05:44:23.023 error Caught by controller[2]: at process._tickCallback (internal/process/next_tick.js:63:19) host.nuc-ubuntu 2019-11-04 05:44:23.023 error Caught by controller[2]: at endReadableNT (_stream_readable.js:1145:12) host.nuc-ubuntu 2019-11-04 05:44:23.023 error Caught by controller[2]: at IncomingMessage.emit (events.js:203:15) host.nuc-ubuntu 2019-11-04 05:44:23.023 error Caught by controller[2]: at Object.onceWrapper (events.js:286:20) host.nuc-ubuntu 2019-11-04 05:44:23.023 error Caught by controller[2]: at IncomingMessage.<anonymous> (/opt/iobroker/node_modules/request/request.js:1083:12) host.nuc-ubuntu 2019-11-04 05:44:23.023 error Caught by controller[2]: at Request.emit (events.js:198:13) host.nuc-ubuntu 2019-11-04 05:44:23.023 error Caught by controller[2]: at Request.<anonymous> (/opt/iobroker/node_modules/request/request.js:1161:10) host.nuc-ubuntu 2019-11-04 05:44:23.023 error Caught by controller[2]: at Request.emit (events.js:198:13) host.nuc-ubuntu 2019-11-04 05:44:23.023 error Caught by controller[2]: at Request.self.callback (/opt/iobroker/node_modules/request/request.js:185:22) host.nuc-ubuntu 2019-11-04 05:44:23.023 error Caught by controller[2]: at Request.RP$callback [as _callback] (/opt/iobroker/node_modules/request-promise-core/lib/plumbing.js:46:31) host.nuc-ubuntu 2019-11-04 05:44:23.023 error Caught by controller[2]: at Request.plumbing.callback (/opt/iobroker/node_modules/request-promise-core/lib/plumbing.js:104:33) host.nuc-ubuntu 2019-11-04 05:44:23.023 error Caught by controller[2]: at new StatusCodeError (/opt/iobroker/node_modules/request-promise-core/lib/errors.js:32:15) host.nuc-ubuntu 2019-11-04 05:44:23.023 error Caught by controller[2]: Unhandled rejection StatusCodeError: 401 - "{\"success\":false,\"data\":{\"name\":\"Expired token\",\"message\":\"Expired token\",\"url\":\"\\/zm\\/api\\/monitors.json?token= host.nuc-ubuntu 2019-11-04 05:44:23.023 error Caught by controller[1]: at process._tickCallback (internal/process/next_tick.js:63:19) host.nuc-ubuntu 2019-11-04 05:44:23.023 error Caught by controller[1]: at endReadableNT (_stream_readable.js:1145:12) host.nuc-ubuntu 2019-11-04 05:44:23.023 error Caught by controller[1]: at IncomingMessage.emit (events.js:203:15) host.nuc-ubuntu 2019-11-04 05:44:23.023 error Caught by controller[1]: at Object.onceWrapper (events.js:286:20) host.nuc-ubuntu 2019-11-04 05:44:23.023 error Caught by controller[1]: at IncomingMessage.<anonymous> (/opt/iobroker/node_modules/request/request.js:1083:12) host.nuc-ubuntu 2019-11-04 05:44:23.023 error Caught by controller[1]: at Request.emit (events.js:198:13) host.nuc-ubuntu 2019-11-04 05:44:23.023 error Caught by controller[1]: at Request.<anonymous> (/opt/iobroker/node_modules/request/request.js:1161:10) host.nuc-ubuntu 2019-11-04 05:44:23.023 error Caught by controller[1]: at Request.emit (events.js:198:13) host.nuc-ubuntu 2019-11-04 05:44:23.023 error Caught by controller[1]: at Request.self.callback (/opt/iobroker/node_modules/request/request.js:185:22) host.nuc-ubuntu 2019-11-04 05:44:23.023 error Caught by controller[1]: at Request.RP$callback [as _callback] (/opt/iobroker/node_modules/request-promise-core/lib/plumbing.js:46:31) host.nuc-ubuntu 2019-11-04 05:44:23.023 error Caught by controller[1]: at Request.plumbing.callback (/opt/iobroker/node_modules/request-promise-core/lib/plumbing.js:104:33) host.nuc-ubuntu 2019-11-04 05:44:23.023 error Caught by controller[1]: at new StatusCodeError (/opt/iobroker/node_modules/request-promise-core/lib/errors.js:32:15) host.nuc-ubuntu 2019-11-04 05:44:23.022 error Caught by controller[1]: Unhandled rejection StatusCodeError: 401 - "{\"success\":false,\"data\":{\"name\":\"Expired token\",\"message\":\"Expired token\",\"url\":\"\\/zm\\/api\\/monitors.json?token=
-
@mikilinefinde mal anhand des logs heraus, nach welcher zeit er die Verbindung verliert, sollze eigentlich nicht sein, da er alle 10 minuten den token wechseln sollte... und schau mal im debug log nach dem start ob dort messages mit WEBSOCKET sind.
-
@Meistertr
Ja, es gibt auch Websocketmeldungenzoneminder.0 2019-11-04 14:36:43.793 error (2506) WEBSOCKET: Error: Error: connect ETIMEDOUT
Hier mal Start bis zum Ende
2019-11-04 05:44:25.510 - info: host.nuc-ubuntu instance system.adapter.zoneminder.0 started with pid 2506 2019-11-04 05:52:57.233 - error: zoneminder.0 (2506) WEBSOCKET: Error: Error: connect ETIMEDOUT 2019-11-04 06:44:27.416 - warn: zoneminder.0 (2506) No monitors found, please configure monitors in your zoneminder!
und zwischendurch sind noch paar Websocket Error Meldungen
-
@mikiline hast du einen anderen Port als 9000?
-
@Meistertr
eigentlich nicht. Hab da alles beim Standard gelassen
zmeventnotification.ini hat 9000 drinnen -
So habe den Login noch einmal komplett überarbeitet meine ersten tests liefen soweit gut mit der api 2 hatte ich den ganzen tag Verbindung. zum event Problem kann ich noch nichts sagen. Er meldet einen Timeout, das bedeutet er kann die Gegenseite nicht erreichen. Kannst du nochmal nach websocket suchen und schauen ob der Host richtig ist (im debug log)
-
@Meistertr
also login geht. aber nach einer bestimmten zeit kommt wieder der fehler. ich denke es liegt auch daran das der token automatisch erneuert wird.die ws fehlermeldung habe ich auch noch
-
Hallo,
ich bekomme den Adapter leider nicht ans laufen.
Caught 2019-11-07 18:18:41.284 error by controller[1]: at process._tickCallback (internal/process/next_tick.js:63:19) Caught 2019-11-07 18:18:41.284 error by controller[1]: at endReadableNT (_stream_readable.js:1145:12) Caught 2019-11-07 18:18:41.284 error by controller[1]: at IncomingMessage.emit (events.js:203:15) Caught 2019-11-07 18:18:41.284 error by controller[1]: at Object.onceWrapper (events.js:286:20) Caught 2019-11-07 18:18:41.284 error by controller[1]: at IncomingMessage.<anonymous> (/opt/iobroker/node_modules/iobroker.zoneminder/node_modules/request/request.js:1083:12) Caught 2019-11-07 18:18:41.284 error by controller[1]: at Request.emit (events.js:198:13) Caught 2019-11-07 18:18:41.284 error by controller[1]: at Request.<anonymous> (/opt/iobroker/node_modules/iobroker.zoneminder/node_modules/request/request.js:1161:10) Caught 2019-11-07 18:18:41.284 error by controller[1]: at Request.emit (events.js:198:13) Caught 2019-11-07 18:18:41.284 error by controller[1]: at Request.self.callback (/opt/iobroker/node_modules/iobroker.zoneminder/node_modules/request/request.js:185:22) Caught 2019-11-07 18:18:41.284 error by controller[1]: at Request.RP$callback [as _callback] (/opt/iobroker/node_modules/iobroker.zoneminder/node_modules/request-promise-core/lib/plumbing.js:46:31) Caught 2019-11-07 18:18:41.283 error by controller[1]: at Request.plumbing.callback (/opt/iobroker/node_modules/iobroker.zoneminder/node_modules/request-promise-core/lib/plumbing.js:104:33) Caught 2019-11-07 18:18:41.283 error by controller[1]: at new StatusCodeError (/opt/iobroker/node_modules/iobroker.zoneminder/node_modules/request-promise-core/lib/errors.js:32:15) Caught 2019-11-07 18:18:41.283 error by controller[1]: Unhandled rejection StatusCodeError: 401 - "\n{\"success\":false,\"data\":{\"name\":\"User not found\",\"message\":\"User not found\",\"url\":\"\\/zm\\/api\\/host\\/login.json\",\"e Caught 2019-11-07 18:18:41.283 error by controller[0]: at process._tickCallback (internal/process/next_tick.js:63:19) Caught 2019-11-07 18:18:41.283 error by controller[0]: at endReadableNT (_stream_readable.js:1145:12) Caught 2019-11-07 18:18:41.283 error by controller[0]: at IncomingMessage.emit (events.js:203:15) Caught 2019-11-07 18:18:41.283 error by controller[0]: at Object.onceWrapper (events.js:286:20) Caught 2019-11-07 18:18:41.283 error by controller[0]: at IncomingMessage.<anonymous> (/opt/iobroker/node_modules/iobroker.zoneminder/node_modules/request/request.js:1083:12) Caught 2019-11-07 18:18:41.283 error by controller[0]: at Request.emit (events.js:198:13) Caught 2019-11-07 18:18:41.283 error by controller[0]: at Request.<anonymous> (/opt/iobroker/node_modules/iobroker.zoneminder/node_modules/request/request.js:1161:10) Caught 2019-11-07 18:18:41.283 error by controller[0]: at Request.emit (events.js:198:13) Caught 2019-11-07 18:18:41.283 error by controller[0]: at Request.self.callback (/opt/iobroker/node_modules/iobroker.zoneminder/node_modules/request/request.js:185:22) Caught 2019-11-07 18:18:41.283 error by controller[0]: at Request.RP$callback [as _callback] (/opt/iobroker/node_modules/iobroker.zoneminder/node_modules/request-promise-core/lib/plumbing.js:46:31) Caught 2019-11-07 18:18:41.282 error by controller[0]: at Request.plumbing.callback (/opt/iobroker/node_modules/iobroker.zoneminder/node_modules/request-promise-core/lib/plumbing.js:104:33) Caught 2019-11-07 18:18:41.282 error by controller[0]: at new StatusCodeError (/opt/iobroker/node_modules/iobroker.zoneminder/node_modules/request-promise-core/lib/errors.js:32:15) Caught 2019-11-07 18:18:41.282 error by controller[0]: Unhandled rejection StatusCodeError: 401 - "\n{\"success\":false,\"data\":{\"name\":\"User not found\",\"message\":\"User not found\",\"url\":\"\\/zm\\/api\\/host\\/login.json\",\"e zoneminder.0 2019-11-07 18:18:41.170 info cleaned everything up...
zoneminder.0 2019-11-07 18:19:40.810 error Cant connect!!
Benutername: admin
Passwort: adminAUTH_HASH_IPS den Haken habe ich auch raus.
Leider bleibt der Adapter "gelb" und verbindet sich nicht.
Zoneminderversion : v1.30.4
Was kann ich noch probieren?
-
@Meistertr
Alter...
Habe mir grade mal die Doku zur Installationsanweisung von Event Server angeschaut
Gibt es da auch etwas in Deutsch??? -
@Berchemer es sieht schwerer aus als es ist, wenn ich das grobe fertig habe wollte ich es mal dokumentieren..
-
@mikiline do von git sollte nun gehen, hatte noch einen Fehler drin.Bitte nochmal testen
-
@ErazorVIP ich bräuchte einen etwas längeren Logauszug. (debug)
-
@Meistertr
Läuft Danke -
Wie ist das eigenltich mit dem Zertifikat bei dem Event Server, soweit ich das verstanden habe wohl Pflicht, dieses zu installieren?
Das immo der Grund, der mich davon abhält, weiter zu machen. Ich hab derzeit alles ohne irgendwelcher Zertifikate (die dann wieder irgendwann ablaufen und wieder erneuert werden wollen) und möchte das auch so belassen. Ich route nichts ins Inet und mein Zeug ist alles nur lokal erreichbar.Ist der Eventserver auch ohne Zertifiakt nutzbar?
-
@Meistertr
eine frage noch.die video url mit dem token, da läuft es nicht flüssig in vis. immer wieder unterbrüche bis hin zu keinem bild.
verwende ich die normale url zum mit username und passwort dann läuft es stabil und flüssigweisst du evtl woran das liegen könnte?
edit:
wenn man das objekt "zoneminder.1.cam_5.monitor.camUrl" als url verwendet unterbricht das video jedesmal bei aktualisierung des datenpunktes. wenn ich den geräreintervall in der adapterkonfig höher setze, wird auch das video länger flüssig angezeigt
kann man da evtl. die aktualisierung des datenpunktes nur durchführen wenn sich der token ändert?oder einfach den geräteintervall hochsetzen (was ich nun gemacht habe).....geht auch.
-
wie bindest du eigentlich das Video ein das du im datenpunkt zoneminder.0.cam_1.zmEvent.VideoUrl hast ?
-
@mikiline hab ich oben irgendwo schon mal gepostet. Mit einem HTML widget. Damit läuft es flüssig. Aber aktualisieren bei Änderung macht Sinn..