Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. [gelöst]Onvif Adapter 0.4.4

    NEWS

    • Neues Video auf YouTube

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    [gelöst]Onvif Adapter 0.4.4

    This topic has been deleted. Only users with topic management privileges can see it.
    • wendy2702
      wendy2702 @dirkheider last edited by

      @dirkheider Mal das loggen auf Debug stellen und dann die Ausgabe davon hier Posten. Eventuell kann man dann mehr erkennen.

      D 1 Reply Last reply Reply Quote 0
      • D
        dirkheider @wendy2702 last edited by dirkheider

        Ich hoffe du hast das gemeint?

        wendy2702 D 2 Replies Last reply Reply Quote 0
        • wendy2702
          wendy2702 @dirkheider last edited by wendy2702

          @dirkheider Kannst du das bitte als Text innerhalb von Code Tags </> Posten. Ist sonst Mobil nicht lesbar und schon gar nicht durchsuchbar oder so.

          Und mach zumindest dein Passwort unkenntlich.

          D 1 Reply Last reply Reply Quote 0
          • D
            dirkheider @wendy2702 last edited by wendy2702

            @wendy2702

            onvif.0	2021-03-04 19:52:17.284	debug	(30883) sendTo "getSnapshot" to system.adapter.admin.0 from system.adapter.onvif.0
            onvif.0	2021-03-04 19:52:17.283	error	(30883) httpGet. sharp {}
            onvif.0	2021-03-04 19:52:17.281	debug	(30883) httpGet.size: 436
            onvif.0	2021-03-04 19:52:17.280	debug	(30883) httpGet.headers: {"date":"Thu, 04 Mar 2021 18:52:15 GMT","last-modified":"Thu, 04 Mar 2021 18:52:15 GMT","connection":"close","cache-control":"no-cache,no-store","www-authenticate":"Basic real
            onvif.0	2021-03-04 19:52:17.280	debug	(30883) httpGet.statusCode: 401
            onvif.0	2021-03-04 19:52:17.268	debug	(30883) getSnapshotUri:stream.uri "http://192.168.178.41:80/tmpfs/auto.jpg"
            onvif.0	2021-03-04 19:52:17.267	debug	(30883) getSnapshot. stream: {"uri":"http://192.168.178.41:80/tmpfs/auto.jpg","invalidAfterConnect":false,"invalidAfterReboot":false,"timeout":"PT5S"}
            onvif.0	2021-03-04 19:52:17.266	debug	(30883) getSnapshot. err: null
            onvif.0	2021-03-04 19:52:17.252	debug	(30883) getSnapshot. cam: {"_events":{},"_eventsCount":1,"_maxListeners":100,"hostname":"192.168.178.41","username":"?","password":"?","port":"8080","path":"/onvif/device_service","timeout":
            onvif.0	2021-03-04 19:52:17.250	debug	(30883) getSnapshot. message.id: "onvif.0.192_168_178_41_8080"
            onvif.0	2021-03-04 19:52:17.249	debug	(30883) Received "getSnapshot" event (message: {"id":"192_168_178_41_8080","width":300})
            onvif.0	2021-03-04 19:52:16.216	debug	(30883) sendTo "getDevices" to system.adapter.admin.0 from system.adapter.onvif.0
            onvif.0	2021-03-04 19:52:16.215	debug	(30883) getDevicesAdmin result: [{"type":"device","common":{"name":"192_168_178_41_8080"},"native":{"id":"192_168_178_41_8080","name":"192.168.178.41:8080","ip":"192.168.178.41","port":"8080","user":"
            onvif.0	2021-03-04 19:52:16.196	debug	(30883) getDevicesAdmin
            onvif.0	2021-03-04 19:52:16.196	debug	(30883) Received "getDevices" event
            onvif.0	2021-03-04 19:52:10.024	debug	(30883) sendTo "getSettingsCamera" to system.adapter.admin.0 from system.adapter.onvif.0
            onvif.0	2021-03-04 19:52:10.022	debug	(30883) getForeignState: {"type":"device","common":{"name":"192_168_178_41_8080"},"native":{"id":"192_168_178_41_8080","name":"192.168.178.41:8080","ip":"192.168.178.41","port":"8080","user":"admin",
            onvif.0	2021-03-04 19:52:10.017	debug	(30883) getForeignState. objId: onvif.0.192_168_178_41_8080
            onvif.0	2021-03-04 19:52:10.016	debug	(30883) Received "getSettingsCamera" event (message: {"id":"192_168_178_41_8080"})
            onvif.0	2021-03-04 19:52:01.330	debug	(30883) sendTo "getSnapshot" to system.adapter.admin.0 from system.adapter.onvif.0
            onvif.0	2021-03-04 19:52:01.329	error	(30883) httpGet. sharp {}
            onvif.0	2021-03-04 19:52:01.327	debug	(30883) httpGet.size: 436
            onvif.0	2021-03-04 19:52:01.326	debug	(30883) httpGet.headers: {"date":"Thu, 04 Mar 2021 18:51:59 GMT","last-modified":"Thu, 04 Mar 2021 18:51:59 GMT","connection":"close","cache-control":"no-cache,no-store","www-authenticate":"Basic rea
            onvif.0	2021-03-04 19:52:01.325	debug	(30883) httpGet.statusCode: 401
            onvif.0	2021-03-04 19:52:01.313	debug	(30883) getSnapshotUri:stream.uri "http://192.168.178.41:80/tmpfs/auto.jpg"
            onvif.0	2021-03-04 19:52:01.313	debug	(30883) getSnapshot. stream: {"uri":"http://192.168.178.41:80/tmpfs/auto.jpg","invalidAfterConnect":false,"invalidAfterReboot":false,"timeout":"PT5S"}
            onvif.0	2021-03-04 19:52:01.312	debug	(30883) getSnapshot. err: null
            onvif.0	2021-03-04 19:52:01.295	debug	(30883) getSnapshot. cam: {"_events":{},"_eventsCount":1,"_maxListeners":100,"hostname":"192.168.178.41","username":"?","password":"?","port":"8080","path":"/onvif/device_service","timeout"
            onvif.0	2021-03-04 19:52:01.293	debug	(30883) getSnapshot. message.id: "onvif.0.192_168_178_41_8080"
            onvif.0	2021-03-04 19:52:01.293	debug	(30883) Received "getSnapshot" event (message: {"id":"192_168_178_41_8080","width":300})
            onvif.0	2021-03-04 19:52:00.274	debug	(30883) sendTo "getDevices" to system.adapter.admin.0 from system.adapter.onvif.0
            onvif.0	2021-03-04 19:52:00.274	debug	(30883) getDevicesAdmin result: [{"type":"device","common":{"name":"192_168_178_41_8080"},"native":{"id":"192_168_178_41_8080","name":"192.168.178.41:8080","ip":"192.168.178.41","port":"8080","user":
            onvif.0	2021-03-04 19:52:00.257	debug	(30883) getDevicesAdmin
            onvif.0	2021-03-04 19:52:00.257	debug	(30883) Received "getDevices" event
            onvif.0	2021-03-04 19:45:51.400	debug	(30883) sendTo "getSnapshot" to system.adapter.admin.0 from system.adapter.onvif.0
            onvif.0	2021-03-04 19:45:51.399	error	(30883) httpGet. sharp {}
            onvif.0	2021-03-04 19:45:51.397	debug	(30883) httpGet.size: 436
            onvif.0	2021-03-04 19:45:51.397	debug	(30883) httpGet.headers: {"date":"Thu, 04 Mar 2021 18:45:50 GMT","last-modified":"Thu, 04 Mar 2021 18:45:50 GMT","connection":"close","cache-control":"no-cache,no-store","www-authenticate":"Basic rea
            onvif.0	2021-03-04 19:45:51.396	debug	(30883) httpGet.statusCode: 401
            onvif.0	2021-03-04 19:45:51.384	debug	(30883) getSnapshotUri:stream.uri "http://192.168.178.41:80/tmpfs/auto.jpg"
            onvif.0	2021-03-04 19:45:51.383	debug	(30883) getSnapshot. stream: {"uri":"http://192.168.178.41:80/tmpfs/auto.jpg","invalidAfterConnect":false,"invalidAfterReboot":false,"timeout":"PT5S"}
            onvif.0	2021-03-04 19:45:51.382	debug	(30883) getSnapshot. err: null
            

            MOD EDIT: LOG RICHTIG IN CODE TAGS GESETZT

            1 Reply Last reply Reply Quote 0
            • D
              dirkheider @dirkheider last edited by

              @dirkheider said in Onvif Adapter 0.4.4:

              Ich hoffe du hast das gemeint?

              wendy2702 1 Reply Last reply Reply Quote 0
              • wendy2702
                wendy2702 @dirkheider last edited by

                @dirkheider

                Liefert der Link im Browser ein Snapshot:

                http://192.168.178.41:80/tmpfs/auto.jpg
                
                D 1 Reply Last reply Reply Quote 0
                • D
                  dirkheider @wendy2702 last edited by

                  @wendy2702 said in Onvif Adapter 0.4.4:

                  http://192.168.178.41:80/tmpfs/auto.jpg

                  Ja da kann ich den snapshot sehen.

                  wendy2702 1 Reply Last reply Reply Quote 0
                  • wendy2702
                    wendy2702 @dirkheider last edited by

                    @dirkheider Was ich gerade so im Forum und im ReadMe gelesen habe speichert der keine Bilder.

                    Dafür sind zusätzliche Aktionen erforderlich: Aus dem ReadMe

                    Snapshot request
                    To do this, use the command:
                    sendTo('onvif.0', command, message, callback);
                    
                    Example of a script for request of the snapshot and sending to Telegram:
                    
                    const fs = require('fs');
                    
                    function getSnapshot(caption){
                        sendTo('onvif.0', 'saveFileSnapshot', {"id":"192_168_1_4_80", "file":"/opt/cameras/snapshot.jpg"}, (data) => {
                            console.log('image received: ' + data);
                            if (data === "OK")
                                sendTo('telegram.0', {text: '/opt/cameras/snapshot.jpg', caption: caption});
                        });
                    }
                    caption - is heading for the picture in Telegram
                    It is possible to cause both on an event, and according to the button/schedule.
                    
                    The option of loading into an intermediate Buffer in the file location:
                    
                    function getSnapshot(){
                        sendTo('onvif.0', 'getSnapshot', {"id":"192_168_1_4_80"}, (result) => {
                            if (result.err) log(result);
                            if (result.img){
                                log('image received: ' + typeof result.img);
                                sendTo('telegram.0', {
                                    user: 'user', 
                                    text: result.img.rawImage,
                                    type: 'photo',
                                    caption: 'Camera 1'
                                });
                            }
                        });
                    }
                    
                    D 1 Reply Last reply Reply Quote 0
                    • D
                      dirkheider @wendy2702 last edited by

                      @wendy2702
                      Ohhhh man........wie peinlich.......habe mich vom ersten Abschnitt täuschen lassen. Dort steht, es werden nach erfolgreicher Installation Bilder gezogen. Wieder mal ein typisches Beispiel dafür, dass man vor lauter Bäumen den Wald nicht sieht. Sorry nochmal und danke dir, fürs Augen öffnen:-)))

                      Gruß Dirk

                      wendy2702 1 Reply Last reply Reply Quote 0
                      • wendy2702
                        wendy2702 @dirkheider last edited by

                        @dirkheider Kannst du dann bitte wenn für dich erledigt den Beitrag aug Gelöst setzen.

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post

                        Support us

                        ioBroker
                        Community Adapters
                        Donate
                        FAQ Cloud / IOT
                        HowTo: Node.js-Update
                        HowTo: Backup/Restore
                        Downloads
                        BLOG

                        795
                        Online

                        32.0k
                        Users

                        80.5k
                        Topics

                        1.3m
                        Posts

                        2
                        11
                        478
                        Loading More Posts
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes
                        Reply
                        • Reply as topic
                        Log in to reply
                        Community
                        Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                        The ioBroker Community 2014-2023
                        logo