NEWS
Test Adapter zoneminder v0.3.x
-
@djsirius ein debug log ist hier immer hilfreich, so kann dir keiner helfen, wenn du nur das Bild zeigst, wo der Adapter auf gelb steht
-
2019-10-05 14:50:56.090 - info: host.debian object change system.adapter.zoneminder.0 2019-10-05 14:50:56.091 - info: host.debian stopInstance system.adapter.zoneminder.0 2019-10-05 14:50:56.091 - info: host.debian stopInstance system.adapter.zoneminder.0 killing pid 8487 2019-10-05 14:50:56.092 - info: zoneminder.0 cleaned everything up... 2019-10-05 14:50:56.095 - info: zoneminder.0 cleaned everything up... 2019-10-05 14:50:56.106 - error: Caught by controller[1]: Unhandled rejection TypeError: Cannot read property 'monitors' of null 2019-10-05 14:50:56.106 - error: Caught by controller[1]: at _get2 (/opt/iobroker/node_modules/iobroker.zoneminder/lib/api.js:208:18) 2019-10-05 14:50:56.106 - error: Caught by controller[1]: at /opt/iobroker/node_modules/iobroker.zoneminder/lib/api.js:130:47 2019-10-05 14:50:56.107 - error: Caught by controller[1]: at tryCatcher (/opt/iobroker/node_modules/bluebird/js/release/util.js:16:23) 2019-10-05 14:50:56.107 - error: Caught by controller[1]: at Promise._settlePromiseFromHandler (/opt/iobroker/node_modules/bluebird/js/release/promise.js:517:31) 2019-10-05 14:50:56.107 - error: Caught by controller[1]: at Promise._settlePromise (/opt/iobroker/node_modules/bluebird/js/release/promise.js:574:18) 2019-10-05 14:50:56.107 - error: Caught by controller[1]: at Promise._settlePromise0 (/opt/iobroker/node_modules/bluebird/js/release/promise.js:619:10) 2019-10-05 14:50:56.107 - error: Caught by controller[1]: at Promise._settlePromises (/opt/iobroker/node_modules/bluebird/js/release/promise.js:695:18) 2019-10-05 14:50:56.107 - error: Caught by controller[1]: at _drainQueueStep (/opt/iobroker/node_modules/bluebird/js/release/async.js:138:12) 2019-10-05 14:50:56.107 - error: Caught by controller[1]: at _drainQueue (/opt/iobroker/node_modules/bluebird/js/release/async.js:131:9) 2019-10-05 14:50:56.107 - error: Caught by controller[1]: at Async._drainQueues (/opt/iobroker/node_modules/bluebird/js/release/async.js:147:5) 2019-10-05 14:50:56.107 - error: Caught by controller[1]: at Immediate.Async.drainQueues [as _onImmediate] (/opt/iobroker/node_modules/bluebird/js/release/async.js:17:14) 2019-10-05 14:50:56.107 - error: Caught by controller[1]: at runCallback (timers.js:705:18) 2019-10-05 14:50:56.107 - error: Caught by controller[1]: at tryOnImmediate (timers.js:676:5) 2019-10-05 14:50:56.107 - error: Caught by controller[1]: at processImmediate (timers.js:658:5) 2019-10-05 14:50:56.107 - error: Caught by controller[2]: Unhandled rejection TypeError: Cannot read property 'monitors' of null 2019-10-05 14:50:56.107 - error: Caught by controller[2]: at _get2 (/opt/iobroker/node_modules/iobroker.zoneminder/lib/api.js:208:18) 2019-10-05 14:50:56.107 - error: Caught by controller[2]: at /opt/iobroker/node_modules/iobroker.zoneminder/lib/api.js:130:47 2019-10-05 14:50:56.107 - error: Caught by controller[2]: at tryCatcher (/opt/iobroker/node_modules/bluebird/js/release/util.js:16:23) 2019-10-05 14:50:56.108 - error: Caught by controller[2]: at Promise._settlePromiseFromHandler (/opt/iobroker/node_modules/bluebird/js/release/promise.js:517:31) 2019-10-05 14:50:56.108 - error: Caught by controller[2]: at Promise._settlePromise (/opt/iobroker/node_modules/bluebird/js/release/promise.js:574:18) 2019-10-05 14:50:56.108 - error: Caught by controller[2]: at Promise._settlePromise0 (/opt/iobroker/node_modules/bluebird/js/release/promise.js:619:10) 2019-10-05 14:50:56.108 - error: Caught by controller[2]: at Promise._settlePromises (/opt/iobroker/node_modules/bluebird/js/release/promise.js:695:18) 2019-10-05 14:50:56.108 - error: Caught by controller[2]: at _drainQueueStep (/opt/iobroker/node_modules/bluebird/js/release/async.js:138:12) 2019-10-05 14:50:56.108 - error: Caught by controller[2]: at _drainQueue (/opt/iobroker/node_modules/bluebird/js/release/async.js:131:9) 2019-10-05 14:50:56.108 - error: Caught by controller[2]: at Async._drainQueues (/opt/iobroker/node_modules/bluebird/js/release/async.js:147:5) 2019-10-05 14:50:56.108 - error: Caught by controller[2]: at Immediate.Async.drainQueues [as _onImmediate] (/opt/iobroker/node_modules/bluebird/js/release/async.js:17:14) 2019-10-05 14:50:56.108 - error: Caught by controller[2]: at runCallback (timers.js:705:18) 2019-10-05 14:50:56.108 - error: Caught by controller[2]: at tryOnImmediate (timers.js:676:5) 2019-10-05 14:50:56.108 - error: Caught by controller[2]: at processImmediate (timers.js:658:5) 2019-10-05 14:50:56.108 - error: Caught by controller[3]: Unhandled rejection TypeError: Cannot read property 'monitors' of null 2019-10-05 14:50:56.108 - error: Caught by controller[3]: at _get2 (/opt/iobroker/node_modules/iobroker.zoneminder/lib/api.js:208:18) 2019-10-05 14:50:56.108 - error: Caught by controller[3]: at /opt/iobroker/node_modules/iobroker.zoneminder/lib/api.js:130:47 2019-10-05 14:50:56.108 - error: Caught by controller[3]: at tryCatcher (/opt/iobroker/node_modules/bluebird/js/release/util.js:16:23) 2019-10-05 14:50:56.108 - error: Caught by controller[3]: at Promise._settlePromiseFromHandler (/opt/iobroker/node_modules/bluebird/js/release/promise.js:517:31) 2019-10-05 14:50:56.109 - error: Caught by controller[3]: at Promise._settlePromise (/opt/iobroker/node_modules/bluebird/js/release/promise.js:574:18) 2019-10-05 14:50:56.109 - error: Caught by controller[3]: at Promise._settlePromise0 (/opt/iobroker/node_modules/bluebird/js/release/promise.js:619:10) 2019-10-05 14:50:56.109 - error: Caught by controller[3]: at Promise._settlePromises (/opt/iobroker/node_modules/bluebird/js/release/promise.js:695:18) 2019-10-05 14:50:56.109 - error: Caught by controller[3]: at _drainQueueStep (/opt/iobroker/node_modules/bluebird/js/release/async.js:138:12) 2019-10-05 14:50:56.109 - error: Caught by controller[3]: at _drainQueue (/opt/iobroker/node_modules/bluebird/js/release/async.js:131:9) 2019-10-05 14:50:56.109 - error: Caught by controller[3]: at Async._drainQueues (/opt/iobroker/node_modules/bluebird/js/release/async.js:147:5) 2019-10-05 14:50:56.109 - error: Caught by controller[3]: at Immediate.Async.drainQueues [as _onImmediate] (/opt/iobroker/node_modules/bluebird/js/release/async.js:17:14) 2019-10-05 14:50:56.109 - error: Caught by controller[3]: at runCallback (timers.js:705:18) 2019-10-05 14:50:56.109 - error: Caught by controller[3]: at tryOnImmediate (timers.js:676:5) 2019-10-05 14:50:56.109 - error: Caught by controller[3]: at processImmediate (timers.js:658:5) 2019-10-05 14:50:56.109 - error: Caught by controller[4]: Unhandled rejection TypeError: Cannot read property 'monitors' of null 2019-10-05 14:50:56.109 - error: Caught by controller[4]: at _get2 (/opt/iobroker/node_modules/iobroker.zoneminder/lib/api.js:208:18) 2019-10-05 14:50:56.109 - error: Caught by controller[4]: at /opt/iobroker/node_modules/iobroker.zoneminder/lib/api.js:130:47 2019-10-05 14:50:56.109 - error: Caught by controller[4]: at tryCatcher (/opt/iobroker/node_modules/bluebird/js/release/util.js:16:23) 2019-10-05 14:50:56.109 - error: Caught by controller[4]: at Promise._settlePromiseFromHandler (/opt/iobroker/node_modules/bluebird/js/release/promise.js:517:31) 2019-10-05 14:50:56.110 - error: Caught by controller[4]: at Promise._settlePromise (/opt/iobroker/node_modules/bluebird/js/release/promise.js:574:18) 2019-10-05 14:50:56.110 - error: Caught by controller[4]: at Promise._settlePromise0 (/opt/iobroker/node_modules/bluebird/js/release/promise.js:619:10) 2019-10-05 14:50:56.110 - error: Caught by controller[4]: at Promise._settlePromises (/opt/iobroker/node_modules/bluebird/js/release/promise.js:695:18) 2019-10-05 14:50:56.110 - error: Caught by controller[4]: at _drainQueueStep (/opt/iobroker/node_modules/bluebird/js/release/async.js:138:12) 2019-10-05 14:50:56.110 - error: Caught by controller[4]: at _drainQueue (/opt/iobroker/node_modules/bluebird/js/release/async.js:131:9) 2019-10-05 14:50:56.110 - error: Caught by controller[4]: at Async._drainQueues (/opt/iobroker/node_modules/bluebird/js/release/async.js:147:5) 2019-10-05 14:50:56.110 - error: Caught by controller[4]: at Immediate.Async.drainQueues [as _onImmediate] (/opt/iobroker/node_modules/bluebird/js/release/async.js:17:14) 2019-10-05 14:50:56.110 - error: Caught by controller[4]: at runCallback (timers.js:705:18) 2019-10-05 14:50:56.110 - error: Caught by controller[4]: at tryOnImmediate (timers.js:676:5) 2019-10-05 14:50:56.110 - error: Caught by controller[4]: at processImmediate (timers.js:658:5) 2019-10-05 14:50:56.110 - error: Caught by controller[5]: Unhandled rejection TypeError: Cannot read property 'monitors' of null 2019-10-05 14:50:56.110 - error: Caught by controller[5]: at _get2 (/opt/iobroker/node_modules/iobroker.zoneminder/lib/api.js:208:18) 2019-10-05 14:50:56.110 - error: Caught by controller[5]: at /opt/iobroker/node_modules/iobroker.zoneminder/lib/api.js:130:47 2019-10-05 14:50:56.110 - error: Caught by controller[5]: at tryCatcher (/opt/iobroker/node_modules/bluebird/js/release/util.js:16:23) 2019-10-05 14:50:56.110 - error: Caught by controller[5]: at Promise._settlePromiseFromHandler (/opt/iobroker/node_modules/bluebird/js/release/promise.js:517:31) 2019-10-05 14:50:56.110 - error: Caught by controller[5]: at Promise._settlePromise (/opt/iobroker/node_modules/bluebird/js/release/promise.js:574:18) 2019-10-05 14:50:56.111 - error: Caught by controller[5]: at Promise._settlePromise0 (/opt/iobroker/node_modules/bluebird/js/release/promise.js:619:10) 2019-10-05 14:50:56.111 - error: Caught by controller[5]: at Promise._settlePromises (/opt/iobroker/node_modules/bluebird/js/release/promise.js:695:18) 2019-10-05 14:50:56.111 - error: Caught by controller[5]: at _drainQueueStep (/opt/iobroker/node_modules/bluebird/js/release/async.js:138:12) 2019-10-05 14:50:56.111 - error: Caught by controller[5]: at _drainQueue (/opt/iobroker/node_modules/bluebird/js/release/async.js:131:9) 2019-10-05 14:50:56.111 - error: Caught by controller[5]: at Async._drainQueues (/opt/iobroker/node_modules/bluebird/js/release/async.js:147:5) 2019-10-05 14:50:56.111 - error: Caught by controller[5]: at Immediate.Async.drainQueues [as _onImmediate] (/opt/iobroker/node_modules/bluebird/js/release/async.js:17:14) 2019-10-05 14:50:56.111 - error: Caught by controller[5]: at runCallback (timers.js:705:18) 2019-10-05 14:50:56.111 - error: Caught by controller[5]: at tryOnImmediate (timers.js:676:5) 2019-10-05 14:50:56.111 - error: Caught by controller[5]: at processImmediate (timers.js:658:5) 2019-10-05 14:50:56.111 - error: Caught by controller[6]: Unhandled rejection TypeError: Cannot read property 'monitors' of null 2019-10-05 14:50:56.111 - error: Caught by controller[6]: at _get2 (/opt/iobroker/node_modules/iobroker.zoneminder/lib/api.js:208:18) 2019-10-05 14:50:56.111 - error: Caught by controller[6]: at /opt/iobroker/node_modules/iobroker.zoneminder/lib/api.js:130:47 2019-10-05 14:50:56.111 - error: Caught by controller[6]: at tryCatcher (/opt/iobroker/node_modules/bluebird/js/release/util.js:16:23) 2019-10-05 14:50:56.111 - error: Caught by controller[6]: at Promise._settlePromiseFromHandler (/opt/iobroker/node_modules/bluebird/js/release/promise.js:517:31) 2019-10-05 14:50:56.111 - error: Caught by controller[6]: at Promise._settlePromise (/opt/iobroker/node_modules/bluebird/js/release/promise.js:574:18) 2019-10-05 14:50:56.111 - error: Caught by controller[6]: at Promise._settlePromise0 (/opt/iobroker/node_modules/bluebird/js/release/promise.js:619:10) 2019-10-05 14:50:56.112 - error: Caught by controller[6]: at Promise._settlePromises (/opt/iobroker/node_modules/bluebird/js/release/promise.js:695:18) 2019-10-05 14:50:56.112 - error: Caught by controller[6]: at _drainQueueStep (/opt/iobroker/node_modules/bluebird/js/release/async.js:138:12) 2019-10-05 14:50:56.112 - error: Caught by controller[6]: at _drainQueue (/opt/iobroker/node_modules/bluebird/js/release/async.js:131:9) 2019-10-05 14:50:56.112 - error: Caught by controller[6]: at Async._drainQueues (/opt/iobroker/node_modules/bluebird/js/release/async.js:147:5) 2019-10-05 14:50:56.112 - error: Caught by controller[6]: at Immediate.Async.drainQueues [as _onImmediate] (/opt/iobroker/node_modules/bluebird/js/release/async.js:17:14) 2019-10-05 14:50:56.112 - error: Caught by controller[6]: at runCallback (timers.js:705:18) 2019-10-05 14:50:56.112 - error: Caught by controller[6]: at tryOnImmediate (timers.js:676:5) 2019-10-05 14:50:56.112 - error: Caught by controller[6]: at processImmediate (timers.js:658:5) 2019-10-05 14:50:56.112 - info: host.debian instance system.adapter.zoneminder.0 terminated with code 156 ()
-
@djsirius hast du deine Kamera jetzt korrekt eingerichtet und läuft die in zoneminder? Sieht für mich nämlich nicht so aus, daher läuft auch der Adapter nicht
-
@coyote du hast natürlich recht, ich habe gerade die Kameras zwecks Installation abgeklemmt.
So alles wieder angeklemmt!
-
So ich habe zoneminder im iobroker nochmal deinstalliert und neu installiert. Läuft immer noch nicht!
Hier die Log-Datei:
2019-10-05 15:33:45.367 - info: zoneminder.0 starting. Version 0.2.1 in /opt/iobroker/node_modules/iobroker.zoneminder, node: v10.16.0 2019-10-05 15:33:45.412 - info: zoneminder.0 check group user admin group admin: false 2019-10-05 15:33:45.467 - info: zoneminder.0 check user admin pw ioboker: false 2019-10-05 15:33:50.399 - warn: zoneminder.0 No monitors found, please configure monitors in your zoneminder! 2019-10-05 15:33:55.402 - warn: zoneminder.0 No monitors found, please configure monitors in your zoneminder! 2019-10-05 15:34:00.405 - warn: zoneminder.0 No monitors found, please configure monitors in your zoneminder! 2019-10-05 15:34:05.411 - warn: zoneminder.0 No monitors found, please configure monitors in your zoneminder!
-
Ich hab hier auch einen Kamerastream den ich gerne eingebunden bekommen würde aber irgendwie klappt das nicht.
http://192.168.x.x/video/livemb.asp
hat jemand eine Idee, wie ich diese eingebunden bekommen könnte?
-
@djsirius kann sein dass ich heute morgen was verschlimmbessert habe, ich schau später nach
-
@djsirius von adapter her passt alles, schau mal unter
http://zoneminder/zm/api/monitors.json ob hier monitore aufgelistet sind
-
Sieht schlecht aus!
Edit:
Man sollte auch die Kameras anschalten.
{"monitors":[{"Monitor":{"Id":"1","Name":"Garten","ServerId":"0","Type":"Remote","Function":"Modect","Enabled":"1","LinkedMonitors":"","Triggers":"","Device":"\/dev\/video0","Channel":"0","Format":"255","V4LMultiBuffer":false,"V4LCapturesPerFrame":"1","Protocol":"rtsp","Method":"rtpRtsp","Host":"admin:test@192.168.1.20","Port":"554","SubPath":"","Path":"\/h264Preview_01_main","Options":"","User":"","Pass":"","Width":"1280","Height":"720","Colours":"4","Palette":"0","Orientation":"0","Deinterlacing":"0","RTSPDescribe":true,"Brightness":"-1","Contrast":"-1","Hue":"-1","Colour":"-1","EventPrefix":"Event-","LabelFormat":"%N - %d\/%m\/%y %H:%M:%S","LabelX":"0","LabelY":"0","LabelSize":"1","ImageBufferCount":"50","WarmupCount":"25","PreEventCount":"25","PostEventCount":"25","StreamReplayBuffer":"1000","AlarmFrameCount":"1","SectionLength":"600","FrameSkip":"0","MotionFrameSkip":"0","AnalysisFPS":"0.00","AnalysisUpdateDelay":"0","MaxFPS":"0.00","AlarmMaxFPS":"0.00","FPSReportInterval":"1000","RefBlendPerc":"12","AlarmRefBlendPerc":"6","Controllable":"0","ControlId":"0","ControlDevice":null,"ControlAddress":null,"AutoStopTimeout":null,"TrackMotion":"0","TrackDelay":"0","ReturnLocation":"-1","ReturnDelay":"0","DefaultView":"Events","DefaultRate":"100","DefaultScale":"100","SignalCheckColour":"#0000c0","WebColour":"red","Exif":false,"Sequence":"2"}},{"Monitor":{"Id":"2","Name":"Haustuer","ServerId":"0","Type":"Remote","Function":"Modect","Enabled":"1","LinkedMonitors":"","Triggers":"","Device":"\/dev\/video0","Channel":"0","Format":"255","V4LMultiBuffer":false,"V4LCapturesPerFrame":"1","Protocol":"rtsp","Method":"rtpRtsp","Host":"admin:test@192.168.1.19","Port":"554","SubPath":"","Path":"\/h264Preview_01_main","Options":"","User":"","Pass":"","Width":"1280","Height":"720","Colours":"4","Palette":"0","Orientation":"0","Deinterlacing":"0","RTSPDescribe":true,"Brightness":"-1","Contrast":"-1","Hue":"-1","Colour":"-1","EventPrefix":"Event-","LabelFormat":"%N - %d\/%m\/%y %H:%M:%S","LabelX":"0","LabelY":"0","LabelSize":"1","ImageBufferCount":"50","WarmupCount":"25","PreEventCount":"25","PostEventCount":"25","StreamReplayBuffer":"1000","AlarmFrameCount":"1","SectionLength":"600","FrameSkip":"0","MotionFrameSkip":"0","AnalysisFPS":"0.00","AnalysisUpdateDelay":"0","MaxFPS":"0.00","AlarmMaxFPS":"0.00","FPSReportInterval":"1000","RefBlendPerc":"12","AlarmRefBlendPerc":"6","Controllable":"0","ControlId":"0","ControlDevice":null,"ControlAddress":null,"AutoStopTimeout":null,"TrackMotion":"0","TrackDelay":"0","ReturnLocation":"-1","ReturnDelay":"0","DefaultView":"Events","DefaultRate":"100","DefaultScale":"100","SignalCheckColour":"#0000c0","WebColour":"red","Exif":false,"Sequence":"1"}}]}
-
Moin.
Wie kann ich denn jetzt den Stream in die VIS einbinden?
Ich habe zwar die Adresse vom Stream der Cam, die ist mit einem Token versehen und ändert sich logischer weise immer.
Gibt es eine Einstellung in Zoneminder wo man das ausstellen kann und dafür in der Adresse mit http://user:pass@... eingeben muss?
-
@djsirius das ist Sinn der Sache, dass der sich ändert, Thema netzwerksicherheit.. Schau mal weiter oben da hab ich ein html widget gepostet mit dem du es einbinden kannst
-
@Meistertr ok, danke!
Warum mein Adapter sich mit zoneminder nicht verbinden kann, kann mir auch keiner sagen?
http://zoneminder/zm/api/monitors.json die Monitore sind ja gelistet!
-
-
@djsirius
evtl. den Haken entfernen bei "AUTH_HASH_IPS"....
-
@mikiline danke, funktioniert.
Ich würde schon gerne wissen, wie ich jetzt den Adapter in Iobroker ans laufen bekomme.
Kann mir denn keiner helfen?
-
@djsirius schick mal bitte einen debug log.
-
@Meistertr ist das die Datei debug in /var/log/ ?
-
@djsirius /opt/iobroker/log
-
-
@djsirius hier wird erklärt wie man einen adapter auf debug umstellt:
https://www.youtube.com/watch?v=-1PCHancttc&t=143s
mir reicht ein auszug aus den ersten minuten