Skip to content
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Visualisierung
  4. externes Bild in VIS

NEWS

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    8.9k

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    13
    1
    2.3k

  • Neues Video "KI im Smart Home" - ioBroker plus n8n
    BluefoxB
    Bluefox
    16
    1
    3.4k

externes Bild in VIS

Geplant Angeheftet Gesperrt Verschoben Visualisierung
viscamera
23 Beiträge 4 Kommentatoren 2.4k Aufrufe 4 Watching
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • GlasfaserG Glasfaser

    @Negalein

    Teste mal :

    nur User / Pass ändern

    const idklingel = ["doorbird.0.Doorbell.101.trigger"];
    
    var sperre = false;  //verhindert das doppeltes Drücken das Script stoppt
    
    var timeout1, timeout2, timeout3, timeout4, timeout5, timeout6, timeout7, timeout8, timeout9, timeout10, timeout11;
    
    var fs = require('fs');
    
    
    
    
    on({id: idklingel, change: "any"}, function (obj) {
    
     if(!sperre) {
    
       sperre = true;
    
       
    
        // Speichert das erste Bild bei Klingeln
    
       exec('wget --output-document /tmp/max1.jpg \'http://xxxxxx:xxxxxx@10.0.1.84/bha-api/image.cgi\'');
    
       
        // Nach dem ersten Bild wird nach 2000ms das nächste Bild gespeichert
       timeout1 = setTimeout(function () {
    
         exec('wget --output-document /tmp/max2.jpg \'http://xxxxxx:xxxxxx@10.0.1.84/bha-api/image.cgi\''); 
    
       }, 2000);
    
       
        // Nach dem zweiten Bild wird nach 2000ms das nächste Bild gespeichert
       timeout2 = setTimeout(function () {
    
         exec('wget --output-document /tmp/max3.jpg \'http://xxxxxx:xxxxxx@10.0.1.84/bha-api/image.cgi\'');
    
       }, 4000);
    
      
        // Nach dem dritten Bild wird nach 2000ms das nächste Bild gespeichert
       timeout3 = setTimeout(function () {
    
         exec('wget --output-document /tmp/max4.jpg \'http://xxxxxx:xxxxxx@10.0.1.84/bha-api/image.cgi\'');
    
       }, 6000);
    
    
        // Telegram versenden
       timeout4 = setTimeout(function(){
    
           sendTo('telegram.0', {text: '/tmp/max1.jpg', caption: 'Jemand klingelt an der Haustür !!!'});
    
                   //log ('__ Klingel-Bild wurde versendet __');
    
       }, 10000); 
       timeout5 = setTimeout(function(){
    
           sendTo('telegram.0', {text: '/tmp/max2.jpg', caption: 'Jemand klingelt an der Haustür !!!'});
    
                   //log ('__ Klingel-Bild wurde versendet __');
    
       }, 11000); 
    
    
       }
              
    
       timeout6 = setTimeout(function() {
    
          sperre = false;
    
       }, 5000); //Zeit für Klingelsperre 1.Zeile
    
    
        // Bilder werden nach vis gespeichert
       timeout7 = setTimeout(function () {
    
            const bild1 = fs.readFileSync('/tmp/max1.jpg');
    
            writeFile('vis.0','/_temp/Max/Max1.jpg', bild1);
    
            const bild2 = fs.readFileSync('/tmp/max2.jpg');
    
            writeFile('vis.0','/_temp/Max/Max2.jpg', bild2);
    
            const bild3 = fs.readFileSync('/tmp/maxt3.jpg');
    
            writeFile('vis.0','/_temp/Max/Max3.jpg', bild3);
    
            const bild4 = fs.readFileSync('/tmp/max4.jpg');
    
            writeFile('vis.0','/_temp/Max/Max4.jpg', bild4);
    
       }, 20000); 
    
    });
    
    
    

    NegaleinN Offline
    NegaleinN Offline
    Negalein
    Global Moderator
    schrieb am zuletzt editiert von
    #9

    @Glasfaser sagte in externes Bild in VIS:

    Teste mal :

    Danke, kommen keine Fehler mehr. :)

    beim Klingeln speichert er die Bilder in /tmp/max1.jpg und kopiert sie dann in vis.0/_temp/Max/Max1.jpg ?
    Muss der Ordner _temp/Max/ händisch angelegt werden?

    Weißt du auch noch das wegen Telegram?

    ° Node.js: 20.17.0 NPM: 10.8.2
    ° Proxmox, Ubuntu 22.04.3 LTS
    ° Fixer ---> iob fix

    GlasfaserG 1 Antwort Letzte Antwort
    0
    • NegaleinN Negalein

      @Glasfaser sagte in externes Bild in VIS:

      Teste mal :

      Danke, kommen keine Fehler mehr. :)

      beim Klingeln speichert er die Bilder in /tmp/max1.jpg und kopiert sie dann in vis.0/_temp/Max/Max1.jpg ?
      Muss der Ordner _temp/Max/ händisch angelegt werden?

      Weißt du auch noch das wegen Telegram?

      GlasfaserG Offline
      GlasfaserG Offline
      Glasfaser
      schrieb am zuletzt editiert von
      #10

      @Negalein sagte in externes Bild in VIS:

      Muss der Ordner _temp/Max/ händisch angelegt werden?

      Ja ... mit dem Dateimanager ;)

      Telegram kannst du auch löschen , wenn nicht benötigt

      Synology 918+ 16GB - ioBroker in Docker v9 , VISO auf Trekstor Primebook C13 13,3" , Hikvision Domkameras mit Surveillance Station .. CCU RaspberryMatic in Synology VM .. Zigbee CC2538+CC2592 .. Sonoff .. KNX .. Modbus ..

      NegaleinN 1 Antwort Letzte Antwort
      1
      • GlasfaserG Glasfaser

        @Negalein sagte in externes Bild in VIS:

        Muss der Ordner _temp/Max/ händisch angelegt werden?

        Ja ... mit dem Dateimanager ;)

        Telegram kannst du auch löschen , wenn nicht benötigt

        NegaleinN Offline
        NegaleinN Offline
        Negalein
        Global Moderator
        schrieb am zuletzt editiert von
        #11

        @Glasfaser sagte in externes Bild in VIS:

        Telegram kannst du auch löschen , wenn nicht benötigt

        reicht es Zeile 50-66 auszukommentieren, oder bis Zeile 69?

        ° Node.js: 20.17.0 NPM: 10.8.2
        ° Proxmox, Ubuntu 22.04.3 LTS
        ° Fixer ---> iob fix

        GlasfaserG 2 Antworten Letzte Antwort
        0
        • NegaleinN Negalein

          @Glasfaser sagte in externes Bild in VIS:

          Telegram kannst du auch löschen , wenn nicht benötigt

          reicht es Zeile 50-66 auszukommentieren, oder bis Zeile 69?

          GlasfaserG Offline
          GlasfaserG Offline
          Glasfaser
          schrieb am zuletzt editiert von
          #12

          @Negalein

          Eingentlich ja ... kann gerade nicht testen ... mußt du machen :)

          Synology 918+ 16GB - ioBroker in Docker v9 , VISO auf Trekstor Primebook C13 13,3" , Hikvision Domkameras mit Surveillance Station .. CCU RaspberryMatic in Synology VM .. Zigbee CC2538+CC2592 .. Sonoff .. KNX .. Modbus ..

          1 Antwort Letzte Antwort
          0
          • NegaleinN Negalein

            @Glasfaser sagte in externes Bild in VIS:

            Telegram kannst du auch löschen , wenn nicht benötigt

            reicht es Zeile 50-66 auszukommentieren, oder bis Zeile 69?

            GlasfaserG Offline
            GlasfaserG Offline
            Glasfaser
            schrieb am zuletzt editiert von Glasfaser
            #13

            @Negalein
            Habe auch noch ein Fehler beseitigt ..

            const idklingel = ["doorbird.0.Doorbell.101.trigger"];
            
            var sperre = false;  //verhindert das doppeltes Drücken das Script stoppt
            
            var timeout1, timeout2, timeout3, timeout4, timeout5, timeout6, timeout7, timeout8, timeout9, timeout10, timeout11;
            
            var fs = require('fs');
            
            
            
            
            on({id: idklingel, change: "any"}, function (obj) {
            
             if(!sperre) {
            
               sperre = true;
            
               
            
                // Speichert das erste Bild bei Klingeln
            
               exec('wget --output-document /tmp/max1.jpg \'http://xxxxxx:xxxxxx@10.0.1.84/bha-api/image.cgi\'');
            
               
                // Nach dem ersten Bild wird nach 2000ms das nächste Bild gespeichert
               timeout1 = setTimeout(function () {
            
                 exec('wget --output-document /tmp/max2.jpg \'http://xxxxxx:xxxxxx@10.0.1.84/bha-api/image.cgi\''); 
            
               }, 2000);
            
               
                // Nach dem zweiten Bild wird nach 2000ms das nächste Bild gespeichert
               timeout2 = setTimeout(function () {
            
                 exec('wget --output-document /tmp/max3.jpg \'http://xxxxxx:xxxxxx@10.0.1.84/bha-api/image.cgi\'');
            
               }, 4000);
            
              
                // Nach dem dritten Bild wird nach 2000ms das nächste Bild gespeichert
               timeout3 = setTimeout(function () {
            
                 exec('wget --output-document /tmp/max4.jpg \'http://xxxxxx:xxxxxx@10.0.1.84/bha-api/image.cgi\'');
            
               }, 6000);
            
                /*
                // Telegram versenden
               timeout4 = setTimeout(function(){
            
                   sendTo('telegram.0', {text: '/tmp/max1.jpg', caption: 'Jemand klingelt an der Haustür !!!'});
            
                           //log ('__ Klingel-Bild wurde versendet __');
            
               }, 10000); 
               timeout5 = setTimeout(function(){
            
                   sendTo('telegram.0', {text: '/tmp/max2.jpg', caption: 'Jemand klingelt an der Haustür !!!'});
            
                           //log ('__ Klingel-Bild wurde versendet __');
            
               }, 11000); 
            
               */
               }
                      
            
               timeout6 = setTimeout(function() {
            
                  sperre = false;
            
               }, 5000); //Zeit für Klingelsperre 1.Zeile
            
            
                // Bilder werden nach vis gespeichert
               timeout7 = setTimeout(function () {
            
                    const bild1 = fs.readFileSync('/tmp/max1.jpg');
            
                    writeFile('vis.0','/_temp/Max/Max1.jpg', bild1);
            
                    const bild2 = fs.readFileSync('/tmp/max2.jpg');
            
                    writeFile('vis.0','/_temp/Max/Max2.jpg', bild2);
            
                    const bild3 = fs.readFileSync('/tmp/max3.jpg');
            
                    writeFile('vis.0','/_temp/Max/Max3.jpg', bild3);
            
                    const bild4 = fs.readFileSync('/tmp/max4.jpg');
            
                    writeFile('vis.0','/_temp/Max/Max4.jpg', bild4);
            
               }, 20000); 
            
            });
            
            
            
            


            Edit :
            das {1} kommt durch das Importieren in den Forum Editor

            Synology 918+ 16GB - ioBroker in Docker v9 , VISO auf Trekstor Primebook C13 13,3" , Hikvision Domkameras mit Surveillance Station .. CCU RaspberryMatic in Synology VM .. Zigbee CC2538+CC2592 .. Sonoff .. KNX .. Modbus ..

            NegaleinN 2 Antworten Letzte Antwort
            1
            • GlasfaserG Glasfaser

              @Negalein
              Habe auch noch ein Fehler beseitigt ..

              const idklingel = ["doorbird.0.Doorbell.101.trigger"];
              
              var sperre = false;  //verhindert das doppeltes Drücken das Script stoppt
              
              var timeout1, timeout2, timeout3, timeout4, timeout5, timeout6, timeout7, timeout8, timeout9, timeout10, timeout11;
              
              var fs = require('fs');
              
              
              
              
              on({id: idklingel, change: "any"}, function (obj) {
              
               if(!sperre) {
              
                 sperre = true;
              
                 
              
                  // Speichert das erste Bild bei Klingeln
              
                 exec('wget --output-document /tmp/max1.jpg \'http://xxxxxx:xxxxxx@10.0.1.84/bha-api/image.cgi\'');
              
                 
                  // Nach dem ersten Bild wird nach 2000ms das nächste Bild gespeichert
                 timeout1 = setTimeout(function () {
              
                   exec('wget --output-document /tmp/max2.jpg \'http://xxxxxx:xxxxxx@10.0.1.84/bha-api/image.cgi\''); 
              
                 }, 2000);
              
                 
                  // Nach dem zweiten Bild wird nach 2000ms das nächste Bild gespeichert
                 timeout2 = setTimeout(function () {
              
                   exec('wget --output-document /tmp/max3.jpg \'http://xxxxxx:xxxxxx@10.0.1.84/bha-api/image.cgi\'');
              
                 }, 4000);
              
                
                  // Nach dem dritten Bild wird nach 2000ms das nächste Bild gespeichert
                 timeout3 = setTimeout(function () {
              
                   exec('wget --output-document /tmp/max4.jpg \'http://xxxxxx:xxxxxx@10.0.1.84/bha-api/image.cgi\'');
              
                 }, 6000);
              
                  /*
                  // Telegram versenden
                 timeout4 = setTimeout(function(){
              
                     sendTo('telegram.0', {text: '/tmp/max1.jpg', caption: 'Jemand klingelt an der Haustür !!!'});
              
                             //log ('__ Klingel-Bild wurde versendet __');
              
                 }, 10000); 
                 timeout5 = setTimeout(function(){
              
                     sendTo('telegram.0', {text: '/tmp/max2.jpg', caption: 'Jemand klingelt an der Haustür !!!'});
              
                             //log ('__ Klingel-Bild wurde versendet __');
              
                 }, 11000); 
              
                 */
                 }
                        
              
                 timeout6 = setTimeout(function() {
              
                    sperre = false;
              
                 }, 5000); //Zeit für Klingelsperre 1.Zeile
              
              
                  // Bilder werden nach vis gespeichert
                 timeout7 = setTimeout(function () {
              
                      const bild1 = fs.readFileSync('/tmp/max1.jpg');
              
                      writeFile('vis.0','/_temp/Max/Max1.jpg', bild1);
              
                      const bild2 = fs.readFileSync('/tmp/max2.jpg');
              
                      writeFile('vis.0','/_temp/Max/Max2.jpg', bild2);
              
                      const bild3 = fs.readFileSync('/tmp/max3.jpg');
              
                      writeFile('vis.0','/_temp/Max/Max3.jpg', bild3);
              
                      const bild4 = fs.readFileSync('/tmp/max4.jpg');
              
                      writeFile('vis.0','/_temp/Max/Max4.jpg', bild4);
              
                 }, 20000); 
              
              });
              
              
              
              


              Edit :
              das {1} kommt durch das Importieren in den Forum Editor

              NegaleinN Offline
              NegaleinN Offline
              Negalein
              Global Moderator
              schrieb am zuletzt editiert von
              #14

              @Glasfaser sagte in externes Bild in VIS:

              Habe auch noch ein Fehler beseitigt ..

              Danke, habs gleich neu angelegt.

              ° Node.js: 20.17.0 NPM: 10.8.2
              ° Proxmox, Ubuntu 22.04.3 LTS
              ° Fixer ---> iob fix

              1 Antwort Letzte Antwort
              0
              • GlasfaserG Glasfaser

                @Negalein
                Habe auch noch ein Fehler beseitigt ..

                const idklingel = ["doorbird.0.Doorbell.101.trigger"];
                
                var sperre = false;  //verhindert das doppeltes Drücken das Script stoppt
                
                var timeout1, timeout2, timeout3, timeout4, timeout5, timeout6, timeout7, timeout8, timeout9, timeout10, timeout11;
                
                var fs = require('fs');
                
                
                
                
                on({id: idklingel, change: "any"}, function (obj) {
                
                 if(!sperre) {
                
                   sperre = true;
                
                   
                
                    // Speichert das erste Bild bei Klingeln
                
                   exec('wget --output-document /tmp/max1.jpg \'http://xxxxxx:xxxxxx@10.0.1.84/bha-api/image.cgi\'');
                
                   
                    // Nach dem ersten Bild wird nach 2000ms das nächste Bild gespeichert
                   timeout1 = setTimeout(function () {
                
                     exec('wget --output-document /tmp/max2.jpg \'http://xxxxxx:xxxxxx@10.0.1.84/bha-api/image.cgi\''); 
                
                   }, 2000);
                
                   
                    // Nach dem zweiten Bild wird nach 2000ms das nächste Bild gespeichert
                   timeout2 = setTimeout(function () {
                
                     exec('wget --output-document /tmp/max3.jpg \'http://xxxxxx:xxxxxx@10.0.1.84/bha-api/image.cgi\'');
                
                   }, 4000);
                
                  
                    // Nach dem dritten Bild wird nach 2000ms das nächste Bild gespeichert
                   timeout3 = setTimeout(function () {
                
                     exec('wget --output-document /tmp/max4.jpg \'http://xxxxxx:xxxxxx@10.0.1.84/bha-api/image.cgi\'');
                
                   }, 6000);
                
                    /*
                    // Telegram versenden
                   timeout4 = setTimeout(function(){
                
                       sendTo('telegram.0', {text: '/tmp/max1.jpg', caption: 'Jemand klingelt an der Haustür !!!'});
                
                               //log ('__ Klingel-Bild wurde versendet __');
                
                   }, 10000); 
                   timeout5 = setTimeout(function(){
                
                       sendTo('telegram.0', {text: '/tmp/max2.jpg', caption: 'Jemand klingelt an der Haustür !!!'});
                
                               //log ('__ Klingel-Bild wurde versendet __');
                
                   }, 11000); 
                
                   */
                   }
                          
                
                   timeout6 = setTimeout(function() {
                
                      sperre = false;
                
                   }, 5000); //Zeit für Klingelsperre 1.Zeile
                
                
                    // Bilder werden nach vis gespeichert
                   timeout7 = setTimeout(function () {
                
                        const bild1 = fs.readFileSync('/tmp/max1.jpg');
                
                        writeFile('vis.0','/_temp/Max/Max1.jpg', bild1);
                
                        const bild2 = fs.readFileSync('/tmp/max2.jpg');
                
                        writeFile('vis.0','/_temp/Max/Max2.jpg', bild2);
                
                        const bild3 = fs.readFileSync('/tmp/max3.jpg');
                
                        writeFile('vis.0','/_temp/Max/Max3.jpg', bild3);
                
                        const bild4 = fs.readFileSync('/tmp/max4.jpg');
                
                        writeFile('vis.0','/_temp/Max/Max4.jpg', bild4);
                
                   }, 20000); 
                
                });
                
                
                
                


                Edit :
                das {1} kommt durch das Importieren in den Forum Editor

                NegaleinN Offline
                NegaleinN Offline
                Negalein
                Global Moderator
                schrieb am zuletzt editiert von
                #15

                @Glasfaser sagte in externes Bild in VIS:

                const bild4 = fs.readFileSync('/tmp/max4.jpg');
                

                dieser Ordner muss unter files angelegt werden?

                ° Node.js: 20.17.0 NPM: 10.8.2
                ° Proxmox, Ubuntu 22.04.3 LTS
                ° Fixer ---> iob fix

                GlasfaserG 2 Antworten Letzte Antwort
                0
                • NegaleinN Negalein

                  @Glasfaser sagte in externes Bild in VIS:

                  const bild4 = fs.readFileSync('/tmp/max4.jpg');
                  

                  dieser Ordner muss unter files angelegt werden?

                  GlasfaserG Offline
                  GlasfaserG Offline
                  Glasfaser
                  schrieb am zuletzt editiert von
                  #16

                  @Negalein

                  Nö ... wird alles automatisch angelegt

                  Synology 918+ 16GB - ioBroker in Docker v9 , VISO auf Trekstor Primebook C13 13,3" , Hikvision Domkameras mit Surveillance Station .. CCU RaspberryMatic in Synology VM .. Zigbee CC2538+CC2592 .. Sonoff .. KNX .. Modbus ..

                  1 Antwort Letzte Antwort
                  0
                  • NegaleinN Negalein

                    @Glasfaser sagte in externes Bild in VIS:

                    const bild4 = fs.readFileSync('/tmp/max4.jpg');
                    

                    dieser Ordner muss unter files angelegt werden?

                    GlasfaserG Offline
                    GlasfaserG Offline
                    Glasfaser
                    schrieb am zuletzt editiert von
                    #17

                    @Negalein

                    .... hier nur mit einem Klingelbild

                    const idklingel = ["doorbird.0.Doorbell.101.trigger"];
                    
                    var sperre = false;  //verhindert das doppeltes Drücken das Script stoppt
                    
                    var timeout1, timeout2, timeout3, timeout4, timeout5, timeout6, timeout7, timeout8, timeout9, timeout10, timeout11;
                    
                    var fs = require('fs');
                    
                    
                    on({id: idklingel, change: "any"}, function (obj) {
                    
                    
                    
                    if(!sperre) {
                    
                    
                    
                      sperre = true;
                    
                    
                       // Speichert das erste Bild bei Klingeln
                    
                    
                    
                      exec('wget --output-document /tmp/max1.jpg \'http://xxxxxx:xxxxxx@10.0.1.84/bha-api/image.cgi\'');
                    
                    
                       /*
                      
                    
                       // Nach dem ersten Bild wird nach 2000ms das nächste Bild gespeichert
                    
                      timeout1 = setTimeout(function () {
                    
                    
                    
                        exec('wget --output-document /tmp/max2.jpg \'http://xxxxxx:xxxxxx@10.0.1.84/bha-api/image.cgi\''); 
                    
                    
                    
                      }, 2000);
                    
                    
                    
                    
                       // Nach dem zweiten Bild wird nach 2000ms das nächste Bild gespeichert
                    
                      timeout2 = setTimeout(function () {
                    
                    
                    
                        exec('wget --output-document /tmp/max3.jpg \'http://xxxxxx:xxxxxx@10.0.1.84/bha-api/image.cgi\'');
                    
                    
                    
                      }, 4000);
                    
                    
                     
                    
                       // Nach dem dritten Bild wird nach 2000ms das nächste Bild gespeichert
                    
                      timeout3 = setTimeout(function () {
                    
                    
                    
                        exec('wget --output-document /tmp/max4.jpg \'http://xxxxxx:xxxxxx@10.0.1.84/bha-api/image.cgi\'');
                    
                    
                    
                      }, 6000);
                    
                    
                       
                    
                       // Telegram versenden
                    
                      timeout4 = setTimeout(function(){
                    
                    
                          sendTo('telegram.0', {text: '/tmp/max1.jpg', caption: 'Jemand klingelt an der Haustür !!!'});
                    
                    
                    
                                  //log ('__ Klingel-Bild wurde versendet __');
                    
                    
                    
                      }, 10000); 
                    
                      timeout5 = setTimeout(function(){
                    
                    
                    
                          sendTo('telegram.0', {text: '/tmp/max2.jpg', caption: 'Jemand klingelt an der Haustür !!!'});
                    
                    
                    
                                  //log ('__ Klingel-Bild wurde versendet __');
                    
                    
                    
                      }, 11000); 
                    
                    
                    
                      */
                    
                      }
                    
                             
                    
                    
                    
                      timeout6 = setTimeout(function() {
                    
                    
                    
                         sperre = false;
                    
                    
                    
                      }, 5000); //Zeit für Klingelsperre 1.Zeile
                    
                    
                    
                    
                    
                       // Bilder werden nach vis gespeichert
                    
                      timeout7 = setTimeout(function () {
                    
                    
                    
                           const bild1 = fs.readFileSync('/tmp/max1.jpg');
                    
                    
                           writeFile('vis.0','/_temp/Max/Max1.jpg', bild1);
                    
                        /*
                           const bild2 = fs.readFileSync('/tmp/max2.jpg');
                    
                       
                           writeFile('vis.0','/_temp/Max/Max2.jpg', bild2);
                    
                    
                           const bild3 = fs.readFileSync('/tmp/max3.jpg');
                    
                    
                           writeFile('vis.0','/_temp/Max/Max3.jpg', bild3);
                    
                    
                           const bild4 = fs.readFileSync('/tmp/max4.jpg');
                    
                    
                           writeFile('vis.0','/_temp/Max/Max4.jpg', bild4);
                    
                       */
                    
                      }, 20000); 
                    
                    
                    
                    });
                    

                    Synology 918+ 16GB - ioBroker in Docker v9 , VISO auf Trekstor Primebook C13 13,3" , Hikvision Domkameras mit Surveillance Station .. CCU RaspberryMatic in Synology VM .. Zigbee CC2538+CC2592 .. Sonoff .. KNX .. Modbus ..

                    NegaleinN 1 Antwort Letzte Antwort
                    0
                    • GlasfaserG Glasfaser

                      @Negalein

                      .... hier nur mit einem Klingelbild

                      const idklingel = ["doorbird.0.Doorbell.101.trigger"];
                      
                      var sperre = false;  //verhindert das doppeltes Drücken das Script stoppt
                      
                      var timeout1, timeout2, timeout3, timeout4, timeout5, timeout6, timeout7, timeout8, timeout9, timeout10, timeout11;
                      
                      var fs = require('fs');
                      
                      
                      on({id: idklingel, change: "any"}, function (obj) {
                      
                      
                      
                      if(!sperre) {
                      
                      
                      
                        sperre = true;
                      
                      
                         // Speichert das erste Bild bei Klingeln
                      
                      
                      
                        exec('wget --output-document /tmp/max1.jpg \'http://xxxxxx:xxxxxx@10.0.1.84/bha-api/image.cgi\'');
                      
                      
                         /*
                        
                      
                         // Nach dem ersten Bild wird nach 2000ms das nächste Bild gespeichert
                      
                        timeout1 = setTimeout(function () {
                      
                      
                      
                          exec('wget --output-document /tmp/max2.jpg \'http://xxxxxx:xxxxxx@10.0.1.84/bha-api/image.cgi\''); 
                      
                      
                      
                        }, 2000);
                      
                      
                      
                      
                         // Nach dem zweiten Bild wird nach 2000ms das nächste Bild gespeichert
                      
                        timeout2 = setTimeout(function () {
                      
                      
                      
                          exec('wget --output-document /tmp/max3.jpg \'http://xxxxxx:xxxxxx@10.0.1.84/bha-api/image.cgi\'');
                      
                      
                      
                        }, 4000);
                      
                      
                       
                      
                         // Nach dem dritten Bild wird nach 2000ms das nächste Bild gespeichert
                      
                        timeout3 = setTimeout(function () {
                      
                      
                      
                          exec('wget --output-document /tmp/max4.jpg \'http://xxxxxx:xxxxxx@10.0.1.84/bha-api/image.cgi\'');
                      
                      
                      
                        }, 6000);
                      
                      
                         
                      
                         // Telegram versenden
                      
                        timeout4 = setTimeout(function(){
                      
                      
                            sendTo('telegram.0', {text: '/tmp/max1.jpg', caption: 'Jemand klingelt an der Haustür !!!'});
                      
                      
                      
                                    //log ('__ Klingel-Bild wurde versendet __');
                      
                      
                      
                        }, 10000); 
                      
                        timeout5 = setTimeout(function(){
                      
                      
                      
                            sendTo('telegram.0', {text: '/tmp/max2.jpg', caption: 'Jemand klingelt an der Haustür !!!'});
                      
                      
                      
                                    //log ('__ Klingel-Bild wurde versendet __');
                      
                      
                      
                        }, 11000); 
                      
                      
                      
                        */
                      
                        }
                      
                               
                      
                      
                      
                        timeout6 = setTimeout(function() {
                      
                      
                      
                           sperre = false;
                      
                      
                      
                        }, 5000); //Zeit für Klingelsperre 1.Zeile
                      
                      
                      
                      
                      
                         // Bilder werden nach vis gespeichert
                      
                        timeout7 = setTimeout(function () {
                      
                      
                      
                             const bild1 = fs.readFileSync('/tmp/max1.jpg');
                      
                      
                             writeFile('vis.0','/_temp/Max/Max1.jpg', bild1);
                      
                          /*
                             const bild2 = fs.readFileSync('/tmp/max2.jpg');
                      
                         
                             writeFile('vis.0','/_temp/Max/Max2.jpg', bild2);
                      
                      
                             const bild3 = fs.readFileSync('/tmp/max3.jpg');
                      
                      
                             writeFile('vis.0','/_temp/Max/Max3.jpg', bild3);
                      
                      
                             const bild4 = fs.readFileSync('/tmp/max4.jpg');
                      
                      
                             writeFile('vis.0','/_temp/Max/Max4.jpg', bild4);
                      
                         */
                      
                        }, 20000); 
                      
                      
                      
                      });
                      

                      NegaleinN Offline
                      NegaleinN Offline
                      Negalein
                      Global Moderator
                      schrieb am zuletzt editiert von
                      #18

                      @Glasfaser sagte in externes Bild in VIS:

                      hier nur mit einem Klingelbild

                      Danke

                      Muss im anderen Thread nochmal schauen.
                      Ideal wäre es, wenn auch die letzten 3 oder 4 gespeichert bleiben um sie in VIS anzuzeigen.

                      ° Node.js: 20.17.0 NPM: 10.8.2
                      ° Proxmox, Ubuntu 22.04.3 LTS
                      ° Fixer ---> iob fix

                      GlasfaserG 1 Antwort Letzte Antwort
                      0
                      • NegaleinN Negalein

                        @Glasfaser sagte in externes Bild in VIS:

                        hier nur mit einem Klingelbild

                        Danke

                        Muss im anderen Thread nochmal schauen.
                        Ideal wäre es, wenn auch die letzten 3 oder 4 gespeichert bleiben um sie in VIS anzuzeigen.

                        GlasfaserG Offline
                        GlasfaserG Offline
                        Glasfaser
                        schrieb am zuletzt editiert von
                        #19

                        @Negalein sagte in externes Bild in VIS:

                        Ideal wäre es, wenn auch die letzten 3 oder 4 gespeichert

                        Das geht mit dem Script so nicht ,
                        da der Speichername vom Bild nicht Variabel/Zeitstempel gespeichert wird.

                        Synology 918+ 16GB - ioBroker in Docker v9 , VISO auf Trekstor Primebook C13 13,3" , Hikvision Domkameras mit Surveillance Station .. CCU RaspberryMatic in Synology VM .. Zigbee CC2538+CC2592 .. Sonoff .. KNX .. Modbus ..

                        NegaleinN 1 Antwort Letzte Antwort
                        0
                        • GlasfaserG Glasfaser

                          @Negalein sagte in externes Bild in VIS:

                          Ideal wäre es, wenn auch die letzten 3 oder 4 gespeichert

                          Das geht mit dem Script so nicht ,
                          da der Speichername vom Bild nicht Variabel/Zeitstempel gespeichert wird.

                          NegaleinN Offline
                          NegaleinN Offline
                          Negalein
                          Global Moderator
                          schrieb am zuletzt editiert von
                          #20

                          @Glasfaser sagte in externes Bild in VIS:

                          Das geht mit dem Script so nicht ,
                          da der Speichername vom Bild nicht Variabel/Zeitstempel gespeichert wird.

                          Ja, leider.

                          Vielleicht finde ich im anderen Thread noch eine Lösung.

                          ° Node.js: 20.17.0 NPM: 10.8.2
                          ° Proxmox, Ubuntu 22.04.3 LTS
                          ° Fixer ---> iob fix

                          1 Antwort Letzte Antwort
                          0
                          • Basti97B Offline
                            Basti97B Offline
                            Basti97
                            Most Active
                            schrieb am zuletzt editiert von
                            #21

                            Ich weiß nicht ob es hier her passt. Ich habe meine Kamerabild auch per Link in meine vis eingefügt. Nun habe ich das Problem das, dass Bild auf Firefox (Win10) funktioniert und angezeigt wird aber auf dem Smartphone (android) per Browser nicht.
                            Die Dateiendung des Links ist .cgi
                            Der vis Baustein nennt sich Basic Image.
                            Weiß jemand eine Lösung.
                            DAnke im vorraus.

                            Iobroker läuft als VM auf Proxmoxserver x folgende Hersteller im Einsatz Sonoff, Gosund, Siemens x Aofo über Tasmota x Zigbee x das Smarthome wächst und wächst

                            R 1 Antwort Letzte Antwort
                            0
                            • Basti97B Basti97

                              Ich weiß nicht ob es hier her passt. Ich habe meine Kamerabild auch per Link in meine vis eingefügt. Nun habe ich das Problem das, dass Bild auf Firefox (Win10) funktioniert und angezeigt wird aber auf dem Smartphone (android) per Browser nicht.
                              Die Dateiendung des Links ist .cgi
                              Der vis Baustein nennt sich Basic Image.
                              Weiß jemand eine Lösung.
                              DAnke im vorraus.

                              R Offline
                              R Offline
                              RandyAndy
                              schrieb am zuletzt editiert von RandyAndy
                              #22

                              @Basti97

                              das mit Kamerabildern ist so eine Sache und da kommt schnell auch die basic authentication hinzu das heutige browser nicht mehr wirklich unterstützen.
                              Ich habe mich da ewig mit gespielt und am Ende habe ich es so gemacht das ich mir in regelmäßigen Abständen ein File auf einer RAM-Disk abspeichere. Diese Datei rufe ich dann über einen Web-Server auf den ich auf dem RaspberryPi installiert habe (Anleitung gibt es zu Hauf im Internet).
                              Das funktioniert seit ca. 1 Jahr recht stabil und am Wichtigsten ist ich schreibe keine Daten auf die SD-Karte.

                              Andreas

                              Basti97B 1 Antwort Letzte Antwort
                              0
                              • R RandyAndy

                                @Basti97

                                das mit Kamerabildern ist so eine Sache und da kommt schnell auch die basic authentication hinzu das heutige browser nicht mehr wirklich unterstützen.
                                Ich habe mich da ewig mit gespielt und am Ende habe ich es so gemacht das ich mir in regelmäßigen Abständen ein File auf einer RAM-Disk abspeichere. Diese Datei rufe ich dann über einen Web-Server auf den ich auf dem RaspberryPi installiert habe (Anleitung gibt es zu Hauf im Internet).
                                Das funktioniert seit ca. 1 Jahr recht stabil und am Wichtigsten ist ich schreibe keine Daten auf die SD-Karte.

                                Andreas

                                Basti97B Offline
                                Basti97B Offline
                                Basti97
                                Most Active
                                schrieb am zuletzt editiert von
                                #23

                                @RandyAndy Danke für deinen Tipp ich probiere es mal. Das komische ist ja das Firefox es unterstützt aber die Mobilen Browser nicht mehr. Wenn gar nichts gegangen wäre hätte ich es ja verstanden aber so.

                                Iobroker läuft als VM auf Proxmoxserver x folgende Hersteller im Einsatz Sonoff, Gosund, Siemens x Aofo über Tasmota x Zigbee x das Smarthome wächst und wächst

                                1 Antwort Letzte Antwort
                                0
                                Antworten
                                • In einem neuen Thema antworten
                                Anmelden zum Antworten
                                • Älteste zuerst
                                • Neuste zuerst
                                • Meiste Stimmen


                                Support us

                                ioBroker
                                Community Adapters
                                Donate

                                553

                                Online

                                32.4k

                                Benutzer

                                81.6k

                                Themen

                                1.3m

                                Beiträge
                                Community
                                Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                ioBroker Community 2014-2025
                                logo
                                • Anmelden

                                • Du hast noch kein Konto? Registrieren

                                • Anmelden oder registrieren, um zu suchen
                                • Erster Beitrag
                                  Letzter Beitrag
                                0
                                • Home
                                • Aktuell
                                • Tags
                                • Ungelesen 0
                                • Kategorien
                                • Unreplied
                                • Beliebt
                                • GitHub
                                • Docu
                                • Hilfe