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. Skripten / Logik
  4. Bei Event ein Bild aktualisieren

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.6k

Bei Event ein Bild aktualisieren

Geplant Angeheftet Gesperrt Verschoben Skripten / Logik
blocklymultimediamonitoring
37 Beiträge 7 Kommentatoren 3.8k Aufrufe 8 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

    @haselchen

    Dann gib mal her ... aber im Spoiler setzen ...

    haselchenH Offline
    haselchenH Offline
    haselchen
    Most Active
    schrieb am zuletzt editiert von haselchen
    #28

    @Glasfaser

    var timeout, timeout1, timeout2;
    var fs = require('fs');
    
    
    on({id: 'hm-rpc.XXX.PRESS_SHORT', change: "any"}, function (obj) {
      var value = obj.state.val;
      var oldValue = obj.oldState.val;
      timeout = setTimeout(function () {
        exec('wget --output-document /opt/iobroker/Klingelbild/alarm.jpg \'http://192.XXX.XXX.XXX:XXX/picture/1/current/\'');
       }, 1000);
      timeout1 = setTimeout(function () {
       const bild = fs.readFileSync('/opt/iobroker/Klingelbild/alarm.jpg');
    	     writeFile('vis.0','alarm.jpg', bild);
       }, 1500);
      timeout2 = setTimeout(function () {
        sendTo("telegram.1", "send", {
            text: '/opt/iobroker/Klingelbild/alarm.jpg'
        });
      }, 5000);
      // ab hier so oft wiederholen wie man es möchte
    });
    

    Synology DS218+ & 2 x Fujitsu Esprimo (VM/Container) + FritzBox7590 + 2 AVM 3000 Repeater & Homematic & HUE & Osram & Xiaomi, NPM 10.9.4, Nodejs 22.21.0 ,JS Controller 7.0.7 ,Admin 7.7.19

    GlasfaserG 1 Antwort Letzte Antwort
    0
    • haselchenH haselchen

      @Glasfaser

      var timeout, timeout1, timeout2;
      var fs = require('fs');
      
      
      on({id: 'hm-rpc.XXX.PRESS_SHORT', change: "any"}, function (obj) {
        var value = obj.state.val;
        var oldValue = obj.oldState.val;
        timeout = setTimeout(function () {
          exec('wget --output-document /opt/iobroker/Klingelbild/alarm.jpg \'http://192.XXX.XXX.XXX:XXX/picture/1/current/\'');
         }, 1000);
        timeout1 = setTimeout(function () {
         const bild = fs.readFileSync('/opt/iobroker/Klingelbild/alarm.jpg');
      	     writeFile('vis.0','alarm.jpg', bild);
         }, 1500);
        timeout2 = setTimeout(function () {
          sendTo("telegram.1", "send", {
              text: '/opt/iobroker/Klingelbild/alarm.jpg'
          });
        }, 5000);
        // ab hier so oft wiederholen wie man es möchte
      });
      
      GlasfaserG Offline
      GlasfaserG Offline
      Glasfaser
      schrieb am zuletzt editiert von
      #29

      @haselchen

      Könntest du das noch in den " Code "setzen ;)

      1.JPG

      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 ..

      haselchenH 1 Antwort Letzte Antwort
      0
      • GlasfaserG Glasfaser

        @haselchen

        Könntest du das noch in den " Code "setzen ;)

        1.JPG

        haselchenH Offline
        haselchenH Offline
        haselchen
        Most Active
        schrieb am zuletzt editiert von
        #30

        @Glasfaser

        var timeout, timeout1, timeout2;
        var fs = require('fs');
        
        
        on({id: 'hm-rpc.XXX.PRESS_SHORT', change: "any"}, function (obj) {
          var value = obj.state.val;
          var oldValue = obj.oldState.val;
          timeout = setTimeout(function () {
            exec('wget --output-document /opt/iobroker/Klingelbild/alarm.jpg \'http://XXXX/picture/1/current/\'');
           }, 1000);
          timeout1 = setTimeout(function () {
           const bild = fs.readFileSync('/opt/iobroker/Klingelbild/alarm.jpg');
        	     writeFile('vis.0','alarm.jpg', bild);
           }, 1500);
          timeout2 = setTimeout(function () {
            sendTo("telegram.1", "send", {
                text: '/opt/iobroker/Klingelbild/alarm.jpg'
            });
          }, 5000);
          // ab hier so oft wiederholen wie man es möchte
        });
        

        Synology DS218+ & 2 x Fujitsu Esprimo (VM/Container) + FritzBox7590 + 2 AVM 3000 Repeater & Homematic & HUE & Osram & Xiaomi, NPM 10.9.4, Nodejs 22.21.0 ,JS Controller 7.0.7 ,Admin 7.7.19

        GlasfaserG 1 Antwort Letzte Antwort
        0
        • haselchenH haselchen

          @Glasfaser

          var timeout, timeout1, timeout2;
          var fs = require('fs');
          
          
          on({id: 'hm-rpc.XXX.PRESS_SHORT', change: "any"}, function (obj) {
            var value = obj.state.val;
            var oldValue = obj.oldState.val;
            timeout = setTimeout(function () {
              exec('wget --output-document /opt/iobroker/Klingelbild/alarm.jpg \'http://XXXX/picture/1/current/\'');
             }, 1000);
            timeout1 = setTimeout(function () {
             const bild = fs.readFileSync('/opt/iobroker/Klingelbild/alarm.jpg');
          	     writeFile('vis.0','alarm.jpg', bild);
             }, 1500);
            timeout2 = setTimeout(function () {
              sendTo("telegram.1", "send", {
                  text: '/opt/iobroker/Klingelbild/alarm.jpg'
              });
            }, 5000);
            // ab hier so oft wiederholen wie man es möchte
          });
          
          GlasfaserG Offline
          GlasfaserG Offline
          Glasfaser
          schrieb am zuletzt editiert von Glasfaser
          #31

          @haselchen

          Habe es geändert ... teste mal bitte

          var timeout, timeout1, timeout2;
          
          var fs = require('fs');
          
          
          
          
          
          on({id: 'javascript.0.Datenpunkt.DP1', change: "any"}, function (obj) {
          
           var value = obj.state.val;
          
           var oldValue = obj.oldState.val;
          
           timeout = setTimeout(function () {
          
             exec('wget --output-document /tmp/alarm.jpg \'http://xxxxxxxxxx@192.168.178.53/streaming/channels/101/picture\'');
          
            }, 1000);
          
           timeout1 = setTimeout(function () {
          
              const bild = fs.readFileSync('/tmp/alarm.jpg');
          
              writeFile('vis.0','alarm.jpg', bild);
          
            }, 1500);
          
           timeout2 = setTimeout(function () {
          
             sendTo("telegram.1", "send", {
          
                 text: '/tmp/alarm.jpg'
          
             });
          
           }, 5000);
          
           // ab hier so oft wiederholen wie man es möchte
          
          });
          

          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 ..

          haselchenH 1 Antwort Letzte Antwort
          0
          • GlasfaserG Glasfaser

            @haselchen

            Habe es geändert ... teste mal bitte

            var timeout, timeout1, timeout2;
            
            var fs = require('fs');
            
            
            
            
            
            on({id: 'javascript.0.Datenpunkt.DP1', change: "any"}, function (obj) {
            
             var value = obj.state.val;
            
             var oldValue = obj.oldState.val;
            
             timeout = setTimeout(function () {
            
               exec('wget --output-document /tmp/alarm.jpg \'http://xxxxxxxxxx@192.168.178.53/streaming/channels/101/picture\'');
            
              }, 1000);
            
             timeout1 = setTimeout(function () {
            
                const bild = fs.readFileSync('/tmp/alarm.jpg');
            
                writeFile('vis.0','alarm.jpg', bild);
            
              }, 1500);
            
             timeout2 = setTimeout(function () {
            
               sendTo("telegram.1", "send", {
            
                   text: '/tmp/alarm.jpg'
            
               });
            
             }, 5000);
            
             // ab hier so oft wiederholen wie man es möchte
            
            });
            

            haselchenH Offline
            haselchenH Offline
            haselchen
            Most Active
            schrieb am zuletzt editiert von
            #32

            @Glasfaser

            Nun kommt gar kein Bild mehr.
            Container neu gestartet
            Browser refreshed
            Alles probiert :(

            Synology DS218+ & 2 x Fujitsu Esprimo (VM/Container) + FritzBox7590 + 2 AVM 3000 Repeater & Homematic & HUE & Osram & Xiaomi, NPM 10.9.4, Nodejs 22.21.0 ,JS Controller 7.0.7 ,Admin 7.7.19

            GlasfaserG 1 Antwort Letzte Antwort
            0
            • haselchenH haselchen

              @Glasfaser

              Nun kommt gar kein Bild mehr.
              Container neu gestartet
              Browser refreshed
              Alles probiert :(

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

              @haselchen

              ???
              das Skript mit dem Einzelbild funktioniert bei mir .
              Habe nur den Speicherort geändert !

              Auch kein Telegram ?

              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 ..

              haselchenH 1 Antwort Letzte Antwort
              0
              • GlasfaserG Glasfaser

                @haselchen

                ???
                das Skript mit dem Einzelbild funktioniert bei mir .
                Habe nur den Speicherort geändert !

                Auch kein Telegram ?

                haselchenH Offline
                haselchenH Offline
                haselchen
                Most Active
                schrieb am zuletzt editiert von
                #34

                @Glasfaser

                Dein Script hat den letzten Denkanstoss gegeben :)
                Ich habe die Pfade anpassen müssen da ich docker benutze.
                Und die Timeouts. Jetzt passt es.
                Deine Idee mit dem TMP Ordner hat die Lösung gebracht.
                Danke!!!

                Synology DS218+ & 2 x Fujitsu Esprimo (VM/Container) + FritzBox7590 + 2 AVM 3000 Repeater & Homematic & HUE & Osram & Xiaomi, NPM 10.9.4, Nodejs 22.21.0 ,JS Controller 7.0.7 ,Admin 7.7.19

                GlasfaserG 1 Antwort Letzte Antwort
                0
                • haselchenH haselchen

                  @Glasfaser

                  Dein Script hat den letzten Denkanstoss gegeben :)
                  Ich habe die Pfade anpassen müssen da ich docker benutze.
                  Und die Timeouts. Jetzt passt es.
                  Deine Idee mit dem TMP Ordner hat die Lösung gebracht.
                  Danke!!!

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

                  @haselchen

                  Dann tausche noch die Sparlampe am Eingang gegen eine hellere Lampe … dann ist alles Perfekt ;) :sunglasses:

                  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 ..

                  haselchenH 1 Antwort Letzte Antwort
                  0
                  • GlasfaserG Glasfaser

                    @haselchen

                    Dann tausche noch die Sparlampe am Eingang gegen eine hellere Lampe … dann ist alles Perfekt ;) :sunglasses:

                    haselchenH Offline
                    haselchenH Offline
                    haselchen
                    Most Active
                    schrieb am zuletzt editiert von haselchen
                    #36

                    @Glasfaser

                    Hahahahahaha, der war gut :) :) :)
                    Ist nur so als Test gedacht. Ne 5 Euro TTGO Kamera aus China. Die hat auch keine IR Leds für Nachtsicht.
                    Wenn ich weiss wie das alles so technisch funktioniert kommt da ne Dome Camera hin.

                    Synology DS218+ & 2 x Fujitsu Esprimo (VM/Container) + FritzBox7590 + 2 AVM 3000 Repeater & Homematic & HUE & Osram & Xiaomi, NPM 10.9.4, Nodejs 22.21.0 ,JS Controller 7.0.7 ,Admin 7.7.19

                    GlasfaserG 1 Antwort Letzte Antwort
                    0
                    • haselchenH haselchen

                      @Glasfaser

                      Hahahahahaha, der war gut :) :) :)
                      Ist nur so als Test gedacht. Ne 5 Euro TTGO Kamera aus China. Die hat auch keine IR Leds für Nachtsicht.
                      Wenn ich weiss wie das alles so technisch funktioniert kommt da ne Dome Camera hin.

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

                      @haselchen

                      Ok …. dann Bau die Kamera im Sommer auf dein Mähroboter :joy:

                      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
                      1
                      Antworten
                      • In einem neuen Thema antworten
                      Anmelden zum Antworten
                      • Älteste zuerst
                      • Neuste zuerst
                      • Meiste Stimmen


                      Support us

                      ioBroker
                      Community Adapters
                      Donate

                      341

                      Online

                      32.5k

                      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