Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • 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

  • Default (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Tester
  4. Puppeteer: Screenshots PhantomJS Alternative

NEWS

  • Monatsrückblick Januar/Februar 2026 ist online!
    BluefoxB
    Bluefox
    12
    1
    132

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    17
    1
    4.3k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    1.2k

Puppeteer: Screenshots PhantomJS Alternative

Scheduled Pinned Locked Moved Tester
screenshotsheadlessbrowserpuppeteerphantomjsscreenshotwebsite
247 Posts 24 Posters 48.1k Views 18 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • NegaleinN Negalein

    @foxriver76 sagte in Puppeteer: Screenshots PhantomJS Alternative:

    das sollte mit den Clip Optionen gehen.

    muss das später in Ruhe testen.
    Umso mehr ich mit Clip probiere, umso komischer wird es.

    So wie oben (trotz identen Settings) bekomm ich es nicht mehr hin.

    wetterstation.png

    foxriver76F Offline
    foxriver76F Offline
    foxriver76
    Developer
    wrote on last edited by
    #74

    @negalein Gerne die exakten Settings posten, falls du noch daran hängst.

    Videotutorials & mehr

    Hier könnt ihr mich unterstützen.

    NegaleinN 1 Reply Last reply
    0
    • foxriver76F foxriver76

      @negalein Gerne die exakten Settings posten, falls du noch daran hängst.

      NegaleinN Offline
      NegaleinN Offline
      Negalein
      Global Moderator
      wrote on last edited by Negalein
      #75

      @foxriver76 sagte in Puppeteer: Screenshots PhantomJS Alternative:

      Gerne die exakten Settings posten, falls du noch daran hängst.

      Merci

      Hier ein paar Beispiele.
      Original schaut es so aus:
      a0fd5a76-40fc-420a-845d-6b71f07218b9-image.png

      So wie hier (paar Beiträge weiter oben) schaff ich es nicht mehr.
      Das war mit exakt dem Code aus "Test 2", das jetzt allerdings anders erstellt wird (siehe Test 2).
      1660304833935-wetterstation.png

      sendTo('puppeteer.0', 'screenshot', { 
          url: 'http://10.0.1.203:3000/d/14q2Khmnz/wetterstation-copy?orgId=1&refresh=1m&kiosk',
          clip: {
              x: 0,
              y: 0,
              width: 1920,
              height: 757
          },
          ioBrokerOptions: {
              storagePath: 'wetterstation.png',
            },
          viewportOptions: {
       width: 1200,
      height: 800
      }
      });
      

      wetterstation.png

      sendTo('puppeteer.0', 'screenshot', { 
          url: 'http://10.0.1.203:3000/d/14q2Khmnz/wetterstation-copy?orgId=1&refresh=1m&kiosk',
          clip: {
              x: 0,
              y: 0,
              width: 1920,
              height: 757
          },
          ioBrokerOptions: {
              storagePath: 'wetterstation.png',
            },
          viewportOptions: {
       width: 1600,
      height: 1000
      }
      });
      

      wetterstation.png

      sendTo('puppeteer.0', 'screenshot', { 
          url: 'http://10.0.1.203:3000/d/14q2Khmnz/wetterstation-copy?orgId=1&refresh=1m&kiosk',
          clip: {
              x: 0,
              y: 0,
              width: 1920,
              height: 757
          },
          ioBrokerOptions: {
              storagePath: 'wetterstation.png',
            },
          viewportOptions: {
       width: 1800,
      height: 1000
      }
      });
      

      wetterstation.png

      sendTo('puppeteer.0', 'screenshot', { 
          url: 'http://10.0.1.203:3000/d/14q2Khmnz/wetterstation-copy?orgId=1&refresh=1m&kiosk',
          clip: {
              x: 0,
              y: 0,
              width: 1000,
              height: 757
          },
          ioBrokerOptions: {
              storagePath: 'wetterstation.png',
            },
          viewportOptions: {
       width: 1600,
      height: 1000
      }
      });
      

      wetterstation.png

      ° Node.js & System Update ---> sudo apt update, iob stop, sudo apt full-upgrade
      ° Node.js Fixer ---> iob nodejs-update
      ° Fixer ---> iob fix

      foxriver76F 1 Reply Last reply
      0
      • NegaleinN Negalein

        @foxriver76 sagte in Puppeteer: Screenshots PhantomJS Alternative:

        Gerne die exakten Settings posten, falls du noch daran hängst.

        Merci

        Hier ein paar Beispiele.
        Original schaut es so aus:
        a0fd5a76-40fc-420a-845d-6b71f07218b9-image.png

        So wie hier (paar Beiträge weiter oben) schaff ich es nicht mehr.
        Das war mit exakt dem Code aus "Test 2", das jetzt allerdings anders erstellt wird (siehe Test 2).
        1660304833935-wetterstation.png

        sendTo('puppeteer.0', 'screenshot', { 
            url: 'http://10.0.1.203:3000/d/14q2Khmnz/wetterstation-copy?orgId=1&refresh=1m&kiosk',
            clip: {
                x: 0,
                y: 0,
                width: 1920,
                height: 757
            },
            ioBrokerOptions: {
                storagePath: 'wetterstation.png',
              },
            viewportOptions: {
         width: 1200,
        height: 800
        }
        });
        

        wetterstation.png

        sendTo('puppeteer.0', 'screenshot', { 
            url: 'http://10.0.1.203:3000/d/14q2Khmnz/wetterstation-copy?orgId=1&refresh=1m&kiosk',
            clip: {
                x: 0,
                y: 0,
                width: 1920,
                height: 757
            },
            ioBrokerOptions: {
                storagePath: 'wetterstation.png',
              },
            viewportOptions: {
         width: 1600,
        height: 1000
        }
        });
        

        wetterstation.png

        sendTo('puppeteer.0', 'screenshot', { 
            url: 'http://10.0.1.203:3000/d/14q2Khmnz/wetterstation-copy?orgId=1&refresh=1m&kiosk',
            clip: {
                x: 0,
                y: 0,
                width: 1920,
                height: 757
            },
            ioBrokerOptions: {
                storagePath: 'wetterstation.png',
              },
            viewportOptions: {
         width: 1800,
        height: 1000
        }
        });
        

        wetterstation.png

        sendTo('puppeteer.0', 'screenshot', { 
            url: 'http://10.0.1.203:3000/d/14q2Khmnz/wetterstation-copy?orgId=1&refresh=1m&kiosk',
            clip: {
                x: 0,
                y: 0,
                width: 1000,
                height: 757
            },
            ioBrokerOptions: {
                storagePath: 'wetterstation.png',
              },
            viewportOptions: {
         width: 1600,
        height: 1000
        }
        });
        

        wetterstation.png

        foxriver76F Offline
        foxriver76F Offline
        foxriver76
        Developer
        wrote on last edited by foxriver76
        #76

        @negalein sagte in Puppeteer: Screenshots PhantomJS Alternative:

        sendTo('puppeteer.0', 'screenshot', {

        Ah ich mache gleich eine neue Version. Ich vermute es ist schlauer den Viewport im Code zu ändern, bevor man die Seite lädt, manche Seiten kommen nicht klar wenn man die Auflösung später ändert.

        Bitte 0.2.5 probieren.

        Videotutorials & mehr

        Hier könnt ihr mich unterstützen.

        NegaleinN 1 Reply Last reply
        0
        • foxriver76F foxriver76

          @negalein sagte in Puppeteer: Screenshots PhantomJS Alternative:

          sendTo('puppeteer.0', 'screenshot', {

          Ah ich mache gleich eine neue Version. Ich vermute es ist schlauer den Viewport im Code zu ändern, bevor man die Seite lädt, manche Seiten kommen nicht klar wenn man die Auflösung später ändert.

          Bitte 0.2.5 probieren.

          NegaleinN Offline
          NegaleinN Offline
          Negalein
          Global Moderator
          wrote on last edited by
          #77

          @foxriver76 sagte in Puppeteer: Screenshots PhantomJS Alternative:

          Bitte 0.2.5 probieren.

          Perfekt! :)

          Schaut jetzt sehr gut aus.
          Merci

          sendTo('puppeteer.0', 'screenshot', { 
              url: 'http://10.0.1.203:3000/d/14q2Khmnz/wetterstation-copy?orgId=1&refresh=1m&kiosk',
              clip: {
                  x: 0,
                  y: 0,
                  width: 1000,
                  height: 757
              },
              ioBrokerOptions: {
                  storagePath: 'wetterstation.png',
                },
              viewportOptions: {
           width: 1600,
          height: 1000
          }
          });
          

          wetterstation.png

          ° Node.js & System Update ---> sudo apt update, iob stop, sudo apt full-upgrade
          ° Node.js Fixer ---> iob nodejs-update
          ° Fixer ---> iob fix

          foxriver76F 1 Reply Last reply
          0
          • NegaleinN Negalein

            @foxriver76 sagte in Puppeteer: Screenshots PhantomJS Alternative:

            Bitte 0.2.5 probieren.

            Perfekt! :)

            Schaut jetzt sehr gut aus.
            Merci

            sendTo('puppeteer.0', 'screenshot', { 
                url: 'http://10.0.1.203:3000/d/14q2Khmnz/wetterstation-copy?orgId=1&refresh=1m&kiosk',
                clip: {
                    x: 0,
                    y: 0,
                    width: 1000,
                    height: 757
                },
                ioBrokerOptions: {
                    storagePath: 'wetterstation.png',
                  },
                viewportOptions: {
             width: 1600,
            height: 1000
            }
            });
            

            wetterstation.png

            foxriver76F Offline
            foxriver76F Offline
            foxriver76
            Developer
            wrote on last edited by
            #78

            @negalein Perfekt, freut mich, dass wir den Adapter verbessern konnten. ;-)

            Videotutorials & mehr

            Hier könnt ihr mich unterstützen.

            NegaleinN 2 Replies Last reply
            1
            • foxriver76F foxriver76

              @negalein Perfekt, freut mich, dass wir den Adapter verbessern konnten. ;-)

              NegaleinN Offline
              NegaleinN Offline
              Negalein
              Global Moderator
              wrote on last edited by
              #79

              @foxriver76 sagte in Puppeteer: Screenshots PhantomJS Alternative:

              Perfekt, freut mich, dass wir den Adapter verbessern konnten.

              Ja, freut mich auch.
              Jetzt kommt der Langzeittest.
              Phantomjs hat mir den ioB gekillt. Wurde immer träger, bis zum Absturz.

              PS: schnell eine Website erstellt (nicht aufs Desigh achten :joy: ) http://wetter.nega.at/

              ° Node.js & System Update ---> sudo apt update, iob stop, sudo apt full-upgrade
              ° Node.js Fixer ---> iob nodejs-update
              ° Fixer ---> iob fix

              1 Reply Last reply
              0
              • foxriver76F foxriver76

                @negalein Perfekt, freut mich, dass wir den Adapter verbessern konnten. ;-)

                NegaleinN Offline
                NegaleinN Offline
                Negalein
                Global Moderator
                wrote on last edited by
                #80

                @foxriver76

                PS: kannst du mir da mit einem Timeout oder so helfen?

                Es passiert oft, dass er schneller mit dem FTP anfängt, ehe er die Datei schreibt.
                Was muss ich machen, damit er mit dem FTP erst 5 Sek. später anfängt?

                schedule("*/3 * * * *", function () {
                sendTo('puppeteer.0', 'screenshot', { 
                    url: 'http://10.0.1.203:3000/d/14q2Khmnz/wetterstation-copy?orgId=1&refresh=1m&kiosk',
                    clip: {
                        x: 0,
                        y: 0,
                        width: 1000,
                        height: 757
                    },
                    ioBrokerOptions: {
                        storagePath: 'wetterstation.png',
                      },
                    viewportOptions: {
                 width: 1600,
                height: 1000
                }
                });
                  exec('wput -nc /opt/iobroker/iobroker-data/files/0_userdata.0/wetterstation.png ftp://xxxxxx:xxxxxx@www37.world4you.com');
                  console.log("exec: " + 'wput -nc /opt/iobroker/iobroker-data/files/0_userdata.0/wetterstation.png ftp://xxxxxx:xxxxxx@www37.world4you.com');
                });
                
                

                ° Node.js & System Update ---> sudo apt update, iob stop, sudo apt full-upgrade
                ° Node.js Fixer ---> iob nodejs-update
                ° Fixer ---> iob fix

                foxriver76F 1 Reply Last reply
                0
                • NegaleinN Negalein

                  @foxriver76

                  PS: kannst du mir da mit einem Timeout oder so helfen?

                  Es passiert oft, dass er schneller mit dem FTP anfängt, ehe er die Datei schreibt.
                  Was muss ich machen, damit er mit dem FTP erst 5 Sek. später anfängt?

                  schedule("*/3 * * * *", function () {
                  sendTo('puppeteer.0', 'screenshot', { 
                      url: 'http://10.0.1.203:3000/d/14q2Khmnz/wetterstation-copy?orgId=1&refresh=1m&kiosk',
                      clip: {
                          x: 0,
                          y: 0,
                          width: 1000,
                          height: 757
                      },
                      ioBrokerOptions: {
                          storagePath: 'wetterstation.png',
                        },
                      viewportOptions: {
                   width: 1600,
                  height: 1000
                  }
                  });
                    exec('wput -nc /opt/iobroker/iobroker-data/files/0_userdata.0/wetterstation.png ftp://xxxxxx:xxxxxx@www37.world4you.com');
                    console.log("exec: " + 'wput -nc /opt/iobroker/iobroker-data/files/0_userdata.0/wetterstation.png ftp://xxxxxx:xxxxxx@www37.world4you.com');
                  });
                  
                  
                  foxriver76F Offline
                  foxriver76F Offline
                  foxriver76
                  Developer
                  wrote on last edited by
                  #81

                  @negalein sagte in Puppeteer: Screenshots PhantomJS Alternative:

                  @foxriver76

                  PS: kannst du mir da mit einem Timeout oder so helfen?

                  Es passiert oft, dass er schneller mit dem FTP anfängt, ehe er die Datei schreibt.
                  Was muss ich machen, damit er mit dem FTP erst 5 Sek. später anfängt?

                  schedule("*/3 * * * *", function () {
                  sendTo('puppeteer.0', 'screenshot', { 
                      url: 'http://10.0.1.203:3000/d/14q2Khmnz/wetterstation-copy?orgId=1&refresh=1m&kiosk',
                      clip: {
                          x: 0,
                          y: 0,
                          width: 1000,
                          height: 757
                      },
                      ioBrokerOptions: {
                          storagePath: 'wetterstation.png',
                        },
                      viewportOptions: {
                   width: 1600,
                  height: 1000
                  }
                  }, () =>
                    exec('wput -nc /opt/iobroker/iobroker-data/files/0_userdata.0/wetterstation.png ftp://xxxxxx:xxxxxx@www37.world4you.com');
                    console.log("exec: " + 'wput -nc /opt/iobroker/iobroker-data/files/0_userdata.0/wetterstation.png ftp://xxxxxx:xxxxxx@www37.world4you.com');
                  });
                  });
                  

                  Sorry nur Handy, habe es leicht abgeändert dass es erst im callback passiert, dann sollte er es vorher geschrieben haben.

                  Videotutorials & mehr

                  Hier könnt ihr mich unterstützen.

                  NegaleinN 1 Reply Last reply
                  0
                  • foxriver76F foxriver76

                    @negalein sagte in Puppeteer: Screenshots PhantomJS Alternative:

                    @foxriver76

                    PS: kannst du mir da mit einem Timeout oder so helfen?

                    Es passiert oft, dass er schneller mit dem FTP anfängt, ehe er die Datei schreibt.
                    Was muss ich machen, damit er mit dem FTP erst 5 Sek. später anfängt?

                    schedule("*/3 * * * *", function () {
                    sendTo('puppeteer.0', 'screenshot', { 
                        url: 'http://10.0.1.203:3000/d/14q2Khmnz/wetterstation-copy?orgId=1&refresh=1m&kiosk',
                        clip: {
                            x: 0,
                            y: 0,
                            width: 1000,
                            height: 757
                        },
                        ioBrokerOptions: {
                            storagePath: 'wetterstation.png',
                          },
                        viewportOptions: {
                     width: 1600,
                    height: 1000
                    }
                    }, () =>
                      exec('wput -nc /opt/iobroker/iobroker-data/files/0_userdata.0/wetterstation.png ftp://xxxxxx:xxxxxx@www37.world4you.com');
                      console.log("exec: " + 'wput -nc /opt/iobroker/iobroker-data/files/0_userdata.0/wetterstation.png ftp://xxxxxx:xxxxxx@www37.world4you.com');
                    });
                    });
                    

                    Sorry nur Handy, habe es leicht abgeändert dass es erst im callback passiert, dann sollte er es vorher geschrieben haben.

                    NegaleinN Offline
                    NegaleinN Offline
                    Negalein
                    Global Moderator
                    wrote on last edited by
                    #82

                    @foxriver76 sagte in Puppeteer: Screenshots PhantomJS Alternative:

                    habe es leicht abgeändert dass es erst im callback passiert, dann sollte er es vorher geschrieben haben.

                    da bekomm ich javascript.0 (564) script.js.Wetter.Wetter_to_FTP compile failed: at script.js.Wetter.Wetter_to_FTP:18

                    ° Node.js & System Update ---> sudo apt update, iob stop, sudo apt full-upgrade
                    ° Node.js Fixer ---> iob nodejs-update
                    ° Fixer ---> iob fix

                    foxriver76F 1 Reply Last reply
                    0
                    • NegaleinN Negalein

                      @foxriver76 sagte in Puppeteer: Screenshots PhantomJS Alternative:

                      habe es leicht abgeändert dass es erst im callback passiert, dann sollte er es vorher geschrieben haben.

                      da bekomm ich javascript.0 (564) script.js.Wetter.Wetter_to_FTP compile failed: at script.js.Wetter.Wetter_to_FTP:18

                      foxriver76F Offline
                      foxriver76F Offline
                      foxriver76
                      Developer
                      wrote on last edited by
                      #83

                      @negalein Vom Rechner:

                      schedule("*/3 * * * *", () => {
                        sendTo("puppeteer.0", "screenshot", {
                          url: "http://10.0.1.203:3000/d/14q2Khmnz/wetterstation-copy?orgId=1&refresh=1m&kiosk",
                          clip: {
                            x: 0,
                            y: 0,
                            width: 1000,
                            height: 757
                          },
                          ioBrokerOptions: {
                            storagePath: "wetterstation.png"
                          },
                          viewportOptions: {
                            width: 1600,
                            height: 1000
                          }
                        }, () => {
                          exec("wput -nc /opt/iobroker/iobroker-data/files/0_userdata.0/wetterstation.png ftp://xxxxxx:xxxxxx@www37.world4you.com");
                          console.log("exec: " + "wput -nc /opt/iobroker/iobroker-data/files/0_userdata.0/wetterstation.png ftp://xxxxxx:xxxxxx@www37.world4you.com");
                        });
                      });
                      

                      Videotutorials & mehr

                      Hier könnt ihr mich unterstützen.

                      NegaleinN 1 Reply Last reply
                      0
                      • foxriver76F foxriver76

                        @negalein Vom Rechner:

                        schedule("*/3 * * * *", () => {
                          sendTo("puppeteer.0", "screenshot", {
                            url: "http://10.0.1.203:3000/d/14q2Khmnz/wetterstation-copy?orgId=1&refresh=1m&kiosk",
                            clip: {
                              x: 0,
                              y: 0,
                              width: 1000,
                              height: 757
                            },
                            ioBrokerOptions: {
                              storagePath: "wetterstation.png"
                            },
                            viewportOptions: {
                              width: 1600,
                              height: 1000
                            }
                          }, () => {
                            exec("wput -nc /opt/iobroker/iobroker-data/files/0_userdata.0/wetterstation.png ftp://xxxxxx:xxxxxx@www37.world4you.com");
                            console.log("exec: " + "wput -nc /opt/iobroker/iobroker-data/files/0_userdata.0/wetterstation.png ftp://xxxxxx:xxxxxx@www37.world4you.com");
                          });
                        });
                        
                        NegaleinN Offline
                        NegaleinN Offline
                        Negalein
                        Global Moderator
                        wrote on last edited by
                        #84

                        @foxriver76 sagte in Puppeteer: Screenshots PhantomJS Alternative:

                        Vom Rechner:

                        fuck, ioB geht in die Knie :(

                        06a90534-265d-4d35-a311-ebd55c3fa775-image.png

                        ° Node.js & System Update ---> sudo apt update, iob stop, sudo apt full-upgrade
                        ° Node.js Fixer ---> iob nodejs-update
                        ° Fixer ---> iob fix

                        foxriver76F 1 Reply Last reply
                        0
                        • NegaleinN Negalein

                          @foxriver76 sagte in Puppeteer: Screenshots PhantomJS Alternative:

                          Vom Rechner:

                          fuck, ioB geht in die Knie :(

                          06a90534-265d-4d35-a311-ebd55c3fa775-image.png

                          foxriver76F Offline
                          foxriver76F Offline
                          foxriver76
                          Developer
                          wrote on last edited by
                          #85

                          @negalein Pack mal bisschen Log rein, evtl so und dann zeig mal das Log:

                          schedule('*/3 * * * *', () => {
                              sendTo('puppeteer.0', 'screenshot', {
                                  url: 'http://10.0.1.203:3000/d/14q2Khmnz/wetterstation-copy?orgId=1&refresh=1m&kiosk',
                                  clip: {
                                      x: 0,
                                      y: 0,
                                      width: 1000,
                                      height: 757
                                  },
                                  ioBrokerOptions: {
                                      storagePath: 'wetterstation.png'
                                  },
                                  viewportOptions: {
                                      width: 1600,
                                      height: 1000
                                  }
                              }, obj => {
                                  if (obj.error) {
                                      log(`Error taking screenshot: ${obj.error}`, 'error');
                                      return;
                                  }
                          
                                  log(`exec: wput -nc /opt/iobroker/iobroker-data/files/0_userdata.0/wetterstation.png ftp://xxxxxx:xxxxxx@www37.world4you.com`, 'info');
                                  exec('wput -nc /opt/iobroker/iobroker-data/files/0_userdata.0/wetterstation.png ftp://xxxxxx:xxxxxx@www37.world4you.com', (error, stdout, stderr) => {
                                      if (error) {
                                          log(`Error on upload: ${stderr}` || error, 'error');
                                      } else {
                                          log(`Upload finished: ${stdout}`, 'info');
                                      }
                                  });
                              });
                          });
                          

                          Videotutorials & mehr

                          Hier könnt ihr mich unterstützen.

                          foxriver76F 1 Reply Last reply
                          0
                          • foxriver76F Offline
                            foxriver76F Offline
                            foxriver76
                            Developer
                            wrote on last edited by
                            #86

                            @Negalein und upgrade bitte auf 0.2.6. Es wurde vergessen Pages zu schließen, wenn über Messages Screenshots getriggered werden., wobei ich mir nicht vorstellen kann, dass das so schnell zu einem Anstieg kommt.

                            Videotutorials & mehr

                            Hier könnt ihr mich unterstützen.

                            NegaleinN 1 Reply Last reply
                            0
                            • foxriver76F foxriver76

                              @Negalein und upgrade bitte auf 0.2.6. Es wurde vergessen Pages zu schließen, wenn über Messages Screenshots getriggered werden., wobei ich mir nicht vorstellen kann, dass das so schnell zu einem Anstieg kommt.

                              NegaleinN Offline
                              NegaleinN Offline
                              Negalein
                              Global Moderator
                              wrote on last edited by
                              #87

                              @foxriver76 sagte in Puppeteer: Screenshots PhantomJS Alternative:

                              und upgrade bitte auf 0.2.6. Es wurde vergessen Pages zu schließen, wenn über Messages Screenshots getriggered werden., wobei ich mir nicht vorstellen kann, dass das so schnell zu einem Anstieg kommt.

                              läuft seit ca. 1,5 Stunden stabil :)

                              ° Node.js & System Update ---> sudo apt update, iob stop, sudo apt full-upgrade
                              ° Node.js Fixer ---> iob nodejs-update
                              ° Fixer ---> iob fix

                              1 Reply Last reply
                              0
                              • NegaleinN Offline
                                NegaleinN Offline
                                Negalein
                                Global Moderator
                                wrote on last edited by Negalein
                                #88

                                @foxriver76

                                Adapter läuft noch immer stabil! :grin:

                                Aber im Log kommt oft ein FTP Error.

                                Könnt ich den Upload noch verfeinern? Du kennst dich da sicher besser aus! :)

                                javascript.0 2022-08-16 22:36:03.118	error	script.js.Wetter.Wetter_to_FTP: Error on upload:
                                javascript.0 2022-08-16 22:36:02.900	info	script.js.Wetter.Wetter_to_FTP: exec: wput -nc /opt/iobroker/iobroker-data/files/0_userdata.0/wetterstation.png ftp://xxxxx:xxxxx@www37.world4you.com
                                puppeteer.0 2022-08-16 22:36:02.819	debug	Write file to "wetterstation.png"
                                puppeteer.0 2022-08-16 22:36:02.555	debug	Write file to "wetterstation.png"
                                puppeteer.0 2022-08-16 22:36:00.383	debug	Message: {"command":"screenshot","message":{"url":"http://10.0.1.203:3000/d/14q2Khmnz/wetterstation-copy?orgId=1&refresh=1m&kiosk","clip":{"x":0,"y":0,"width":1000,"height":757},"ioBrokerOptions":{"storagePath":"wetterstation.png"},"viewportOptions":{"width":1600,"height":1000}},"from":"system.adapter.javascript.0","callback":{"message":{"url":"http://10.0.1.203:3000/d/14q2Khmnz/wetterstation-copy?orgId=1&refresh=1m&kiosk","clip":{"x":0,"y":0,"width":1000,"height":757},"ioBrokerOptions":{"storagePath":"wetterstation.png"},"viewportOptions":{"width":1600,"height":1000}},"id":5799,"ack":false,"time":1660682160267},"_id":27657967}
                                

                                Schaut dann oft so aus
                                e058ce34-619d-48d7-adb2-903cde0dc96a-image.png
                                db0efca4-a06c-48d1-afc5-e8ec3fa943ac-image.png

                                ° Node.js & System Update ---> sudo apt update, iob stop, sudo apt full-upgrade
                                ° Node.js Fixer ---> iob nodejs-update
                                ° Fixer ---> iob fix

                                1 Reply Last reply
                                0
                                • foxriver76F foxriver76

                                  @negalein Pack mal bisschen Log rein, evtl so und dann zeig mal das Log:

                                  schedule('*/3 * * * *', () => {
                                      sendTo('puppeteer.0', 'screenshot', {
                                          url: 'http://10.0.1.203:3000/d/14q2Khmnz/wetterstation-copy?orgId=1&refresh=1m&kiosk',
                                          clip: {
                                              x: 0,
                                              y: 0,
                                              width: 1000,
                                              height: 757
                                          },
                                          ioBrokerOptions: {
                                              storagePath: 'wetterstation.png'
                                          },
                                          viewportOptions: {
                                              width: 1600,
                                              height: 1000
                                          }
                                      }, obj => {
                                          if (obj.error) {
                                              log(`Error taking screenshot: ${obj.error}`, 'error');
                                              return;
                                          }
                                  
                                          log(`exec: wput -nc /opt/iobroker/iobroker-data/files/0_userdata.0/wetterstation.png ftp://xxxxxx:xxxxxx@www37.world4you.com`, 'info');
                                          exec('wput -nc /opt/iobroker/iobroker-data/files/0_userdata.0/wetterstation.png ftp://xxxxxx:xxxxxx@www37.world4you.com', (error, stdout, stderr) => {
                                              if (error) {
                                                  log(`Error on upload: ${stderr}` || error, 'error');
                                              } else {
                                                  log(`Upload finished: ${stdout}`, 'info');
                                              }
                                          });
                                      });
                                  });
                                  
                                  foxriver76F Offline
                                  foxriver76F Offline
                                  foxriver76
                                  Developer
                                  wrote on last edited by
                                  #89

                                  @foxriver76 sagte in Puppeteer: Screenshots PhantomJS Alternative:

                                  @negalein Pack mal bisschen Log rein, evtl so und dann zeig mal das Log:

                                  schedule('*/3 * * * *', () => {
                                      sendTo('puppeteer.0', 'screenshot', {
                                          url: 'http://10.0.1.203:3000/d/14q2Khmnz/wetterstation-copy?orgId=1&refresh=1m&kiosk',
                                          clip: {
                                              x: 0,
                                              y: 0,
                                              width: 1000,
                                              height: 757
                                          },
                                          ioBrokerOptions: {
                                              storagePath: 'wetterstation.png'
                                          },
                                          viewportOptions: {
                                              width: 1600,
                                              height: 1000
                                          }
                                      }, obj => {
                                          if (obj.error) {
                                              log(`Error taking screenshot: ${obj.error}`, 'error');
                                              return;
                                          }
                                  
                                          log(`exec: wput -nc /opt/iobroker/iobroker-data/files/0_userdata.0/wetterstation.png ftp://xxxxxx:xxxxxx@www37.world4you.com`, 'info');
                                          exec('wput -nc /opt/iobroker/iobroker-data/files/0_userdata.0/wetterstation.png ftp://xxxxxx:xxxxxx@www37.world4you.com', (error, stdout, stderr) => {
                                              if (error) {
                                                  log(`Error on upload: ${stderr || error}`, 'error');
                                              } else {
                                                  log(`Upload finished: ${stdout}`, 'info');
                                              }
                                          });
                                      });
                                  });
                                  

                                  @Negalein ups der Error wird verschluckt, mach mal so wie oben.

                                  Videotutorials & mehr

                                  Hier könnt ihr mich unterstützen.

                                  NegaleinN foxriver76F 2 Replies Last reply
                                  0
                                  • foxriver76F foxriver76

                                    @foxriver76 sagte in Puppeteer: Screenshots PhantomJS Alternative:

                                    @negalein Pack mal bisschen Log rein, evtl so und dann zeig mal das Log:

                                    schedule('*/3 * * * *', () => {
                                        sendTo('puppeteer.0', 'screenshot', {
                                            url: 'http://10.0.1.203:3000/d/14q2Khmnz/wetterstation-copy?orgId=1&refresh=1m&kiosk',
                                            clip: {
                                                x: 0,
                                                y: 0,
                                                width: 1000,
                                                height: 757
                                            },
                                            ioBrokerOptions: {
                                                storagePath: 'wetterstation.png'
                                            },
                                            viewportOptions: {
                                                width: 1600,
                                                height: 1000
                                            }
                                        }, obj => {
                                            if (obj.error) {
                                                log(`Error taking screenshot: ${obj.error}`, 'error');
                                                return;
                                            }
                                    
                                            log(`exec: wput -nc /opt/iobroker/iobroker-data/files/0_userdata.0/wetterstation.png ftp://xxxxxx:xxxxxx@www37.world4you.com`, 'info');
                                            exec('wput -nc /opt/iobroker/iobroker-data/files/0_userdata.0/wetterstation.png ftp://xxxxxx:xxxxxx@www37.world4you.com', (error, stdout, stderr) => {
                                                if (error) {
                                                    log(`Error on upload: ${stderr || error}`, 'error');
                                                } else {
                                                    log(`Upload finished: ${stdout}`, 'info');
                                                }
                                            });
                                        });
                                    });
                                    

                                    @Negalein ups der Error wird verschluckt, mach mal so wie oben.

                                    NegaleinN Offline
                                    NegaleinN Offline
                                    Negalein
                                    Global Moderator
                                    wrote on last edited by
                                    #90

                                    @foxriver76 sagte in Puppeteer: Screenshots PhantomJS Alternative:

                                    ups der Error wird verschluckt, mach mal so wie oben.

                                    javascript.0 2022-08-16 23:06:03.562	error	script.js.Wetter.Wetter_to_FTP: Error on upload:
                                    javascript.0 2022-08-16 23:06:03.336	info	script.js.Wetter.Wetter_to_FTP: exec: wput -nc /opt/iobroker/iobroker-data/files/0_userdata.0/wetterstation.png ftp://nega_wetter:yinutu26@www37.world4you.com
                                    javascript.0 2022-08-16 23:06:03.129	error	script.js.Wetter.Wetter_to_FTP: Error on upload: Error: Command failed: wput -nc /opt/iobroker/iobroker-data/files/0_userdata.0/wetterstation.png ftp://xxxxxx:xxxxxx@www37.world4you.com
                                    javascript.0 2022-08-16 23:06:02.883	info	script.js.Wetter.Wetter_to_FTP: exec: wput -nc /opt/iobroker/iobroker-data/files/0_userdata.0/wetterstation.png ftp://xxxxxx:xxxxxx@www37.world4you.com
                                    

                                    ° Node.js & System Update ---> sudo apt update, iob stop, sudo apt full-upgrade
                                    ° Node.js Fixer ---> iob nodejs-update
                                    ° Fixer ---> iob fix

                                    1 Reply Last reply
                                    0
                                    • foxriver76F foxriver76

                                      @foxriver76 sagte in Puppeteer: Screenshots PhantomJS Alternative:

                                      @negalein Pack mal bisschen Log rein, evtl so und dann zeig mal das Log:

                                      schedule('*/3 * * * *', () => {
                                          sendTo('puppeteer.0', 'screenshot', {
                                              url: 'http://10.0.1.203:3000/d/14q2Khmnz/wetterstation-copy?orgId=1&refresh=1m&kiosk',
                                              clip: {
                                                  x: 0,
                                                  y: 0,
                                                  width: 1000,
                                                  height: 757
                                              },
                                              ioBrokerOptions: {
                                                  storagePath: 'wetterstation.png'
                                              },
                                              viewportOptions: {
                                                  width: 1600,
                                                  height: 1000
                                              }
                                          }, obj => {
                                              if (obj.error) {
                                                  log(`Error taking screenshot: ${obj.error}`, 'error');
                                                  return;
                                              }
                                      
                                              log(`exec: wput -nc /opt/iobroker/iobroker-data/files/0_userdata.0/wetterstation.png ftp://xxxxxx:xxxxxx@www37.world4you.com`, 'info');
                                              exec('wput -nc /opt/iobroker/iobroker-data/files/0_userdata.0/wetterstation.png ftp://xxxxxx:xxxxxx@www37.world4you.com', (error, stdout, stderr) => {
                                                  if (error) {
                                                      log(`Error on upload: ${stderr || error}`, 'error');
                                                  } else {
                                                      log(`Upload finished: ${stdout}`, 'info');
                                                  }
                                              });
                                          });
                                      });
                                      

                                      @Negalein ups der Error wird verschluckt, mach mal so wie oben.

                                      foxriver76F Offline
                                      foxriver76F Offline
                                      foxriver76
                                      Developer
                                      wrote on last edited by
                                      #91

                                      @foxriver76 sagte in Puppeteer: Screenshots PhantomJS Alternative:

                                      @foxriver76 sagte in Puppeteer: Screenshots PhantomJS Alternative:

                                      @negalein Pack mal bisschen Log rein, evtl so und dann zeig mal das Log:

                                      schedule('*/3 * * * *', () => {
                                          sendTo('puppeteer.0', 'screenshot', {
                                              url: 'http://10.0.1.203:3000/d/14q2Khmnz/wetterstation-copy?orgId=1&refresh=1m&kiosk',
                                              clip: {
                                                  x: 0,
                                                  y: 0,
                                                  width: 1000,
                                                  height: 757
                                              },
                                              ioBrokerOptions: {
                                                  storagePath: 'wetterstation.png'
                                              },
                                              viewportOptions: {
                                                  width: 1600,
                                                  height: 1000
                                              }
                                          }, obj => {
                                              if (obj.error) {
                                                  log(`Error taking screenshot: ${obj.error}`, 'error');
                                                  return;
                                              }
                                      
                                              log(`exec: wput -nc /opt/iobroker/iobroker-data/files/0_userdata.0/wetterstation.png ftp://xxxxxx:xxxxxx@www37.world4you.com`, 'info');
                                              exec('wput -nc /opt/iobroker/iobroker-data/files/0_userdata.0/wetterstation.png ftp://xxxxxx:xxxxxx@www37.world4you.com', (error, stdout, stderr) => {
                                                  if (error) {
                                                      log(`Error on upload: ${error} (${stderr})`, 'error');
                                                  } else {
                                                      log(`Upload finished: ${stdout}`, 'info');
                                                  }
                                              });
                                          });
                                      });
                                      

                                      @Negalein dann so ;-)

                                      Videotutorials & mehr

                                      Hier könnt ihr mich unterstützen.

                                      NegaleinN 1 Reply Last reply
                                      0
                                      • foxriver76F foxriver76

                                        @foxriver76 sagte in Puppeteer: Screenshots PhantomJS Alternative:

                                        @foxriver76 sagte in Puppeteer: Screenshots PhantomJS Alternative:

                                        @negalein Pack mal bisschen Log rein, evtl so und dann zeig mal das Log:

                                        schedule('*/3 * * * *', () => {
                                            sendTo('puppeteer.0', 'screenshot', {
                                                url: 'http://10.0.1.203:3000/d/14q2Khmnz/wetterstation-copy?orgId=1&refresh=1m&kiosk',
                                                clip: {
                                                    x: 0,
                                                    y: 0,
                                                    width: 1000,
                                                    height: 757
                                                },
                                                ioBrokerOptions: {
                                                    storagePath: 'wetterstation.png'
                                                },
                                                viewportOptions: {
                                                    width: 1600,
                                                    height: 1000
                                                }
                                            }, obj => {
                                                if (obj.error) {
                                                    log(`Error taking screenshot: ${obj.error}`, 'error');
                                                    return;
                                                }
                                        
                                                log(`exec: wput -nc /opt/iobroker/iobroker-data/files/0_userdata.0/wetterstation.png ftp://xxxxxx:xxxxxx@www37.world4you.com`, 'info');
                                                exec('wput -nc /opt/iobroker/iobroker-data/files/0_userdata.0/wetterstation.png ftp://xxxxxx:xxxxxx@www37.world4you.com', (error, stdout, stderr) => {
                                                    if (error) {
                                                        log(`Error on upload: ${error} (${stderr})`, 'error');
                                                    } else {
                                                        log(`Upload finished: ${stdout}`, 'info');
                                                    }
                                                });
                                            });
                                        });
                                        

                                        @Negalein dann so ;-)

                                        NegaleinN Offline
                                        NegaleinN Offline
                                        Negalein
                                        Global Moderator
                                        wrote on last edited by Negalein
                                        #92

                                        @foxriver76 sagte in Puppeteer: Screenshots PhantomJS Alternative:

                                        dann so

                                        javascript.0 2022-08-17 13:30:05.222	error	script.js.Wetter.Wetter_to_FTP: Error on upload: Error: Command failed: wput -nc /opt/iobroker/iobroker-data/files/0_userdata.0/wetterstation.png ftp://xxxxx:xxxxx@www37.world4you.com
                                        javascript.0 2022-08-17 13:30:05.144	error	script.js.Wetter.Wetter_to_FTP: Error on upload:
                                        javascript.0 2022-08-17 13:30:04.953	info	script.js.Wetter.Wetter_to_FTP: exec: wput -nc /opt/iobroker/iobroker-data/files/0_userdata.0/wetterstation.png ftp://xxxxx:xxxxx@www37.world4you.com
                                        javascript.0 2022-08-17 13:30:04.845	info	script.js.Wetter.Wetter_to_FTP: exec: wput -nc /opt/iobroker/iobroker-data/files/0_userdata.0/wetterstation.png ftp://xxxxx:xxxxx@www37.world4you.com
                                        javascript.0 2022-08-17 13:30:04.659	error	script.js.Wetter.Wetter_to_FTP: Error on upload: Error: Command failed: wput -nc /opt/iobroker/iobroker-data/files/0_userdata.0/wetterstation.png ftp://xxxxx:xxxxx@www37.world4you.com ()
                                        javascript.0 2022-08-17 13:30:04.415	info	script.js.Wetter.Wetter_to_FTP: exec: wput -nc /opt/iobroker/iobroker-data/files/0_userdata.0/wetterstation.png ftp://xxxxx:xxxxx@www37.world4you.com
                                        

                                        mit Errors

                                        ° Node.js & System Update ---> sudo apt update, iob stop, sudo apt full-upgrade
                                        ° Node.js Fixer ---> iob nodejs-update
                                        ° Fixer ---> iob fix

                                        foxriver76F 1 Reply Last reply
                                        0
                                        • NegaleinN Negalein

                                          @foxriver76 sagte in Puppeteer: Screenshots PhantomJS Alternative:

                                          dann so

                                          javascript.0 2022-08-17 13:30:05.222	error	script.js.Wetter.Wetter_to_FTP: Error on upload: Error: Command failed: wput -nc /opt/iobroker/iobroker-data/files/0_userdata.0/wetterstation.png ftp://xxxxx:xxxxx@www37.world4you.com
                                          javascript.0 2022-08-17 13:30:05.144	error	script.js.Wetter.Wetter_to_FTP: Error on upload:
                                          javascript.0 2022-08-17 13:30:04.953	info	script.js.Wetter.Wetter_to_FTP: exec: wput -nc /opt/iobroker/iobroker-data/files/0_userdata.0/wetterstation.png ftp://xxxxx:xxxxx@www37.world4you.com
                                          javascript.0 2022-08-17 13:30:04.845	info	script.js.Wetter.Wetter_to_FTP: exec: wput -nc /opt/iobroker/iobroker-data/files/0_userdata.0/wetterstation.png ftp://xxxxx:xxxxx@www37.world4you.com
                                          javascript.0 2022-08-17 13:30:04.659	error	script.js.Wetter.Wetter_to_FTP: Error on upload: Error: Command failed: wput -nc /opt/iobroker/iobroker-data/files/0_userdata.0/wetterstation.png ftp://xxxxx:xxxxx@www37.world4you.com ()
                                          javascript.0 2022-08-17 13:30:04.415	info	script.js.Wetter.Wetter_to_FTP: exec: wput -nc /opt/iobroker/iobroker-data/files/0_userdata.0/wetterstation.png ftp://xxxxx:xxxxx@www37.world4you.com
                                          

                                          mit Errors

                                          foxriver76F Offline
                                          foxriver76F Offline
                                          foxriver76
                                          Developer
                                          wrote on last edited by
                                          #93

                                          @negalein na dolle, da steht nicht viel ^^

                                          Allerdings, warum läuft das so hochfrequent? 13:30:04.415 macht er wput und dann direkt 13:30:04.845 etc. evtl kommt sich da was in die Quere. Ist das Skript 1 zu 1 so wie gepostet oder läuft der schedule hochfrequenter?

                                          Videotutorials & mehr

                                          Hier könnt ihr mich unterstützen.

                                          NegaleinN 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate

                                          534

                                          Online

                                          32.7k

                                          Users

                                          82.4k

                                          Topics

                                          1.3m

                                          Posts
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                          ioBroker Community 2014-2025
                                          logo
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Home
                                          • Recent
                                          • Tags
                                          • Unread 0
                                          • Categories
                                          • Unreplied
                                          • Popular
                                          • GitHub
                                          • Docu
                                          • Hilfe