NEWS
Puppeteer: Screenshots PhantomJS Alternative
-
@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.
-
@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
-
Adapter läuft noch immer stabil!
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
-
@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.
-
@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
-
@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
-
@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
-
@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