Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. Phantomjs Screenshot VIS Ladebalken

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    UNSOLVED Phantomjs Screenshot VIS Ladebalken

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

      Moin,

      seit ca. einem Jahr nutze ich PhantomJS für 2 Projekte (1. Mal wöchentlich, einmal monatlich).

      Seit gestern kommt ein Screenshot der VIS mit Ladebalken, nicht mehr der Seite. Rendertime 10.000 oder 30.000, gleiches Ergebnis. Externe Seite (Google.de) funktioniert.

      Ich habe schon folgende Adapter auf vergangene Versionen downgegradet: Web, Vis, PhantomJS. Kein Unterschied. All diese habe ich vor kurzem aktualisiert, scheinbar liegt es aber nicht hieran.

      Seit etwa einer Woche läuft mein NUC als Master, ein Raspi als Slave. Ausführung der Scripte erfolgt aber auf dem NUC.

      Log (debug):

      phantomjs.0	2020-12-07 15:11:24.195	debug	(3077) sendTo "send" to system.adapter.javascript.0 from system.adapter.phantomjs.0
      phantomjs.0	2020-12-07 15:11:24.194	debug	(3077) viewportSize: {"height":800,"width":1950} clipRect: {"height":800,"left":0,"top":0,"width":1950} paperSize: {} scrollPosition: {"left":0,"top":0} URL: http://192.168.76.
      phantomjs.0	2020-12-07 15:11:24.151	debug	(3077) and save to "/opt/iobroker/node_modules/iobroker.phantomjs/Anspannungswoche.png"
      phantomjs.0	2020-12-07 15:10:53.632	debug	(3077) /opt/iobroker/node_modules/iobroker.phantomjs/lib/rasterize.js --url http://192.168.76.43:8082/vis/index.html?Hauptview#Anspannungswoche --output "/opt/iobroker/node_modules/iobroker.phantomjs/
      phantomjs.0	2020-12-07 15:10:53.631	info	(3077) Create 1950px*800px in 30000ms - "http://192.168.76.43:8082/vis/index.html?Hauptview#Anspannungswoche" => "/opt/iobroker/node_modules/iobroker.phantomjs/Anspannungswoche.png"
      phantomjs.0	2020-12-07 15:10:45.022	info	(3077) starting. Version 1.0.1 in /opt/iobroker/node_modules/iobroker.phantomjs, node: v12.20.0, js-controller: 3.1.6
      

      Ich weiß leider nicht weiter, wie kann ich hierbei herausfinden, was schief läuft?

      Systemdata Bitte Ausfüllen
      Hardwaresystem: NUC i5 Master / Raspi 4 B Slave
      Arbeitsspeicher: 16 GB
      Festplattenart: SD-Karte
      Betriebssystem: Linux
      Node-Version: v12.20.0
      Nodejs-Version: v12.20.0
      Installationsart: Skript
      Image genutzt: Nein
      P 1 Reply Last reply Reply Quote 0
      • P
        PatrickFro @PatrickFro last edited by

        Weitere Lösungsversuche:

        Nodejs downgrade, da mir eingefallen ist, dass ich hierbei ein Update vor etwa einer Woche gemacht habe, auch kein Erfolg.

        Script Engine downgrade: keine Änderung

        H 1 Reply Last reply Reply Quote 0
        • H
          homecineplexx @PatrickFro last edited by homecineplexx

          @PatrickFro bei mir tritt das gleiche Problem auf. keine Seite die ich über VIS angelegt habe funktioniert.
          ich hab auch noch versucht folgendes zu setzen:

          localToRemoteUrlAccessEnabled : true,
              webSecurityEnabled: false
          

          bringt aber absolut keine Änderung.
          ich hab jetzt nochmals genau in den logs geschaut, da kommt folgendes:


          2020-12-11 18:07:18.111 - ESC[32minfoESC[39m: phantomjs.0 (15500) Create 800px*600px in 20000ms - "http://192.168.1.8:8082/vis/index.html
          #PVAnlage" => "/opt/iobroker/node_modules/iobroker.phantomjs/ownBilder/PvAnlage-2020-12-11-18-07-18.png"
          2020-12-11 18:07:18.111 - ESC[34mdebugESC[39m: phantomjs.0 (15500) --ignore-ssl-errors=true /opt/iobroker/node_modules/iobroker.phantomjs
          /lib/rasterize.js --url http://192.168.1.8:8082/vis/index.html#PVAnlage --output "/opt/iobroker/node_modules/iobroker.phantomjs/ownBilder/
          PvAnlage-2020-12-11-18-07-18.png" --width 800 --height 600 --timeout 20000 --zoom 1 --clip-top 0 --clip-left 0 --clip-width 800 --clip-hei
          ght 600 --scroll-top 0 --scroll-left 0
          2020-12-11 18:07:39.904 - ESC[34mdebugESC[39m: phantomjs.0 (15500) and save to "/opt/iobroker/node_modules/iobroker.phantomjs/ownBilder/P
          vAnlage-2020-12-11-18-07-18.png"
          2020-12-11 18:07:39.905 - ESC[34mdebugESC[39m: phantomjs.0 (15500) viewportSize: {"height":600,"width":800}
          clipRect: {"height":600,"left":0,"top":0,"width":800}
          paperSize: {}
          scrollPosition: {"left":0,"top":0}
          URL: http://192.168.1.8:8082/vis/index.html#PVAnlage
          output: /opt/iobroker/node_modules/iobroker.phantomjs/ownBilder/PvAnlage-2020-12-11-18-07-18.png
          zoom: 1
          ERROR: ReferenceError: Can't find variable: vis
          TRACE:
          -> http://192.168.1.8:8082/vis/widgets/basic/js/table.js: 42 (in function "global code")

          phantomjs://code/rasterize.js:209 in onError
          ERROR: ReferenceError: Can't find variable: vis
          TRACE:
          -> http://192.168.1.8:8082/vis/index.html#PVAnlage: 59 (in function "global code")

          phantomjs://code/rasterize.js:209 in onError
          ERROR: ReferenceError: Can't find variable: vis
          TRACE:
          -> http://192.168.1.8:8082/vis/index.html#PVAnlage: 3994 (in function "global code")

          phantomjs://code/rasterize.js:209 in onError
          ERROR: ReferenceError: Can't find variable: vis
          TRACE:
          -> http://192.168.1.8:8082/vis/index.html#PVAnlage: 4175 (in function "global code")

          phantomjs://code/rasterize.js:209 in onError
          ERROR: ReferenceError: Can't find variable: vis
          TRACE:
          -> http://192.168.1.8:8082/vis/index.html#PVAnlage: 6179 (in function "global code")

          phantomjs://code/rasterize.js:209 in onError
          ERROR: ReferenceError: Can't find variable: vis
          TRACE:
          -> http://192.168.1.8:8082/vis/widgets/players/js/players.js: 9 (in function "global code")

          phantomjs://code/rasterize.js:209 in onError
          ERROR: ReferenceError: Can't find variable: vis
          TRACE:
          -> http://192.168.1.8:8082/vis/index.html#PVAnlage: 8249 (in function "global code")

          phantomjs://code/rasterize.js:209 in onError
          ERROR: ReferenceError: Can't find variable: vis
          TRACE:
          -> http://192.168.1.8:8082/vis/index.html#PVAnlage: 11412 (in function "global code")

          phantomjs://code/rasterize.js:209 in onError
          ERROR: ReferenceError: Can't find variable: vis
          TRACE:
          -> http://192.168.1.8:8082/vis/index.html#PVAnlage: 11659 (in function "global code")

          phantomjs://code/rasterize.js:209 in onError
          ERROR: ReferenceError: Can't find variable: vis
          TRACE:
          -> http://192.168.1.8:8082/vis/index.html#PVAnlage: 11755 (in function "global code")

          phantomjs://code/rasterize.js:209 in onError

          2020-12-11 18:07:39.905 - ESC[34mdebugESC[39m: phantomjs.0 (15500) sendTo "send" to system.adapter.javascript.0 from system.adapter.phantomjs.0


          Hilfe wäre hier super, DANKE

          H 1 Reply Last reply Reply Quote 0
          • H
            homecineplexx @homecineplexx last edited by

            @homecineplexx da schau her, alle möglichen adapter auf latest upgedatet und es funkt wieder

            T 1 Reply Last reply Reply Quote 0
            • T
              tro @homecineplexx last edited by

              @homecineplexx said in Phantomjs Screenshot VIS Ladebalken:

              @homecineplexx

              Hallo, habe genau das gleiche Problem, die Bilder der VIS welche mit Phantom erstellt werden, erscheint nur das Lade Icon im Bild, diesen Zustand ist seit dem letzten Update des admin Adapter so, auch die Fehlermeldung "ReferenceError: Can't find variable: vis".
              Bevor ich nun auf meinem System alle Adapter auf Latest(Beta) update, weist Du noch welche bei Dir das Problem beseitigt haben?

              Danke

              H 1 Reply Last reply Reply Quote 0
              • H
                homecineplexx @tro last edited by

                @tro also wissen tu ichs nicht, aber ich denke es war der VIS-Adapter

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

                Support us

                ioBroker
                Community Adapters
                Donate

                665
                Online

                31.9k
                Users

                80.1k
                Topics

                1.3m
                Posts

                vis phantomjs
                3
                6
                397
                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