Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. IoBroker.phantomjs

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    IoBroker.phantomjs

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

      Errro 127 heisst das der prozess irgendwie stirbt und nicht sauber läuft. Starte doch mal das kommando manuell selbst an der shell und schau was passiert

      Negalein 1 Reply Last reply Reply Quote 0
      • H
        holgerwolf last edited by

        Vielleicht dauert das Rendern auch mehr als 10 Sekunden? Je nach Plattform wo der iobroker läuft.
        Spiel mal mit den 10000 ms...

        1 Reply Last reply Reply Quote 0
        • Neuschwansteini
          Neuschwansteini @Negalein last edited by Neuschwansteini

          @Negalein Hi, hab grad n Fehler im phantomjs-adapter gefunden, dort ist der Port des Webservers auf 8082 fest eingestellt, liegt deiner auch dort?

          Issue: Webserver Port

          Negalein 1 Reply Last reply Reply Quote 0
          • Negalein
            Negalein Global Moderator @Neuschwansteini last edited by

            @ilovegym sagte in IoBroker.phantomjs:

            Hi, hab grad n Fehler im phantomjs-adapter gefunden, dort ist der Port des Webservers auf 8082 fest eingestellt, liegt deiner auch dort?

            Wo weh ich das? Im Adapter gibt es keine Einstellungsmöglichkeit.

            Neuschwansteini 1 Reply Last reply Reply Quote 0
            • Neuschwansteini
              Neuschwansteini @Negalein last edited by

              @Negalein richtig, es gibt keine Einstellungsmöglichkeit und im Link zum Bild unter phantomsjs.0.pictures.picture.png siehst du ja den Link, wenn du den einfach anklickst und dann ein Bild kommt, ist es ok, läuft der Browser hier ins leere, ist wahrscheinlich der Port falsch..

              Kannst ja zum Testen mal n zweiten Webserver-Instanz installieren und auf Port 8082 einstellen.. wenn der noch frei ist...

              Negalein 1 Reply Last reply Reply Quote 0
              • Negalein
                Negalein Global Moderator @apollon77 last edited by

                @apollon77 sagte in IoBroker.phantomjs:

                Starte doch mal das kommando manuell selbst an der shell und schau was passiert

                Du meinst das?
                exec('wput -nc /opt/iobroker/node_modules/iobroker.phantomjs/wetter.png ftp://xxxxxxxxx:xxxxxxxx@www37.world4you.com')

                Wie geb ich das in der Konsole ein?

                root@iobroker:/opt/iobroker# wput -nc /opt/iobroker/node_modules/iobroker.phantomjs/wetter.png ftp://xxxxxxxxx:xxxxxxxx@www37.world4you.com
                bash: wput: Kommando nicht gefunden.
                root@iobroker:/opt/iobroker# exec('wput -nc /opt/iobroker/node_modules/iobroker.phantomjs/wetter.png ftp://xxxxxxxxx:xxxxxxxx@www37.world4you.com')
                bash: Syntaxfehler beim unerwarteten Wort `'wput -nc /opt/iobroker/node_modules/iobroker.phantomjs/wetter.png ftp://xxxxxxxxx:xxxxxxxx@www37.world4you.com''
                root@iobroker:/opt/iobroker#
                
                1 Reply Last reply Reply Quote 0
                • Negalein
                  Negalein Global Moderator @Neuschwansteini last edited by

                  @ilovegym sagte in IoBroker.phantomjs:

                  phantomsjs.0.pictures.picture.png

                  Gibt es bei mir in den Objekten nicht.

                  Es gibt phantomjs.0.filename
                  Dort steht /opt/iobroker/node_modules/iobroker.phantomjs/picture.png
                  objects - ioBroker (3).png

                  Neuschwansteini crunchip 2 Replies Last reply Reply Quote 0
                  • Neuschwansteini
                    Neuschwansteini @Negalein last edited by

                    @Negalein so sieht das bei mir aus, ich teste da immer erstmal mit ner lokalen IP, um zu sehen, was der Adapter überhaupt macht:

                    5643c5b8-1bb2-459b-8245-2e57a7324082-grafik.png

                    1 Reply Last reply Reply Quote 0
                    • Negalein
                      Negalein Global Moderator last edited by

                      @apollon77 @ilovegym

                      Beim Befehl in der Konsole kommt

                      /opt/iobroker/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs /opt/iobroker/node_modules/iobroker.phantomjs/lib/rasterize.js --url https://www.luftbilder-innviertel.a\"/opt/iobroker/node_modules/iobroker.phantomjs/wetter.png\" --width 1200 --height 800 --timeout 10000"}
                      /opt/iobroker/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs: error while loading shared libraries: libfontconfig.so.1: cannot open shared object file: No such file or directory
                      
                      1 Reply Last reply Reply Quote 0
                      • crunchip
                        crunchip Forum Testing Most Active @Negalein last edited by

                        @Negalein so sieht das bei mir auch aus, habe den mal installiert, aber noch nie verwendet

                        1 Reply Last reply Reply Quote 0
                        • Negalein
                          Negalein Global Moderator last edited by

                          @apollon77 @holgerwolf @ilovegym @crunchip

                          Es läuft jetzt soweit, dass das .png erstellt wird.
                          Hab libfontconfig nachinstalliert.

                          phantomjs.0	2020-07-16 12:58:00.486	info	(3450) Create 1200px*800px in 30000ms - "https://www.luftbilder-innviertel.at" => "/opt/iobroker/node_modules/iobroker.phantomjs/wetter.png"
                          phantomjs.0	2020-07-16 12:56:00.451	info	(3450) Create 1200px*800px in 30000ms - "https://www.luftbilder-innviertel.at" => "/opt/iobroker/node_modules/iobroker.phantomjs/wetter.png"
                          

                          Wird auch sauber abgespeichert.
                          Synology_Nega_3 - Synology DiskStation (4).png

                          Aber das mit dem FTP funktioniert nicht.

                          Neuschwansteini apollon77 2 Replies Last reply Reply Quote 0
                          • Neuschwansteini
                            Neuschwansteini @Negalein last edited by

                            @Negalein wput ist installiert?
                            wput --version

                            ftp server erreichbar?

                            Negalein 1 Reply Last reply Reply Quote 0
                            • Negalein
                              Negalein Global Moderator @Neuschwansteini last edited by Negalein

                              @ilovegym sagte in IoBroker.phantomjs:

                              wput ist installiert?
                              wput --version

                              schätze nicht

                              root@iobroker:/opt/iobroker# wput --version
                              bash: wput: Kommando nicht gefunden.
                              

                              Mit welchem Befehl installier ich es?

                              Mit apt-get install wput?

                              Neuschwansteini 2 Replies Last reply Reply Quote 0
                              • Neuschwansteini
                                Neuschwansteini @Negalein last edited by

                                @Negalein

                                sudo apt install wput

                                Negalein 1 Reply Last reply Reply Quote 0
                                • Neuschwansteini
                                  Neuschwansteini @Negalein last edited by

                                  @Negalein ... und pfui, nix root... immer schön n useraccount nutzen und sudo davor.. 🙂

                                  Glasfaser 1 Reply Last reply Reply Quote 0
                                  • Negalein
                                    Negalein Global Moderator @Neuschwansteini last edited by

                                    @ilovegym sagte in IoBroker.phantomjs:

                                    sudo apt install wput

                                    Danke, war eine schwere Geburt.
                                    Läuft jetzt wunderbar.

                                    Neuschwansteini 1 Reply Last reply Reply Quote 0
                                    • Neuschwansteini
                                      Neuschwansteini @Negalein last edited by

                                      @Negalein super, freut mich! 👍 👍

                                      1 Reply Last reply Reply Quote 0
                                      • Glasfaser
                                        Glasfaser @Neuschwansteini last edited by

                                        @ilovegym sagte in IoBroker.phantomjs:

                                        @Negalein ... und pfui,

                                        Der ist gut ... 😁

                                        Er hat eine Synology 😉

                                        1 Reply Last reply Reply Quote 0
                                        • apollon77
                                          apollon77 @Negalein last edited by

                                          @Negalein leg mal bitte issue im github an das wir das mit installieren lassen

                                          Negalein 1 Reply Last reply Reply Quote 0
                                          • Negalein
                                            Negalein Global Moderator @apollon77 last edited by

                                            @apollon77 sagte in IoBroker.phantomjs:

                                            leg mal bitte issue im github an das wir das mit installieren lassen

                                            mach ich

                                            Aber nochwas zum Sdapter.
                                            In den Objekten unter phantomjs.0 ändert sich nichts.

                                            So kommt es vom Script:

                                              sendTo("phantomjs.0", "send", {
                                                 url: 'http://10.0.1.22:32544/d/C3AZo2nGk/wetterstation-copy?orgId=1&refresh=1m&kiosk',
                                                 output: 'wetterstation.png',
                                                 width: '1920',
                                                 height: '1080',
                                                 renderTime: '60000'
                                              });
                                            

                                            So schauts aber unter Objekte aus.
                                            objects - ioBroker (4).png

                                            Bild wird aber so wie im Script gespeichert. Von da passt es.

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate
                                            FAQ Cloud / IOT
                                            HowTo: Node.js-Update
                                            HowTo: Backup/Restore
                                            Downloads
                                            BLOG

                                            890
                                            Online

                                            31.6k
                                            Users

                                            79.6k
                                            Topics

                                            1.3m
                                            Posts

                                            32
                                            148
                                            18526
                                            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