NEWS
Puppeteer: Screenshots PhantomJS Alternative
-
@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?
-
@foxriver76 sagte in Puppeteer: Screenshots PhantomJS Alternative:
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?
Ja, das ist mir auch aufgefallen.
Script ist 1:1 wie oben.
schedule('*/3 * * * *', () => { sendTo('puppeteer.0', 'screenshot', { url: 'http://10.0.1.203:3000/d/sRh7W1m4k/wetterstation-copy-2?orgId=1&kiosk', clip: { x: 0, y: 0, width: 1000, height: 1100 }, 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://xxxxx:xxxxx@www37.world4you.com`, 'info'); exec('wput -nc /opt/iobroker/iobroker-data/files/0_userdata.0/wetterstation.png ftp://xxxxx:xxxxx@www37.world4you.com', (error, stdout, stderr) => { if (error) { log(`Error on upload: ${error} (${stderr})`, 'error'); } else { log(`Upload finished: ${stdout}`, 'info'); } }); }); });
-
@negalein Mach mal vor das sendTo noch ein logging rein bitte, falls pro sendTo log dann ein exec log ist, dann sollten wir einfach von schedule auf timeouts wechseln.
-
@foxriver76 sagte in Puppeteer: Screenshots PhantomJS Alternative:
vor das sendTo noch ein logging rein bitte, falls pro sendTo log dann ein exec log ist
wie mach ich das?
JS ist chinesisch -
@negalein sagte in Puppeteer: Screenshots PhantomJS Alternative:
@foxriver76 sagte in Puppeteer: Screenshots PhantomJS Alternative:
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?
Ja, das ist mir auch aufgefallen.
Script ist 1:1 wie oben.
schedule('*/3 * * * *', () => { log('schedule triggered', 'info'); sendTo('puppeteer.0', 'screenshot', { url: 'http://10.0.1.203:3000/d/sRh7W1m4k/wetterstation-copy-2?orgId=1&kiosk', clip: { x: 0, y: 0, width: 1000, height: 1100 }, 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://xxxxx:xxxxx@www37.world4you.com`, 'info'); exec('wput -nc /opt/iobroker/iobroker-data/files/0_userdata.0/wetterstation.png ftp://xxxxx:xxxxx@www37.world4you.com', (error, stdout, stderr) => { if (error) { log(`Error on upload: ${error} (${stderr})`, 'error'); } else { log(`Upload finished: ${stdout}`, 'info'); } }); }); });
Nur Handy.. so mal einbauen und dann gerne mal log ab start über längere Zeit, mindestens bis Aufkommen des Fehlers zeigen.
-
@foxriver76 sagte in Puppeteer: Screenshots PhantomJS Alternative:
mindestens bis Aufkommen des Fehlers zeigen.
hat nicht lange gedauert
javascript.0 2022-08-17 23:18:07.178 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 23:18:06.994 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 23:18:06.954 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 23:18:06.806 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 23:18:06.785 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 23:18:06.681 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 23:18:06.574 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 23:18:06.468 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 23:18:06.446 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 23:18:06.299 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 23:18:06.237 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 23:18:06.081 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 23:18:05.787 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 23:18:05.577 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 23:18:00.008 info script.js.Wetter.Wetter_to_FTP: schedule triggered javascript.0 2022-08-17 23:17:02.438 info script.js.Wetter.Wetter_to_FTP: registered 0 subscriptions, 1 schedule, 0 messages, 0 logs and 0 file subscriptions javascript.0 2022-08-17 23:17:02.431 info Start javascript script.js.Wetter.Wetter_to_FTP
-
@negalein Bitte mal zusätzlich den Adapter auf Debug stellen, das schaut irgendwie so aus als ob der sendTo Callback öfter aufgerufen wird, vom Adapter her dürfte das allerdings nicht sein und ich kann das lokal auch nicht beobachten.
Und ist das auch im Logfile so, wenn du das Logfile herunter lädst? Nicht dass es von Admin falsch angezeigt wird, habe da was in Erinnerung mit wiederholenden Log Meldungen, nur vermute hier ist das nicht der Fall.
-
@foxriver76 sagte in Puppeteer: Screenshots PhantomJS Alternative:
Und ist das auch im Logfile so, wenn du das Logfile herunter lädst? Nicht dass es von Admin falsch angezeigt wird, habe da was in Erinnerung mit wiederholenden Log Meldungen, nur vermute hier ist das nicht der Fall.
-
@negalein Habe aktuell keine Idee, bei mir sieht das so aus, ein mal alle 3 Min ein sauberer call + callback:
2022-08-18 11:12:00.020 - info: javascript.0 (39321) script.js.common.Script_1: schedule triggered 2022-08-18 11:12:00.041 - debug: puppeteer.0 (38914) Message: {"command":"screenshot","message":{"url":"https://google.com","clip":{"x":0,"y":0,"width":1000,"height":1100},"ioBrokerOptions":{"storagePath":"wetterstation.png"},"viewportOptions":{"width":1600,"height":1000}},"from":"system.adapter.javascript.0","callback":{"message":{"url":"https://google.com","clip":{"x":0,"y":0,"width":1000,"height":1100},"ioBrokerOptions":{"storagePath":"wetterstation.png"},"viewportOptions":{"width":1600,"height":1000}},"id":20,"ack":false,"time":1660813920033},"_id":67455971} 2022-08-18 11:12:01.642 - debug: puppeteer.0 (38914) Write file to "wetterstation.png" 2022-08-18 11:12:01.734 - info: javascript.0 (39321) script.js.common.Script_1: exec: wput -nc /opt/iobroker/iobroker-data/files/0_userdata.0/wetterstation.png ftp://xxxxx:xxxxx@www37.world4you.com 2022-08-18 11:15:00.017 - info: javascript.0 (39321) script.js.common.Script_1: schedule triggered 2022-08-18 11:15:00.023 - debug: puppeteer.0 (38914) Message: {"command":"screenshot","message":{"url":"https://google.com","clip":{"x":0,"y":0,"width":1000,"height":1100},"ioBrokerOptions":{"storagePath":"wetterstation.png"},"viewportOptions":{"width":1600,"height":1000}},"from":"system.adapter.javascript.0","callback":{"message":{"url":"https://google.com","clip":{"x":0,"y":0,"width":1000,"height":1100},"ioBrokerOptions":{"storagePath":"wetterstation.png"},"viewportOptions":{"width":1600,"height":1000}},"id":21,"ack":false,"time":1660814100019},"_id":67455972} 2022-08-18 11:15:01.754 - debug: puppeteer.0 (38914) Write file to "wetterstation.png" 2022-08-18 11:15:01.915 - info: javascript.0 (39321) script.js.common.Script_1: exec: wput -nc /opt/iobroker/iobroker-data/files/0_userdata.0/wetterstation.png ftp://xxxxx:xxxxx@www37.world4you.com 2022-08-18 11:18:00.028 - info: javascript.0 (39321) script.js.common.Script_1: schedule triggered 2022-08-18 11:18:00.034 - debug: puppeteer.0 (38914) Message: {"command":"screenshot","message":{"url":"https://google.com","clip":{"x":0,"y":0,"width":1000,"height":1100},"ioBrokerOptions":{"storagePath":"wetterstation.png"},"viewportOptions":{"width":1600,"height":1000}},"from":"system.adapter.javascript.0","callback":{"message":{"url":"https://google.com","clip":{"x":0,"y":0,"width":1000,"height":1100},"ioBrokerOptions":{"storagePath":"wetterstation.png"},"viewportOptions":{"width":1600,"height":1000}},"id":22,"ack":false,"time":1660814280030},"_id":67455973} 2022-08-18 11:18:01.608 - debug: puppeteer.0 (38914) Write file to "wetterstation.png" 2022-08-18 11:18:01.733 - info: javascript.0 (39321) script.js.common.Script_1: exec: wput -nc /opt/iobroker/iobroker-data/files/0_userdata.0/wetterstation.png ftp://xxxxx:xxxxx@www37.world4you.com 2022-08-18 11:21:00.028 - info: javascript.0 (39321) script.js.common.Script_1: schedule triggered 2022-08-18 11:21:00.040 - debug: puppeteer.0 (38914) Message: {"command":"screenshot","message":{"url":"https://google.com","clip":{"x":0,"y":0,"width":1000,"height":1100},"ioBrokerOptions":{"storagePath":"wetterstation.png"},"viewportOptions":{"width":1600,"height":1000}},"from":"system.adapter.javascript.0","callback":{"message":{"url":"https://google.com","clip":{"x":0,"y":0,"width":1000,"height":1100},"ioBrokerOptions":{"storagePath":"wetterstation.png"},"viewportOptions":{"width":1600,"height":1000}},"id":23,"ack":false,"time":1660814460031},"_id":67455974} 2022-08-18 11:21:01.614 - debug: puppeteer.0 (38914) Write file to "wetterstation.png" 2022-08-18 11:21:01.807 - info: javascript.0 (39321) script.js.common.Script_1: exec: wput -nc /opt/iobroker/iobroker-data/files/0_userdata.0/wetterstation.png ftp://xxxxx:xxxxx@www37.world4you.com 2022-08-18 11:24:00.028 - info: javascript.0 (39321) script.js.common.Script_1: schedule triggered 2022-08-18 11:24:00.039 - debug: puppeteer.0 (38914) Message: {"command":"screenshot","message":{"url":"https://google.com","clip":{"x":0,"y":0,"width":1000,"height":1100},"ioBrokerOptions":{"storagePath":"wetterstation.png"},"viewportOptions":{"width":1600,"height":1000}},"from":"system.adapter.javascript.0","callback":{"message":{"url":"https://google.com","clip":{"x":0,"y":0,"width":1000,"height":1100},"ioBrokerOptions":{"storagePath":"wetterstation.png"},"viewportOptions":{"width":1600,"height":1000}},"id":24,"ack":false,"time":1660814640035},"_id":67455975} 2022-08-18 11:24:01.621 - debug: puppeteer.0 (38914) Write file to "wetterstation.png" 2022-08-18 11:24:01.719 - info: javascript.0 (39321) script.js.common.Script_1: exec: wput -nc /opt/iobroker/iobroker-data/files/0_userdata.0/wetterstation.png ftp://xxxxx:xxxxx@www37.world4you.com 2022-08-18 11:27:00.043 - info: javascript.0 (39321) script.js.common.Script_1: schedule triggered 2022-08-18 11:27:00.052 - debug: puppeteer.0 (38914) Message: {"command":"screenshot","message":{"url":"https://google.com","clip":{"x":0,"y":0,"width":1000,"height":1100},"ioBrokerOptions":{"storagePath":"wetterstation.png"},"viewportOptions":{"width":1600,"height":1000}},"from":"system.adapter.javascript.0","callback":{"message":{"url":"https://google.com","clip":{"x":0,"y":0,"width":1000,"height":1100},"ioBrokerOptions":{"storagePath":"wetterstation.png"},"viewportOptions":{"width":1600,"height":1000}},"id":25,"ack":false,"time":1660814820045},"_id":67455976} 2022-08-18 11:27:01.677 - debug: puppeteer.0 (38914) Write file to "wetterstation.png" 2022-08-18 11:27:01.872 - info: javascript.0 (39321) script.js.common.Script_1: exec: wput -nc /opt/iobroker/iobroker-data/files/0_userdata.0/wetterstation.png ftp://xxxxx:xxxxx@www37.world4you.com 2022-08-18 11:30:00.009 - info: javascript.0 (39321) script.js.common.Script_1: schedule triggered 2022-08-18 11:30:00.029 - debug: puppeteer.0 (38914) Message: {"command":"screenshot","message":{"url":"https://google.com","clip":{"x":0,"y":0,"width":1000,"height":1100},"ioBrokerOptions":{"storagePath":"wetterstation.png"},"viewportOptions":{"width":1600,"height":1000}},"from":"system.adapter.javascript.0","callback":{"message":{"url":"https://google.com","clip":{"x":0,"y":0,"width":1000,"height":1100},"ioBrokerOptions":{"storagePath":"wetterstation.png"},"viewportOptions":{"width":1600,"height":1000}},"id":26,"ack":false,"time":1660815000023},"_id":67455977} 2022-08-18 11:30:01.669 - debug: puppeteer.0 (38914) Write file to "wetterstation.png" 2022-08-18 11:30:01.799 - info: javascript.0 (39321) script.js.common.Script_1: exec: wput -nc /opt/iobroker/iobroker-data/files/0_userdata.0/wetterstation.png ftp://xxxxx:xxxxx@www37.world4you.com 2022-08-18 11:33:00.008 - info: javascript.0 (39321) script.js.common.Script_1: schedule triggered 2022-08-18 11:33:00.029 - debug: puppeteer.0 (38914) Message: {"command":"screenshot","message":{"url":"https://google.com","clip":{"x":0,"y":0,"width":1000,"height":1100},"ioBrokerOptions":{"storagePath":"wetterstation.png"},"viewportOptions":{"width":1600,"height":1000}},"from":"system.adapter.javascript.0","callback":{"message":{"url":"https://google.com","clip":{"x":0,"y":0,"width":1000,"height":1100},"ioBrokerOptions":{"storagePath":"wetterstation.png"},"viewportOptions":{"width":1600,"height":1000}},"id":27,"ack":false,"time":1660815180011},"_id":67455978} 2022-08-18 11:33:01.592 - debug: puppeteer.0 (38914) Write file to "wetterstation.png" 2022-08-18 11:33:01.770 - info: javascript.0 (39321) script.js.common.Script_1: exec: wput -nc /opt/iobroker/iobroker-data/files/0_userdata.0/wetterstation.png ftp://xxxxx:xxxxx@www37.world4you.com
-
@foxriver76 sagte in Puppeteer: Screenshots PhantomJS Alternative:
Habe aktuell keine Idee
komisch. Ich kanns mir auch nicht erklären.
Bei mir schreibt er das File 7x kutz hintereinander. -
@negalein Ok, dann schaffen wir mal "saubere voraussetzungen"
Javascript adapter neu starten ... Um auszuschliessen das nicht irgendwie frühere Skript instanzen noch irgendwie laufen und ggf schedules nicht weggeräumt wurden (ggf mal logfile schauen)
Ists dann immer noch so?
Und beim nächsten Log bitte nicht die Logausgaben von pupeteer unterschlagen (da auch debug log bitte).
-
@apollon77 sagte in Puppeteer: Screenshots PhantomJS Alternative:
Ists dann immer noch so?
Und beim nächsten Log bitte nicht die Logausgaben von pupeteer unterschlagen (da auch debug log bitte).Hallo
Ich hab dir den Log im Chat (wegen persönlichen Sachen) geschickt.
Neustart JS-Adapter ist um ca. 14:57 gewesen.
Puppeteer ist noch immer als Debug. -
verstehe ich nicht. AM besten bitte mal javascript zweite instanz anlegen und nur dieses skript da rtein. Wenn es auch passiert. loglevel der javascript instanz auf silly stellen und volles log davon senden
-
@negalein PS: ....ääähhmmm ... also im Log ist nach 14:57 genau 1x das drin ... und nur einmalig ... damit wäre doch alles ok ... jetzt ist die frage ob wenn du script stoppst und neu startest danach plkötzlich 2 da sind ... das wäre dann aber was anderes
-
Der Adapter stürzt ab, mit folgender Fehlermeldung.
.NUC2 2022-08-18 16:36:00.418 error instance system.adapter.puppeteer.0 terminated with code 6 (UNCAUGHT_EXCEPTION) puppeteer.0 2022-08-18 16:35:59.844 warn Terminated (UNCAUGHT_EXCEPTION): Without reason puppeteer.0 2022-08-18 16:35:59.839 error Failed to launch the browser process!TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md puppeteer.0 2022-08-18 16:35:59.838 error Error: Failed to launch the browser process!TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md at onClose (/opt/iobroker/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:241:20) at ChildProcess.<anonymous> (/opt/iobroker/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:232:79) at ChildProcess.emit (node:events:525:35) at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12) puppeteer.0 2022-08-18 16:35:59.837 error unhandled promise rejection: Failed to launch the browser process!TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md puppeteer.0 2022-08-18 16:35:59.836 error Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). host.NUC2 2022-08-18 16:35:28.637 error instance system.adapter.puppeteer.0 terminated with code 6 (UNCAUGHT_EXCEPTION) puppeteer.0 2022-08-18 16:35:28.076 warn Terminated (UNCAUGHT_EXCEPTION): Without reason puppeteer.0 2022-08-18 16:35:28.066 error Failed to launch the browser process!TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md puppeteer.0 2022-08-18 16:35:28.066 error Error: Failed to launch the browser process!TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md at onClose (/opt/iobroker/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:241:20) at ChildProcess.<anonymous> (/opt/iobroker/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:232:79) at ChildProcess.emit (node:events:525:35) at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12) puppeteer.0 2022-08-18 16:35:28.064 error unhandled promise rejection: Failed to launch the browser process!TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md puppeteer.0 2022-08-18 16:35:28.063 error Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
Ich vermute, dass ich den Chrome Browser nicht installiert habe.
Muss man das separat von der Adapter Installation machen? -
@marty56 vermutlich konnte er nicht alle Pakete korrekt installieren. Gerne mal den ganzen Adapter löschen.
sudo apt update
ausführen und dann den Adapter neu installieren, habe dafür schon ein Controller issue erstellt. -
@foxriver76 hat leider nichts gebracht. Dieselben Fehlermeldungen.
-
@marty56 Bitte mal das install log zeigen.
-
@foxriver76 Ich habe den Adapter deinstalliert und dann über die Admin Oberfläche installiert.
$ iobroker url iobroker.puppeteer --host NUC2 --debug install iobroker.puppeteer Installing iobroker.puppeteer... (System call) 109 packages are looking for funding run `npm fund` for details upload [0] puppeteer.admin /opt/iobroker/node_modules/iobroker.puppeteer/admin/puppeteer.png puppeteer.png image/png Process exited with code 0
Dann noch die Instanz erzeugt.
$ iobroker add puppeteer auto --host NUC2 --debug host.NUC2 create instance puppeteer host.NUC2 object system.adapter.puppeteer.0.alive created host.NUC2 object system.adapter.puppeteer.0.connected created host.NUC2 object system.adapter.puppeteer.0.compactMode created host.NUC2 object system.adapter.puppeteer.0.cpu created host.NUC2 object system.adapter.puppeteer.0.cputime created host.NUC2 object system.adapter.puppeteer.0.memHeapTotal created host.NUC2 object system.adapter.puppeteer.0.uptime created host.NUC2 object system.adapter.puppeteer.0.inputCount created host.NUC2 object system.adapter.puppeteer.0.outputCount created host.NUC2 object system.adapter.puppeteer.0.eventLoopLag created host.NUC2 object system.adapter.puppeteer.0.logLevel created host.NUC2 object puppeteer.0.url created host.NUC2 object puppeteer.0.clipTop created host.NUC2 object puppeteer.0.clipWidth created host.NUC2 object puppeteer.0.waitForSelector created host.NUC2 Set default value of puppeteer.0.fullPage: false host.NUC2 Set default value of puppeteer.0.clipTop: 0 host.NUC2 object system.adapter.puppeteer.0 created Process exited with code 0
-
@apollon77 sagte in Puppeteer: Screenshots PhantomJS Alternative:
jetzt ist die frage ob wenn du script stoppst und neu startest danach plkötzlich 2 da sind ...
tatsächlich
hier wurde das Script gestoppt und wieder gestartet. Da gibt es schon die 1. Error-Meldung.
javascript.0 2022-08-18 17:36:47.136 info Start javascript script.js.Wetter.Wetter_to_FTP javascript.0 2022-08-18 17:36:44.540 error Error by canceling scheduled job "<Anonymous Job 23 2022-08-18T12:57:51.743Z>" javascript.0 2022-08-18 17:36:44.539 info Stop script script.js.Wetter.Wetter_to_FTP
Und hier dann doppelt im JS und Puppeteer
javascript.0 2022-08-18 17:39:03.369 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-18 17:39:03.184 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-18 17:39:03.157 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-18 17:39:03.056 debug Write file to "wetterstation.png" javascript.0 2022-08-18 17:39:02.884 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-18 17:39:02.783 debug Write file to "wetterstation.png" puppeteer.0 2022-08-18 17:39:00.289 debug Message: {"command":"screenshot","message":{"url":"http://10.0.1.203:3000/d/sRh7W1m4k/wetterstation-copy-2?orgId=1&kiosk","clip":{"x":0,"y":0,"width":1000,"height":1100},"ioBrokerOptions":{"storagePath":"wetterstation.png"},"viewportOptions":{"width":1600,"height":1000}},"from":"system.adapter.javascript.0","callback":{"message":{"url":"http://10.0.1.203:3000/d/sRh7W1m4k/wetterstation-copy-2?orgId=1&kiosk","clip":{"x":0,"y":0,"width":1000,"height":1100},"ioBrokerOptions":{"storagePath":"wetterstation.png"},"viewportOptions":{"width":1600,"height":1000}},"id":298,"ack":false,"time":1660837140274},"_id":79533595} puppeteer.0 2022-08-18 17:39:00.289 debug Message: {"command":"screenshot","message":{"url":"http://10.0.1.203:3000/d/sRh7W1m4k/wetterstation-copy-2?orgId=1&kiosk","clip":{"x":0,"y":0,"width":1000,"height":1100},"ioBrokerOptions":{"storagePath":"wetterstation.png"},"viewportOptions":{"width":1600,"height":1000}},"from":"system.adapter.javascript.0","callback":{"message":{"url":"http://10.0.1.203:3000/d/sRh7W1m4k/wetterstation-copy-2?orgId=1&kiosk","clip":{"x":0,"y":0,"width":1000,"height":1100},"ioBrokerOptions":{"storagePath":"wetterstation.png"},"viewportOptions":{"width":1600,"height":1000}},"id":297,"ack":false,"time":1660837140273},"_id":79533594}
Machen wir das in einem eigenen Thread weiter?