Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Tester
    4. Test eCharts Adapter

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Test eCharts Adapter

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

      @homoran,
      ja, habe ich angepasst.
      Sieht bei mir momentan so aus:

      // Chart vorbereiten und an Telegram-Empfänger schicken
      sendTo('echarts.0', {
      	preset: 'echarts.0.Heizung.Solaranlage',
      	renderer: 'png',
              fileOnDisk: '/tmp/chart.png'
      }, result => {
      	if (result.error) {
      		console.error(result.error);
      	} else {
      		console.log(result.data);
              sendTo('telegram.0', '/tmp/chart.png');
      	}
      });
      
      Homoran 1 Reply Last reply Reply Quote 0
      • Homoran
        Homoran Global Moderator Administrators @Steff last edited by

        @steff in /tmp/ liegt nichts?

        Steff 1 Reply Last reply Reply Quote 0
        • Steff
          Steff @Homoran last edited by

          @homoran sagte in Test eCharts Adapter:

          @steff in /tmp/ liegt nichts?

          Nee, das File wird nicht angelegt.

          Homoran 1 Reply Last reply Reply Quote 0
          • Homoran
            Homoran Global Moderator Administrators @Steff last edited by

            @steff Hab es gerade getestet und bekomme folgenden Error:

            11:25:17.553	error	javascript.0 (4830) script.js.serverside_rendering: Cannot find required modules: looks like it is not possible to generate charts on your Hardware/OS
            
            Steff 1 Reply Last reply Reply Quote 0
            • Steff
              Steff @Homoran last edited by

              @homoran,
              Hui, solch eine Fehlermeldung bekomme ich gar nicht.

              1 Reply Last reply Reply Quote 0
              • David G.
                David G. @dskrt last edited by

                @dskrt

                Evtl hilft das weiter:

                @david-g said in Test eCharts Adapter:

                @Hydrokultur
                Ich mache es folgendermaßen:

                Das echart in einem neuen Tab öffnen. Dafür gibt es ja ein Symbol.

                Screenshot_20201204-173642_Chrome.jpg

                Dann den Link kopieren. Allerdings dann den Port von 8081 auf 8082 abändern. Sonst geht es nicht.

                D 1 Reply Last reply Reply Quote 0
                • stephan1827
                  stephan1827 @David G. last edited by

                  @david-g bei mir laufen beide über HTTP, wenn ich den Adpater Web auf HTTPS umstellen dann funktioniert keines des iFrames. Die Adresse von jarvis ist

                  http://192.168.86.90:8082/jarvis/index.html#instance=0

                  und die von echart is

                  http://192.168.86.90:8081/adapter/echarts/chart/index.html?preset=echarts.0.Solar

                  Kann es eventuell an dem Port liegen. Kann ich den bei echart ändern?

                  Stephan

                  David G. 1 Reply Last reply Reply Quote 0
                  • Steff
                    Steff last edited by

                    @homoran sagte in Test eCharts Adapter:

                    Weißt du welche Module bei dir fehlen?

                    Homoran 2 Replies Last reply Reply Quote 0
                    • Homoran
                      Homoran Global Moderator Administrators @Steff last edited by

                      @steff sagte in Test eCharts Adapter:

                      Weißt du welche Module bei dir fehlen?

                      nee.
                      habe gerade mal nach sendTo gesehen, die existieren, auch für eCharts

                      1 Reply Last reply Reply Quote 0
                      • Homoran
                        Homoran Global Moderator Administrators @Steff last edited by Homoran

                        @steff Jetzt hab ich was:
                        echarts.0 2021-03-14 11:55:38.140 error (15339) Cannot find required modules: Error: Cannot find module 'canvas'

                        wieso denn das?

                        1 Reply Last reply Reply Quote 0
                        • David G.
                          David G. @stephan1827 last edited by David G.

                          @stephan1827

                          Nicht, dass ich wüsste....

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

                            @homoran sagte in Test eCharts Adapter:

                            wieso denn das?

                            Wenn ich auf der Seite npmjs.com siehe Link schaue steht unter den Dependencies canvas?! 😕

                            Homoran 2 Replies Last reply Reply Quote 0
                            • Homoran
                              Homoran Global Moderator Administrators @Steff last edited by

                              @steff sagte in Test eCharts Adapter:

                              @homoran sagte in Test eCharts Adapter:

                              wieso denn das?

                              Wenn ich auf der Seite npmjs.com siehe Link schaue steht unter den Dependencies canvas?! 😕

                              klar, aber wieso das nicht mehr drin ist....
                              Versuche es gerade nachzuinstallieren - stay tuned

                              1 Reply Last reply Reply Quote 0
                              • D
                                dskrt @David G. last edited by

                                @david-g Super, danke, klappt mit der Änderung des Ports! Ist aber schon eigenartig, Flot und Jarvis nutzen 8082, Echarts 8081 als Port. Vielleicht sollte das geändert werden ?

                                Homoran stephan1827 2 Replies Last reply Reply Quote 0
                                • Homoran
                                  Homoran Global Moderator Administrators @dskrt last edited by

                                  @dskrt sagte in Test eCharts Adapter:

                                  Vielleicht sollte das geändert werden ?

                                  kann man beides nutzen

                                  1 Reply Last reply Reply Quote 0
                                  • Homoran
                                    Homoran Global Moderator Administrators @Steff last edited by

                                    @steff so - updateorgie ist durch.
                                    Der Pi hat noch "eben schnell" ein Kernel-Update gezigen.
                                    Die canvas Meldung ist weg, dafür kommt jetzt:

                                    2021-03-14 12:57:08.583  - 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().
                                    2021-03-14 12:57:08.584  - error: echarts.0 (1025) unhandled promise rejection: this.socket.subscribeState is not a function
                                    2021-03-14 12:57:08.586  - error: echarts.0 (1025) TypeError: this.socket.subscribeState is not a function
                                        at socket.getState.then.catch.then (/opt/iobroker/node_modules/iobroker.echarts/_helpers/ChartModel.js:762:45)
                                        at process._tickCallback (internal/process/next_tick.js:68:7)
                                    2021-03-14 12:57:09.092  - info: echarts.0 (1025) terminating
                                    2021-03-14 12:57:09.094  - info: echarts.0 (1025) Terminated (NO_ERROR): Without reason
                                    2021-03-14 12:57:09.721  - info: host.raspberrypi instance system.adapter.echarts.0 terminated with code 0 (NO_ERROR)
                                    2021-03-14 12:57:09.722  - info: host.raspberrypi Restart adapter system.adapter.echarts.0 because enabled
                                    2021-03-14 12:57:39.762  - info: host.raspberrypi instance system.adapter.echarts.0 started with pid 2718
                                    2021-03-14 12:57:42.520  - info: echarts.0 (2718) starting. Version 0.4.10 in /opt/iobroker/node_modules/iobroker.echarts, node: v10.24.0, js-controller: 3.1.4
                                    
                                    Steff lobomau 2 Replies Last reply Reply Quote 0
                                    • Steff
                                      Steff @Homoran last edited by

                                      @homoran,
                                      Oje, das sieht ja gar nicht gut aus.
                                      Ich versuche gerade auch meinen PI soweit flott zu kriegen, damit ich solche Tests ebenfalls nachstellen kann. Puh... aber bei solchen Error-Log´s tu ich mir schon noch richtig schwer.

                                      Steff 1 Reply Last reply Reply Quote 0
                                      • stephan1827
                                        stephan1827 @dskrt last edited by

                                        @dskrt Hast Du den Port bei echart geändert? Wenn ich den Port bei web und jarvis ändere dann geht die web instanz auf rot.

                                        D 1 Reply Last reply Reply Quote 0
                                        • D
                                          dskrt @stephan1827 last edited by

                                          @stephan1827 Ja, den Link von echart ins Iframe gesetzt und dann dort den port auf 8082 gesetzt, das klappt

                                          1 Reply Last reply Reply Quote 0
                                          • lobomau
                                            lobomau @Homoran last edited by lobomau

                                            @homoran wie hattest du dein "canvas-Problem" gelöst? Das Problem ist ja schon seit Anfang an bei mir. Eben nochmal getestet und wieder. Damals hatte ich auch ein npmrebuold gemacht ohne Vrebesserung:

                                            2021-03-14 15:30:47.544 - error: echarts.0 (460) Cannot find required modules: Error: The module '/opt/iobroker/node_modules/canvas/build/Release/canvas.node'
                                            was compiled against a different Node.js version using
                                            NODE_MODULE_VERSION 64. This version of Node.js requires
                                            NODE_MODULE_VERSION 72. Please try re-compiling or re-installing
                                            the module (for instance, using `npm rebuild` or `npm install`).
                                            2021-03-14 15:30:47.556 - error: javascript.0 (4508) script.js.common.Test-echart: Cannot find required modules: looks like it is not possible to generate charts on your Hardware/OS
                                            
                                            Thomas Braun Homoran 2 Replies Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            518
                                            Online

                                            31.6k
                                            Users

                                            79.6k
                                            Topics

                                            1.3m
                                            Posts

                                            echarts
                                            101
                                            624
                                            126523
                                            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