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.
  • haselchenH haselchen

    @Glasfaser

    [{"tpl":"tplImage","data":{"g_fixed":true,"g_visibility":false,"g_css_font_text":false,"g_css_background":false,"g_css_shadow_padding":false,"g_css_border":false,"g_gestures":false,"g_signals":false,"g_last_change":true,"refreshInterval":"10000","signals-cond-0":"==","signals-val-0":true,"signals-icon-0":"/vis/signals/lowbattery.png","signals-icon-size-0":0,"signals-blink-0":false,"signals-horz-0":0,"signals-vert-0":0,"signals-hide-edit-0":false,"signals-cond-1":"==","signals-val-1":true,"signals-icon-1":"/vis/signals/lowbattery.png","signals-icon-size-1":0,"signals-blink-1":false,"signals-horz-1":0,"signals-vert-1":0,"signals-hide-edit-1":false,"signals-cond-2":"==","signals-val-2":true,"signals-icon-2":"/vis/signals/lowbattery.png","signals-icon-size-2":0,"signals-blink-2":false,"signals-horz-2":0,"signals-vert-2":0,"signals-hide-edit-2":false,"src":"/vis.0/alarm1.jpg","refreshOnViewChange":true,"stretch":true,"refreshOnWakeUp":true,"visibility-cond":"==","visibility-val":1,"visibility-groups-action":"hide","lc-type":"timestamp","lc-is-interval":false,"lc-is-moment":false,"lc-format":"DD.MM.YYYY hh:mm:ss","lc-position-vert":"top","lc-position-horz":"right","lc-offset-vert":"-23","lc-offset-horz":"-125","lc-font-size":"12px","lc-font-family":"","lc-font-style":"","lc-bkg-color":"transparent","lc-color":"white","lc-border-width":"0","lc-border-style":"","lc-border-color":"","lc-border-radius":10,"lc-zindex":0,"lc-oid":"hm-rpc.1.001498A9987394.1.PRESS_SHORT","refreshWithNoQuery":false},"style":{"left":"4px","top":"303px","width":"309px","height":"228px","z-index":"5"},"widgetSet":"basic"}]
    
    GlasfaserG Offline
    GlasfaserG Offline
    Glasfaser
    schrieb am zuletzt editiert von Glasfaser
    #25

    @haselchen

    Funktioniert , auch mit Zeitstempel ..... habe es in meinen VIS gelegt wo auch die anderen Bilder sind .

    Habe höchstens den Haken bei " Strecken " rausgeholt " sah ein bischen komisch aus :)

    EDIT : Bild entfernt ....

    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

      Funktioniert , auch mit Zeitstempel ..... habe es in meinen VIS gelegt wo auch die anderen Bilder sind .

      Habe höchstens den Haken bei " Strecken " rausgeholt " sah ein bischen komisch aus :)

      EDIT : Bild entfernt ....

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

      @Glasfaser

      Magst du dann mal über das Skript gucken?

      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

        Magst du dann mal über das Skript gucken?

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

        @haselchen

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

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

                            759

                            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