Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Tester
    4. Puppeteer: Screenshots PhantomJS Alternative

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Puppeteer: Screenshots PhantomJS Alternative

    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      horphi last edited by

      Hallo,

      gibt es eine Möglichkeit, wie ich im blocky skript den nächsten Schritt erst ausführen kann, wenn Puppeteer das Bild erstellt hat und das zurückmeldet?

      VIelen Dank und Gruß

      1 Reply Last reply Reply Quote 0
      • H
        horphi last edited by

        Habs gefunden.
        Einfach den Haken bei Ergebniss setzen und dann kann ich das Result abfragen....;-)
        ec282ada-bcc2-429d-a02d-b579c7d8143f-grafik.png

        B 1 Reply Last reply Reply Quote 1
        • liv-in-sky
          liv-in-sky @foxriver76 last edited by liv-in-sky

          EIDt - hat sich eredigt

          statt minütlich war ein stern zuviel in cron- habe das sekündlich aufgerufen 😞

          apollon77 1 Reply Last reply Reply Quote 0
          • apollon77
            apollon77 @liv-in-sky last edited by

            @liv-in-sky LastTest für Dein System? 😉

            liv-in-sky 1 Reply Last reply Reply Quote 0
            • liv-in-sky
              liv-in-sky @apollon77 last edited by liv-in-sky

              @apollon77 das darfst du glauben - da ging garnix mehr und nur wegen einem kleinen sternchen 🙂
              das fiese war, das am anfang nur den js-controller bei 136.% gesehen habe und ich nur merkte, das ich keine admin tabs mehr bedienen kann - dann dachte ich , evtl hat sich mein admin adapter irgendwie verabschiedet. bis ich auf die idee kam, mein letzt-erstelltes script mal zu deaktivieren 😞

              1 Reply Last reply Reply Quote 0
              • Jensen
                Jensen last edited by

                @foxriver76
                Wollte nur mal Danke sagen für diesen funktionellen Adapter.
                Damit ist es mir sehr schnell gelungen, von PhantomJS auf Puppeteer umzustellen und meine images für emails wieder zu erzeugen, nachdem der PhantomJS vor einer Woche aus unbekannten Gründen nicht mehr wollte.
                Du hast mir den Tag gerettet, Danke.
                Gruß Jens

                Jensen 1 Reply Last reply Reply Quote 1
                • Jensen
                  Jensen @Jensen last edited by Jensen

                  Ich muß mich noch mal melden.
                  Ab und zu passiert es immer noch, daß Images nicht korrekt erzeugt werden.
                  Sind vielleicht manchmal die Flot Ladezeiten zu lang?
                  Was kann man noch versuchen?
                  Hier im Beispiel ist eine von vier Graphiken nicht in Ordnung. Und das passiert auch wirklich sehr selten, vielleicht alle paar Tage mal, wo ich mir am Tag zu jeder Stunde emails mit Graphiken generiere.
                  Ärgerlich ist es trotzdem.
                  flot.PNG

                  ich hab jetzt mal renderTime: 500 eingefügt, mal schauen, ob's hilft

                  liv-in-sky 1 Reply Last reply Reply Quote 0
                  • liv-in-sky
                    liv-in-sky @Jensen last edited by

                    @jensen mache das mit größerer wait time - hatte nie ein thema damit

                    Image 078.png

                    Jensen 1 Reply Last reply Reply Quote 0
                    • Jensen
                      Jensen @liv-in-sky last edited by

                      @liv-in-sky
                      ok, danke, ist einen versuch Wert

                      1 Reply Last reply Reply Quote 0
                      • arteck
                        arteck Developer Most Active last edited by arteck

                        ich hätte da ein Problem

                        direkt frisch installiert

                        f47cdb4c-6388-40f1-98e4-0d1507ccd3bf-grafik.png

                        iobroker läuft in VM auf proxmox

                        foxriver76 1 Reply Last reply Reply Quote 0
                        • foxriver76
                          foxriver76 Developer @arteck last edited by

                          @arteck Bitte in Zukunft in Code Tags oder irgendeiner Form in der ich die Meldung direkt kopieren kann.

                          Läuft iob in Docker?

                          1 Reply Last reply Reply Quote 0
                          • arteck
                            arteck Developer Most Active last edited by arteck

                            @foxriver76 so kannst du doch mehr lesen...

                            host.iobroker
                            2022-12-22 08:33:52.410	error	instance system.adapter.puppeteer.0 terminated with code 6 (UNCAUGHT_EXCEPTION)
                            puppeteer.0
                            2022-12-22 08:33:51.872	warn	Terminated (UNCAUGHT_EXCEPTION): Without reason
                            puppeteer.0
                            2022-12-22 08:33:51.868	error	Failed to launch the browser process![1222/083351.630700:FATAL:zygote_host_impl_linux.cc(117)] No usable sandbox! Update your kernel or see https://chromium.googlesource.com/chromium/src/+/main/docs/linux/suid_sandbox_development.md for more information on developing with the SUID sandbox. If you want to live dangerously and need an immediate workaround, you can try using --no-sandbox.#0 0x55ae0b29fb89 base::debug::CollectStackTrace()#1 0x55ae0b204433 base::debug::StackTrace::StackTrace()#2 0x55ae0b217330 logging::LogMessage::~LogMessage()#3 0x55ae091fc99b content::ZygoteHostImpl::Init()#4 0x55ae0adad372 content::ContentMainRunnerImpl::Initialize()#5 0x55ae0adab439 content::RunContentProcess()#6 0x55ae0adab58e content::ContentMain()#7 0x55ae0ae06d7a headless::(anonymous namespace)::RunContentMain()#8 0x55ae0ae06a85 headless::HeadlessShellMain()#9 0x55ae0786a3e8 ChromeMain#10 0x7f49e348409b __libc_start_main#11 0x55ae0786a22a _startTROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md
                            puppeteer.0
                            2022-12-22 08:33:51.868	error	Error: Failed to launch the browser process![1222/083351.630700:FATAL:zygote_host_impl_linux.cc(117)] No usable sandbox! Update your kernel or see https://chromium.googlesource.com/chromium/src/+/main/docs/linux/suid_sandbox_development.md for more information on developing with the SUID sandbox. If you want to live dangerously and need an immediate workaround, you can try using --no-sandbox.#0 0x55ae0b29fb89 base::debug::CollectStackTrace()#1 0x55ae0b204433 base::debug::StackTrace::StackTrace()#2 0x55ae0b217330 logging::LogMessage::~LogMessage()#3 0x55ae091fc99b content::ZygoteHostImpl::Init()#4 0x55ae0adad372 content::ContentMainRunnerImpl::Initialize()#5 0x55ae0adab439 content::RunContentProcess()#6 0x55ae0adab58e content::ContentMain()#7 0x55ae0ae06d7a headless::(anonymous namespace)::RunContentMain()#8 0x55ae0ae06a85 headless::HeadlessShellMain()#9 0x55ae0786a3e8 ChromeMain#10 0x7f49e348409b __libc_start_main#11 0x55ae0786a22a _startTROUBLESHOOTING: 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 Interface.<anonymous> (/opt/iobroker/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:231:68) at Interface.emit (node:events:525:35) at Interface.close (node:readline:590:8) at Socket.onend (node:readline:280:10) at Socket.emit (node:events:525:35) at endReadableNT (node:internal/streams/readable:1358:12) at processTicksAndRejections (node:internal/process/task_queues:83:21)
                            puppeteer.0
                            2022-12-22 08:33:51.867	error	unhandled promise rejection: Failed to launch the browser process![1222/083351.630700:FATAL:zygote_host_impl_linux.cc(117)] No usable sandbox! Update your kernel or see https://chromium.googlesource.com/chromium/src/+/main/docs/linux/suid_sandbox_development.md for more information on developing with the SUID sandbox. If you want to live dangerously and need an immediate workaround, you can try using --no-sandbox.#0 0x55ae0b29fb89 base::debug::CollectStackTrace()#1 0x55ae0b204433 base::debug::StackTrace::StackTrace()#2 0x55ae0b217330 logging::LogMessage::~LogMessage()#3 0x55ae091fc99b content::ZygoteHostImpl::Init()#4 0x55ae0adad372 content::ContentMainRunnerImpl::Initialize()#5 0x55ae0adab439 content::RunContentProcess()#6 0x55ae0adab58e content::ContentMain()#7 0x55ae0ae06d7a headless::(anonymous namespace)::RunContentMain()#8 0x55ae0ae06a85 headless::HeadlessShellMain()#9 0x55ae0786a3e8 ChromeMain#10 0x7f49e348409b __libc_start_main#11 0x55ae0786a22a _startTROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md
                            puppeteer.0
                            2022-12-22 08:33:51.865	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.iobroker
                            2022-12-22 08:33:50.856	info	instance system.adapter.puppeteer.0 started with pid 11315
                            

                            debian VM in Proxmox

                            foxriver76 1 Reply Last reply Reply Quote 0
                            • foxriver76
                              foxriver76 Developer @arteck last edited by

                              @arteck sagte in Puppeteer: Screenshots PhantomJS Alternative:

                              https://chromium.googlesource.com/chromium/src/+/main/docs/linux/suid_sandbox_development.md

                              Welche Version von Debian?

                              1 Reply Last reply Reply Quote 0
                              • arteck
                                arteck Developer Most Active last edited by

                                @foxriver76 buster also 10

                                foxriver76 1 Reply Last reply Reply Quote 0
                                • foxriver76
                                  foxriver76 Developer @arteck last edited by

                                  @arteck Okay, dann habe ich erst mal keine Idee, wie ich das allgemein fixen kann.

                                  Du könntest für dich speziell, diese Lösung probieren und rückmelden ob das tut: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md#recommended-enable-user-namespace-cloning

                                  arteck 1 Reply Last reply Reply Quote 0
                                  • arteck
                                    arteck Developer Most Active @foxriver76 last edited by

                                    @foxriver76 ich geh mal auf bullseye mal schauen dann..

                                    crunchip 1 Reply Last reply Reply Quote 0
                                    • crunchip
                                      crunchip Forum Testing Most Active @arteck last edited by

                                      @arteck sagte in Puppeteer: Screenshots PhantomJS Alternative:

                                      bullseye

                                      damit läufts bei mir , siehe https://forum.iobroker.net/post/812880

                                      1 Reply Last reply Reply Quote 0
                                      • arteck
                                        arteck Developer Most Active last edited by

                                        mit bullseye läuft der ...

                                        Thomas Braun 1 Reply Last reply Reply Quote 0
                                        • Thomas Braun
                                          Thomas Braun Most Active @arteck last edited by

                                          @arteck sagte in Puppeteer: Screenshots PhantomJS Alternative:

                                          mit bullseye läuft der ...

                                          Und deswegen predige ich ja auch immer nicht an abgekündigten Versionen festzuhalten und die Kisten auf Stand zu halten. Bringt nix sich da mit obsoletem Kram zu beschäftigen.

                                          arteck 1 Reply Last reply Reply Quote 0
                                          • arteck
                                            arteck Developer Most Active @Thomas Braun last edited by

                                            @thomas-braun dir auch schöne Feiertage 🙂

                                            1 Reply Last reply Reply Quote 1
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            1.0k
                                            Online

                                            31.7k
                                            Users

                                            79.7k
                                            Topics

                                            1.3m
                                            Posts

                                            browser headless phantomjs puppeteer screenshot screenshots website
                                            23
                                            245
                                            25392
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo