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. ioBroker Allgemein
  4. IoBroker.phantomjs

NEWS

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

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

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    25
    1
    2.5k

IoBroker.phantomjs

Scheduled Pinned Locked Moved ioBroker Allgemein
148 Posts 32 Posters 26.5k Views 19 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.
  • H Offline
    H Offline
    homecineplexx
    wrote on last edited by
    #42

    also ich hab jetzt testweise auf meinem windows pc iobroker und phantomjs aufgesetzt, aber so richtig funktioniert das nicht mit dem snapshot oder?

    hier der testcode

    function testSomething () {
        sendTo('phantomjs.0', 'send', {
            url: 'http://192.168.1.2:8081/#tab-instances',
            output: 'chrk-test.png',
            width: 1000,
            height: 800,
           renderTime: 20000,
           online: true
        }, function (result) {
            console.log(result.error + ' ' + result.output);
        });
    }
    
    testSomething();
    
    

    und als anhang 2 fotos (hier werden scheinbar nicht alle daten/bilder geladen)
    6704_chrk-test.png
    6704_original_instanzenjpg.jpg

    1 Reply Last reply
    0
    • H holgerwolf

      Bitteschön:

      531_blockly-boden.jpeg

      J Offline
      J Offline
      jensus11
      wrote on last edited by
      #43

      @holgerwolf

      Hi, wie hast du die Punkte output, width usw. da hinzugefügt?
      Bei mir fehlen die. Schaut so aus.

      Bildschirmfoto 2019-03-02 um 11.07.26.png

      1 Reply Last reply
      0
      • J Offline
        J Offline
        jensus11
        wrote on last edited by
        #44

        Habe es hinbekommen mit den Punkten.
        So sieht mein Blockly jetzt aus.
        Bildschirmfoto 2019-03-02 um 16.20.05.png

        Leider erhalte ich dann folgende Error Meldung.

        {"killed":false,"code":1,"signal":null,"cmd":"/opt/iobroker/node_modules/iobroker.phantomjs/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs /opt/iobroker/node_modules/iobroker.phantomjs/lib/
        
        

        Was ist damit gemeint?

        1 Reply Last reply
        0
        • chucky666C chucky666

          Hallo zusammen

          Kann mir einer per Blocky erklären wie ich das Foto per Telegram verschicke ?

          Gesendet von iPad mit Tapatalk Pro

          cvidalC Offline
          cvidalC Offline
          cvidal
          Forum Testing
          wrote on last edited by
          #45

          @chucky666 sagte in IoBroker.phantomjs:

          Hallo zusammen

          Kann mir einer per Blocky erklären wie ich das Foto per Telegram verschicke ?

          Gesendet von iPad mit Tapatalk Pro

          Bist du schon weitergekommen? Ich bekomme das Bild wohl abgespeichert aber bei mir hackt auch das Bild per Telegram zu versenden.

          chucky666C 1 Reply Last reply
          0
          • cvidalC cvidal

            @chucky666 sagte in IoBroker.phantomjs:

            Hallo zusammen

            Kann mir einer per Blocky erklären wie ich das Foto per Telegram verschicke ?

            Gesendet von iPad mit Tapatalk Pro

            Bist du schon weitergekommen? Ich bekomme das Bild wohl abgespeichert aber bei mir hackt auch das Bild per Telegram zu versenden.

            chucky666C Online
            chucky666C Online
            chucky666
            wrote on last edited by
            #46

            @cvidal sagte in IoBroker.phantomjs:

            @chucky666 sagte in IoBroker.phantomjs:

            Hallo zusammen

            Kann mir einer per Blocky erklären wie ich das Foto per Telegram verschicke ?

            Gesendet von iPad mit Tapatalk Pro

            Bist du schon weitergekommen? Ich bekomme das Bild wohl abgespeichert aber bei mir hackt auch das Bild per Telegram zu versenden.

            Das Problem hatte ich auch , ich habe es erstmal pausiert

            1 Reply Last reply
            0
            • R Offline
              R Offline
              ratte-rizzo
              wrote on last edited by
              #47

              Moin

              Auf meinem Nuc mit Debian wollte ich den PhantomJS adapter installieren, was auch problemlos geklappt hat. Beim Starten des Beispiel-Skriptes gibts aber nur folgende Fehlermeldung:

              2020-02-08 18:28:56.728 - error: phantomjs.0 (11391) {"killed":false,"code":1,"signal":null,"cmd":"/opt/iobroker/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs /opt/iobroker/node_modules/iobroker.phantomjs/lib/rasterize.js --url http://google.com --output \"/opt/iobroker/node_modules/iobroker.phantomjs/image.png\" --width 300 --height 200 --timeout 10000"}
              

              Hat jemand eine Idee für die Fehlersuche?

              Dank & Gruß
              Daniel

              J 1 Reply Last reply
              0
              • P Offline
                P Offline
                PatrickFro
                wrote on last edited by
                #48

                @apollon77 @Bluefox

                Moin

                Ich versuche auf einem Raspi 4 den Adapter zu installieren, funktioniert leider nicht. Sowohl von Github als normale Installation habe ich versucht. Abbruch erfolgt immer mit folgender Meldung:

                $ ./iobroker url "https://github.com/ioBroker/ioBroker.phantomjs"
                install https://github.com/ioBroker/ioBroker.phantomjs/tarball/36433ed1245baad15f93e2b74b4b9f66eaf9a1bf
                NPM version: 6.13.4
                npm install https://github.com/ioBroker/ioBroker.phantomjs/tarball/36433ed1245baad15f93e2b74b4b9f66eaf9a1bf --loglevel error --prefix "/opt/iobroker" (System call)
                Unexpected platform or architecture: linux/armIt seems there is no binary available for your platform/architectureTry to install PhantomJS globally
                npm ERR! code ELIFECYCLE
                npm ERR! errno 1npm ERR! phantomjs-prebuilt@2.1.16 install: `node install.js`npm ERR! Exit status 1npm ERR! npm ERR! Failed at the phantomjs-prebuilt@2.1.16 install script.npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
                
                npm ERR! A complete log of this run can be found in:npm ERR!     /home/iobroker/.npm/_logs/2020-03-17T07_33_20_311Z-debug.log
                ERROR: host.raspberrypi Cannot install https://github.com/ioBroker/ioBroker.phantomjs/tarball/36433ed1245baad15f93e2b74b4b9f66eaf9a1bf: 1
                ERROR: process exited with code 25
                
                apollon77A 1 Reply Last reply
                0
                • P PatrickFro

                  @apollon77 @Bluefox

                  Moin

                  Ich versuche auf einem Raspi 4 den Adapter zu installieren, funktioniert leider nicht. Sowohl von Github als normale Installation habe ich versucht. Abbruch erfolgt immer mit folgender Meldung:

                  $ ./iobroker url "https://github.com/ioBroker/ioBroker.phantomjs"
                  install https://github.com/ioBroker/ioBroker.phantomjs/tarball/36433ed1245baad15f93e2b74b4b9f66eaf9a1bf
                  NPM version: 6.13.4
                  npm install https://github.com/ioBroker/ioBroker.phantomjs/tarball/36433ed1245baad15f93e2b74b4b9f66eaf9a1bf --loglevel error --prefix "/opt/iobroker" (System call)
                  Unexpected platform or architecture: linux/armIt seems there is no binary available for your platform/architectureTry to install PhantomJS globally
                  npm ERR! code ELIFECYCLE
                  npm ERR! errno 1npm ERR! phantomjs-prebuilt@2.1.16 install: `node install.js`npm ERR! Exit status 1npm ERR! npm ERR! Failed at the phantomjs-prebuilt@2.1.16 install script.npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
                  
                  npm ERR! A complete log of this run can be found in:npm ERR!     /home/iobroker/.npm/_logs/2020-03-17T07_33_20_311Z-debug.log
                  ERROR: host.raspberrypi Cannot install https://github.com/ioBroker/ioBroker.phantomjs/tarball/36433ed1245baad15f93e2b74b4b9f66eaf9a1bf: 1
                  ERROR: process exited with code 25
                  
                  apollon77A Offline
                  apollon77A Offline
                  apollon77
                  wrote on last edited by
                  #49

                  @PatrickFro Ja, das liegt daran das phantomjs und raspis sich nicht wirklich mögen ... Da musst Du mal Googeln - es gibt da Wege, aber alle manuell.

                  Beitrag hat geholfen? Votet rechts unten im Beitrag :-) https://paypal.me/Apollon77 / https://github.com/sponsors/Apollon77

                  • Debug-Log für Instanz einschalten? Admin -> Instanzen -> Expertenmodus -> Instanz aufklappen - Loglevel ändern
                  • Logfiles auf Platte /opt/iobroker/log/… nutzen, Admin schneidet Zeilen ab
                  P 1 Reply Last reply
                  1
                  • apollon77A apollon77

                    @PatrickFro Ja, das liegt daran das phantomjs und raspis sich nicht wirklich mögen ... Da musst Du mal Googeln - es gibt da Wege, aber alle manuell.

                    P Offline
                    P Offline
                    PatrickFro
                    wrote on last edited by
                    #50

                    @apollon77 Danke. Da meine Fähigkeiten bzw. das Zutrauen in meine Fähigkeiten dies betreffend nicht passen, werd ich mal andere Wege suchen.

                    1 Reply Last reply
                    0
                    • R ratte-rizzo

                      Moin

                      Auf meinem Nuc mit Debian wollte ich den PhantomJS adapter installieren, was auch problemlos geklappt hat. Beim Starten des Beispiel-Skriptes gibts aber nur folgende Fehlermeldung:

                      2020-02-08 18:28:56.728 - error: phantomjs.0 (11391) {"killed":false,"code":1,"signal":null,"cmd":"/opt/iobroker/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs /opt/iobroker/node_modules/iobroker.phantomjs/lib/rasterize.js --url http://google.com --output \"/opt/iobroker/node_modules/iobroker.phantomjs/image.png\" --width 300 --height 200 --timeout 10000"}
                      

                      Hat jemand eine Idee für die Fehlersuche?

                      Dank & Gruß
                      Daniel

                      J Offline
                      J Offline
                      jupp78
                      wrote on last edited by
                      #51

                      @ratte-rizzo
                      Moin,
                      wahrscheinlich ist Debian Buster installiert. Die openssl.cnf ist hier so verändert, daß PhantomJS nicht läuft.
                      Lösung war auf einer russischen Seite:

                      Die Datei /etc/ssl/openssl.cnf öffnen und

                      #ssl_conf = ssl_sect
                      

                      auskommentieren. Befindet sich ziemlich am Ende der Datei.

                      Bei mir funktioniert PhantomJS anschließend tadellos.

                      Vielleicht hilft es.

                      Gruß,
                      de Jupp

                      1 Reply Last reply
                      0
                      • OliverIOO Offline
                        OliverIOO Offline
                        OliverIO
                        wrote on last edited by
                        #52

                        die fehlermeldung ist aber eine andere.
                        Wenn so eine Fehlermeldung kommt

                        Unexpected platform or architecture: linux/armIt seems there is no binary available for your platform/architectureTry to install PhantomJS globally
                        

                        Dann muss npm das packet kompilieren. Dafür sind dann die entsprechenden Tools nicht installiert oder dem prozess fehlen die entsprechende Rechte.

                        Deswegen könnte man zuvor mal folgendes probieren:

                        sudo npm install -g phantomjs
                        

                        das installiert zunächst nicht den adapter, sondern die Bibliothek, die der Adapter benötigt. Wenn das dann erfolgreich passiert ist, dann kann man nochmal probieren den Adapter in iobroker zu installieren.

                        Meine Adapter und Widgets
                        TVProgram, SqueezeboxRPC, OpenLiga, RSSFeed, MyTime,, pi-hole2, vis-json-template, skiinfo, vis-mapwidgets, vis-2-widgets-rssfeed
                        Links im Profil

                        R 1 Reply Last reply
                        1
                        • OliverIOO OliverIO

                          die fehlermeldung ist aber eine andere.
                          Wenn so eine Fehlermeldung kommt

                          Unexpected platform or architecture: linux/armIt seems there is no binary available for your platform/architectureTry to install PhantomJS globally
                          

                          Dann muss npm das packet kompilieren. Dafür sind dann die entsprechenden Tools nicht installiert oder dem prozess fehlen die entsprechende Rechte.

                          Deswegen könnte man zuvor mal folgendes probieren:

                          sudo npm install -g phantomjs
                          

                          das installiert zunächst nicht den adapter, sondern die Bibliothek, die der Adapter benötigt. Wenn das dann erfolgreich passiert ist, dann kann man nochmal probieren den Adapter in iobroker zu installieren.

                          R Offline
                          R Offline
                          ratte-rizzo
                          wrote on last edited by
                          #53

                          @OliverIO
                          Hervorragend, das hats gelöst!
                          Dankeschön!

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

                            Hallo

                            Ich möchte mit dem Adapter ein .png eines Grafana-Dashboards erstellen.
                            Dazu hab ich das Blockly von @holgerwolf nachgebaut.
                            javascript - ioBroker (4).png

                            <xml xmlns="https://developers.google.com/blockly/xml">
                              <block type="schedule" id="*qZet(W7v?U_yLeQA|c3" x="213" y="38">
                                <field name="SCHEDULE">*/5 * * * *</field>
                                <statement name="STATEMENT">
                                  <block type="sendto_custom" id="(8Qa:{svVFnC{xMV)S%R">
                                    <mutation xmlns="http://www.w3.org/1999/xhtml" items="url,output,width,high,rendertime" with_statement="false"></mutation>
                                    <field name="INSTANCE">phantomjs.0</field>
                                    <field name="COMMAND">send</field>
                                    <field name="LOG"></field>
                                    <field name="WITH_STATEMENT">FALSE</field>
                                    <value name="ARG0">
                                      <shadow type="text" id="=N=}Y@wOHqX7jz1NEb6N">
                                        <field name="TEXT">http://10.0.1.22:32544/d/oNYohoEZk/wetterstation?orgId=1&amp;refresh=1m&amp;kiosk</field>
                                      </shadow>
                                    </value>
                                    <value name="ARG1">
                                      <shadow type="text" id="Ex1%T=Eca0lEc{1~*eD3">
                                        <field name="TEXT">wetter.png</field>
                                      </shadow>
                                    </value>
                                    <value name="ARG2">
                                      <shadow type="text" id="2[)0[jVDAY$[@zd~y`nf">
                                        <field name="TEXT">800</field>
                                      </shadow>
                                    </value>
                                    <value name="ARG3">
                                      <shadow type="text" id="T@tgj{AFUcXgH9|0A!*;">
                                        <field name="TEXT">600</field>
                                      </shadow>
                                    </value>
                                    <value name="ARG4">
                                      <shadow type="text" id="H0EnAmUp;[/Y0KeM#2je">
                                        <field name="TEXT">10000</field>
                                      </shadow>
                                    </value>
                                    <next>
                                      <block type="exec" id="=n,w~lE1+uuw%TQ:VJ|=">
                                        <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation>
                                        <field name="WITH_STATEMENT">FALSE</field>
                                        <field name="LOG">log</field>
                                        <value name="COMMAND">
                                          <shadow type="text" id="Ur.*Qi8vA(oEiHFh+PSe">
                                            <field name="TEXT">wput -nc /opt/iobroker/node_modules/iobroker.phantomjs/boden-ext.png ftp://user:password@www37.world4you.com</field>
                                          </shadow>
                                        </value>
                                      </block>
                                    </next>
                                  </block>
                                </statement>
                              </block>
                            </xml>
                            

                            Leider wird kein Bild gespeichert.
                            Bekomme folgenden Errir.

                            2020-07-15 17:10:00.515  - info: phantomjs.0 (2841) Create 800px*undefinedpx in undefinedms - "http://10.0.1.22:32544/d/oNYohoEZk/wetterstation?orgId=1&refresh=1m&kiosk" => "/opt/iobroker/node_modules/iobroker.phantomjs/wetter.png"
                            2020-07-15 17:10:00.527  - info: javascript.0 (595) script.js.common.Wetter_to_FTP: exec: wput -nc /opt/iobroker/node_modules/iobroker.phantomjs/boden-ext.png ftp://user:password@www37.world4you.com
                            2020-07-15 17:10:00.596  - error: phantomjs.0 (2841) {"killed":false,"code":127,"signal":null,"cmd":"/opt/iobroker/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs /opt/iobroker/node_modules/iobroker.phantomjs/lib/rasterize.js --url http://10.0.1.22:32544/d/oNYohoEZk/wetterstation?orgId=1&refresh=1m&kiosk --output \"/opt/iobroker/node_modules/iobroker.phantomjs/wetter.png\" --width 800 --high 600 --rendertime 10000"}
                            

                            Kann mir da wer weiterhelfen?

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

                            H 1 Reply Last reply
                            0
                            • NegaleinN Negalein

                              Hallo

                              Ich möchte mit dem Adapter ein .png eines Grafana-Dashboards erstellen.
                              Dazu hab ich das Blockly von @holgerwolf nachgebaut.
                              javascript - ioBroker (4).png

                              <xml xmlns="https://developers.google.com/blockly/xml">
                                <block type="schedule" id="*qZet(W7v?U_yLeQA|c3" x="213" y="38">
                                  <field name="SCHEDULE">*/5 * * * *</field>
                                  <statement name="STATEMENT">
                                    <block type="sendto_custom" id="(8Qa:{svVFnC{xMV)S%R">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" items="url,output,width,high,rendertime" with_statement="false"></mutation>
                                      <field name="INSTANCE">phantomjs.0</field>
                                      <field name="COMMAND">send</field>
                                      <field name="LOG"></field>
                                      <field name="WITH_STATEMENT">FALSE</field>
                                      <value name="ARG0">
                                        <shadow type="text" id="=N=}Y@wOHqX7jz1NEb6N">
                                          <field name="TEXT">http://10.0.1.22:32544/d/oNYohoEZk/wetterstation?orgId=1&amp;refresh=1m&amp;kiosk</field>
                                        </shadow>
                                      </value>
                                      <value name="ARG1">
                                        <shadow type="text" id="Ex1%T=Eca0lEc{1~*eD3">
                                          <field name="TEXT">wetter.png</field>
                                        </shadow>
                                      </value>
                                      <value name="ARG2">
                                        <shadow type="text" id="2[)0[jVDAY$[@zd~y`nf">
                                          <field name="TEXT">800</field>
                                        </shadow>
                                      </value>
                                      <value name="ARG3">
                                        <shadow type="text" id="T@tgj{AFUcXgH9|0A!*;">
                                          <field name="TEXT">600</field>
                                        </shadow>
                                      </value>
                                      <value name="ARG4">
                                        <shadow type="text" id="H0EnAmUp;[/Y0KeM#2je">
                                          <field name="TEXT">10000</field>
                                        </shadow>
                                      </value>
                                      <next>
                                        <block type="exec" id="=n,w~lE1+uuw%TQ:VJ|=">
                                          <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation>
                                          <field name="WITH_STATEMENT">FALSE</field>
                                          <field name="LOG">log</field>
                                          <value name="COMMAND">
                                            <shadow type="text" id="Ur.*Qi8vA(oEiHFh+PSe">
                                              <field name="TEXT">wput -nc /opt/iobroker/node_modules/iobroker.phantomjs/boden-ext.png ftp://user:password@www37.world4you.com</field>
                                            </shadow>
                                          </value>
                                        </block>
                                      </next>
                                    </block>
                                  </statement>
                                </block>
                              </xml>
                              

                              Leider wird kein Bild gespeichert.
                              Bekomme folgenden Errir.

                              2020-07-15 17:10:00.515  - info: phantomjs.0 (2841) Create 800px*undefinedpx in undefinedms - "http://10.0.1.22:32544/d/oNYohoEZk/wetterstation?orgId=1&refresh=1m&kiosk" => "/opt/iobroker/node_modules/iobroker.phantomjs/wetter.png"
                              2020-07-15 17:10:00.527  - info: javascript.0 (595) script.js.common.Wetter_to_FTP: exec: wput -nc /opt/iobroker/node_modules/iobroker.phantomjs/boden-ext.png ftp://user:password@www37.world4you.com
                              2020-07-15 17:10:00.596  - error: phantomjs.0 (2841) {"killed":false,"code":127,"signal":null,"cmd":"/opt/iobroker/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs /opt/iobroker/node_modules/iobroker.phantomjs/lib/rasterize.js --url http://10.0.1.22:32544/d/oNYohoEZk/wetterstation?orgId=1&refresh=1m&kiosk --output \"/opt/iobroker/node_modules/iobroker.phantomjs/wetter.png\" --width 800 --high 600 --rendertime 10000"}
                              

                              Kann mir da wer weiterhelfen?

                              H Offline
                              H Offline
                              holgerwolf
                              wrote on last edited by holgerwolf
                              #55

                              @Negalein Lösche mal schnell deine ftp Zugangsdaten aus dem Log oben... Blödsinn, sorry

                              NegaleinN 1 Reply Last reply
                              0
                              • H holgerwolf

                                @Negalein Lösche mal schnell deine ftp Zugangsdaten aus dem Log oben... Blödsinn, sorry

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

                                @holgerwolf sagte in IoBroker.phantomjs:

                                sorry

                                Kein Problem.

                                Kannst du dir denken, was der Fehler ist?

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

                                H ? 2 Replies Last reply
                                0
                                • NegaleinN Negalein

                                  @holgerwolf sagte in IoBroker.phantomjs:

                                  sorry

                                  Kein Problem.

                                  Kannst du dir denken, was der Fehler ist?

                                  H Offline
                                  H Offline
                                  holgerwolf
                                  wrote on last edited by holgerwolf
                                  #57

                                  @Negalein Der erste Aufruf im Log sieht schon falsch aus. Bei mir steht da:

                                  Create 1200px*800px in 10000ms - "http://192.168.178.63:8082/vis/index.html#Wetter_Ext" => "/opt/iobroker/node_modules/iobroker.phantomjs/wetter-ext.png"
                                  

                                  Irgendwie werde die Werte aus deinem Blockly nicht übernommen. Vergessen das Blockly nach einer Änderung abzuspeichern? Schau dir mal den Javascript Code dazu an.

                                  NegaleinN 1 Reply Last reply
                                  0
                                  • H holgerwolf

                                    @Negalein Der erste Aufruf im Log sieht schon falsch aus. Bei mir steht da:

                                    Create 1200px*800px in 10000ms - "http://192.168.178.63:8082/vis/index.html#Wetter_Ext" => "/opt/iobroker/node_modules/iobroker.phantomjs/wetter-ext.png"
                                    

                                    Irgendwie werde die Werte aus deinem Blockly nicht übernommen. Vergessen das Blockly nach einer Änderung abzuspeichern? Schau dir mal den Javascript Code dazu an.

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

                                    @holgerwolf sagte in IoBroker.phantomjs:

                                    Irgendwie werde die Werte aus deinem Blockly nicht übernommen

                                    hmmm, komisch
                                    Eigegeben sind sie richtig.

                                    Vergessen das Blockly nach einer Änderung abzuspeichern?

                                    Nein, eigentlich nicht.

                                    Schau dir mal den Javascript Code dazu an.

                                    schedule("*/5 * * * *", function () {
                                      sendTo("phantomjs.0", "send", {
                                         "url": 'http://10.0.1.22:32544/d/oNYohoEZk/wetterstation?orgId=1&refresh=1m&kiosk',
                                         "output": 'wetter.png',
                                         "width": '800',
                                         "high": '600',
                                         "rendertime": '10000'
                                      });
                                      exec('wput -nc /opt/iobroker/node_modules/iobroker.phantomjs/boden-ext.png ftp://user:password@www37.world4you.com');
                                      console.log("exec: " + 'wput -nc /opt/iobroker/node_modules/iobroker.phantomjs/boden-ext.png ftp://user:password@www37.world4you.com');
                                    });
                                    

                                    Hää, wo kommt da im JS-Code jetzt das boden-ext.pngher?

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

                                    H F 2 Replies Last reply
                                    0
                                    • NegaleinN Negalein

                                      @holgerwolf sagte in IoBroker.phantomjs:

                                      Irgendwie werde die Werte aus deinem Blockly nicht übernommen

                                      hmmm, komisch
                                      Eigegeben sind sie richtig.

                                      Vergessen das Blockly nach einer Änderung abzuspeichern?

                                      Nein, eigentlich nicht.

                                      Schau dir mal den Javascript Code dazu an.

                                      schedule("*/5 * * * *", function () {
                                        sendTo("phantomjs.0", "send", {
                                           "url": 'http://10.0.1.22:32544/d/oNYohoEZk/wetterstation?orgId=1&refresh=1m&kiosk',
                                           "output": 'wetter.png',
                                           "width": '800',
                                           "high": '600',
                                           "rendertime": '10000'
                                        });
                                        exec('wput -nc /opt/iobroker/node_modules/iobroker.phantomjs/boden-ext.png ftp://user:password@www37.world4you.com');
                                        console.log("exec: " + 'wput -nc /opt/iobroker/node_modules/iobroker.phantomjs/boden-ext.png ftp://user:password@www37.world4you.com');
                                      });
                                      

                                      Hää, wo kommt da im JS-Code jetzt das boden-ext.pngher?

                                      H Offline
                                      H Offline
                                      holgerwolf
                                      wrote on last edited by
                                      #59

                                      boden-ext.png heißt das Bild bei mir. Da passt der wput Befehl bei dir nicht. Du speicherst "wetter.png" willst dann aber "boden-ext.png" übertragen. Vergessen anzupassen ;-)

                                      NegaleinN 1 Reply Last reply
                                      0
                                      • H holgerwolf

                                        boden-ext.png heißt das Bild bei mir. Da passt der wput Befehl bei dir nicht. Du speicherst "wetter.png" willst dann aber "boden-ext.png" übertragen. Vergessen anzupassen ;-)

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

                                        @holgerwolf sagte in IoBroker.phantomjs:

                                        Vergessen anzupassen

                                        Ja, das war der Teil, den ich von dir kopiert habe. Ahhhhh, dummer Fehler.
                                        Habs jetzt geändert. Meld mich in 5 Min. wieder obs geklappt hat.

                                        ° 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
                                          #61

                                          @holgerwolf

                                          Der Create 800px*undefinedpx in undefinedmsFehler bleibt.

                                          Auch als reines JS bleibt der Fehler.

                                          Auch mit einer anderen Seite (dachte, eventuell liegt es an der lokalen Grafana-Installation) bleibt der Fehler.
                                          Create 1200px*undefinedpx in undefinedms - "https://www.luftbilder-innviertel.at" => "/opt/iobroker/node_modules/iobroker.phantomjs/wetter.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
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          Support us

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

                                          636

                                          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