Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Visualisierung
    4. Kamera erzeugter Schnappschuss als jpg oder png in VIS

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    Kamera erzeugter Schnappschuss als jpg oder png in VIS

    This topic has been deleted. Only users with topic management privileges can see it.
    • haselchen
      haselchen Most Active @LaBamba last edited by

      @LaBamba

      Wie sieht dein Skript jetzt aus?

      L 1 Reply Last reply Reply Quote 0
      • L
        LaBamba @haselchen last edited by LaBamba

        @haselchen

        var timeout, timeout1, timeout2;
        var fs = require('fs');
         
        on({id: '0_userdata.0.Aussen.ALP600_klingel', change: "any"}, function (obj) {
         var value = obj.state.val;
         var oldValue = obj.oldState.val;
         timeout = setTimeout(function () {
              exec('wget --output-document /tmp/klingel1.jpg \'http://192.168.xxx.xx/cgi-bin/images_cgi?channel=0&user=xxxxxx&pwd=xxxxxx'');
          }, 2000);
         timeout1 = setTimeout(function () {
            const bild = fs.readFileSync('/tmp/klingel1.jpg');
            writeFile('vis.0','klingel1.jpg', bild);
          }, 4000);
         timeout2 = setTimeout(function () {
           sendTo("xxxxx", "send", {
               text: '/opt/iobroker/iobroker-data/files/vis.0/klingel1.jpg'
           });
         }, 6000);
         // ab hier so oft wiederholen wie man es möchte
        });
        

        bei sendto (muss doch der Nutzername von telegram rein oder?
        Nee da muss telegram.0 rein

        haselchen 1 Reply Last reply Reply Quote 0
        • haselchen
          haselchen Most Active @LaBamba last edited by haselchen

          @LaBamba
          nein , deine instanz.
          telegram.0 vermute ich mal.
          aber da sind noch andere dinge falsch.
          ich versuch das mal zu korrigieren.

          var timeout, timeout1, timeout2;
          
          var fs = require('fs');
          
           
          
          on({id: '0_userdata.0.Aussen.ALP600_klingel', change: "any"}, function (obj) {
          
           var value = obj.state.val;
          
           var oldValue = obj.oldState.val;
          
           timeout = setTimeout(function () {
          
                exec('wget --output-document /tmp/klingel1.jpg \'http://192.168.xxx.xx/cgi-bin/images_cgi?channel=0&user=xxxxxx&pwd=xxxxxx/ \'');
          
            }, 2000);
          
           timeout1 = setTimeout(function () {
          
              const bild = fs.readFileSync('/tmp/klingel1.jpg');
          
              writeFile('vis.0','klingel1.jpg', bild);
          
            }, 4000);
          
           timeout2 = setTimeout(function () {
          
             sendTo("xxxxx", "send", {
          
                 text: '/opt/iobroker/iobroker-data/files/vis.0/klingel1.jpg'
          
             });
          
           }, 6000);
          
           // ab hier so oft wiederholen wie man es möchte
          
          });
          
          L 1 Reply Last reply Reply Quote 0
          • L
            LaBamba @haselchen last edited by

            @haselchen
            Das gibt es doch nicht, das Ding muss doch irgendwann mal laufen!

            haselchen 1 Reply Last reply Reply Quote 0
            • haselchen
              haselchen Most Active @LaBamba last edited by

              @LaBamba

              Auf die Schnelle. Versuch das zu importieren und deine Daten einzusetzen.

              L 1 Reply Last reply Reply Quote 0
              • L
                LaBamba @haselchen last edited by

                @haselchen
                Es erscheint erstmal keine Fehlermeldung

                haselchen 1 Reply Last reply Reply Quote 0
                • haselchen
                  haselchen Most Active @LaBamba last edited by

                  @LaBamba

                  Klingel mal 🙂

                  L 1 Reply Last reply Reply Quote 0
                  • L
                    LaBamba @haselchen last edited by LaBamba

                    @haselchen
                    im tmp ordner kommt nichts an

                    haselchen 1 Reply Last reply Reply Quote 0
                    • haselchen
                      haselchen Most Active @LaBamba last edited by

                      @LaBamba

                      was sagt das log?

                      setz mal die zeiten im script höher
                      3000

                      5000

                      7000

                      L 1 Reply Last reply Reply Quote 0
                      • L
                        LaBamba @haselchen last edited by

                        @haselchen
                        Der log sagt gar nichts bzgl. fehler

                        haselchen 1 Reply Last reply Reply Quote 0
                        • haselchen
                          haselchen Most Active @LaBamba last edited by

                          @LaBamba

                          Dann änder wie gesagt die Zeiten mal im Script

                          L 2 Replies Last reply Reply Quote 0
                          • L
                            LaBamba @haselchen last edited by

                            @haselchen
                            Ändert sich leider nichts!

                            1 Reply Last reply Reply Quote 0
                            • L
                              LaBamba @haselchen last edited by

                              @haselchen
                              Das skript wird gar nicht erkannt wenn die klingel auf true geht

                              haselchen 1 Reply Last reply Reply Quote 0
                              • haselchen
                                haselchen Most Active @LaBamba last edited by

                                @LaBamba

                                Hast du es eingeschaltet?
                                Standard ist es erstmal aus.

                                L 1 Reply Last reply Reply Quote 0
                                • L
                                  LaBamba @haselchen last edited by LaBamba

                                  @haselchen
                                  4a12b958-eded-4083-ab09-91399aea965e-image.png
                                  An ist es!
                                  Glaube er findet den Punkt nicht!

                                  haselchen 1 Reply Last reply Reply Quote 0
                                  • haselchen
                                    haselchen Most Active @LaBamba last edited by haselchen

                                    @LaBamba

                                    Geht der Datenpunkt auf true beim Klingeln?

                                    L 3 Replies Last reply Reply Quote 0
                                    • L
                                      LaBamba @haselchen last edited by

                                      @haselchen
                                      Ja habe ihn per hand jetzt mehrmals auf true gesetzt aber nichts passiert

                                      1 Reply Last reply Reply Quote 0
                                      • L
                                        LaBamba @haselchen last edited by

                                        @haselchen
                                        674484e4-dd80-405c-b200-4ea20823236c-image.png
                                        Das Skript zum umschalten der VIS Ansicht auf die Kameras funktioniert auch.

                                        haselchen 1 Reply Last reply Reply Quote 0
                                        • L
                                          LaBamba @haselchen last edited by

                                          @haselchen
                                          Rechte im Order habe ich auch überprüft!

                                          1 Reply Last reply Reply Quote 0
                                          • haselchen
                                            haselchen Most Active @LaBamba last edited by

                                            @LaBamba

                                            Per Hand geht das meines Erachtens auch nicht.
                                            Du müsstest das Script mal auf Debug stellen und das Ergebnis nach dem Klingeln posten.

                                            L 2 Replies Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            834
                                            Online

                                            32.0k
                                            Users

                                            80.4k
                                            Topics

                                            1.3m
                                            Posts

                                            camera vis
                                            4
                                            88
                                            2851
                                            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