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.
    • 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
                • Thomas Braun
                  Thomas Braun Most Active @lobomau last edited by

                  @lobomau
                  canvas rebuilden würde ich vorschlagen.

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

                    @lobomau sagte in Test eCharts Adapter:

                    wie hattest du dein "canvas-Problem" gelöst?

                    mist, gerade puTTY zugemacht.
                    @Thomas-Braun hatte irgendwo den notwendigen Befehl zur Nachinstalltion der Komponenten gepostet.
                    den hatte ich ausgeführt, danach beschwerte sich der Testraspi dass da nicht alles geht, ich solle noch ein --fix missing ausführen
                    Hab dann noch ein sudo apt update && sudo apt upgrade gefahren, was ein Kernel-Update mit sich brachte und ziemlich lange dauerte. Danach war dann aber alles gut

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

                      @homoran sagte in Test eCharts Adapter:

                      --fix missing

                      Das kam aber bestimmt nicht vom rebuild sondern vom Paketmanager?

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

                        @thomas-braun sagte in Test eCharts Adapter:

                        Paketmanager?

                        ja!
                        Nach dem Versuch die dev-utils(???) zu installieren
                        daraufhin hab ich ja das upgrade angestoßen um die deps auf den aktuellen stand zu bringen.

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

                          @homoran
                          Jaja, ein aktuelles und konsistentes System ist Gold wert! 🙂

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

                            @steff sagte in Test eCharts Adapter:

                            Ich versuche gerade auch meinen PI soweit flott zu kriegen...

                            Mist, dreimal die Karte abgekackt. Ich glaube die Dinger sind zu alt. 😲
                            Schluss für heute.
                            @Homoran, danke für deine Hilfe. Bist du eigentlich nach der Fehlermeldung noch weitergekommen?

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

                              @steff sagte in Test eCharts Adapter:

                              Bist du eigentlich nach der Fehlermeldung noch weitergekommen?

                              nein

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

                                Hallo,

                                eigentlich ist es j nicht so schwer, ein Bild der Tabelle zu erstellen.

                                Irgendwie passiert bei mir aber nichts.....

                                Anbei mein Code:

                                sendTo('echarts.0', {
                                    preset:   'echarts.0.System.Dieselpreise', // the only mandatory attribute
                                
                                    renderer: 'svg',                // svg | png | jpg | pdf, default: svg
                                
                                    width: 1024,                    // default 1024
                                    height: 300,                    // default 300
                                    background: '#000000',          // Background color
                                    theme: 'light',                 // Theme type: 'light', 'dark'
                                
                                    title: 'ioBroker Chart',        // Title of PDF document 
                                    quality: 0.8,                   // quality of JPG
                                    compressionLevel: 3,            // Compression level of PNG
                                    filters: 8,                     // Filters of PNG (Bit combination https://github.com/Automattic/node-canvas/blob/master/types/index.d.ts#L10)
                                
                                    fileOnDisk: '/tmp/chart.svg',   // Path on disk to save the file. 
                                    fileName: '',                   // Path in ioBroker DB to save the files on 'echarts.0'. E.g. if your set "chart.svg", so you can access your picture via http(s)://ip:8082/echarts.0/chart.png
                                }, result => {
                                    if (result.error) {
                                        console.error(result.error);
                                    } else {
                                        console.log(result.data);
                                    }
                                });
                                

                                Im Pfad

                                /opt/iobroker/iobroker-data/tmp
                                

                                Finde ich jedoch keine Datei.

                                Im Log steht nichts drinnen. Nur:

                                javascript.0	2021-04-05 13:56:01.786	info	(1943) script.js.Eigene_Scripte.Tests.tabelle_tanken: registered 0 subscriptions and 0 schedules
                                javascript.0	2021-04-05 13:56:01.785	debug	(1943) sendTo "send" to system.adapter.echarts.0 from system.adapter.javascript.0
                                javascript.0	2021-04-05 13:56:01.780	info	(1943) Start javascript script.js.Eigene_Scripte.Tests.tabelle_tanken
                                

                                Hab ich irgendwo was ganz doofes übersehen?
                                Hab mich erstmal ganz nah am Beispiel der Doku gehalten.

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

                                  ... sorry Falsch

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

                                    @homoran Moin,

                                    kann ich die Fläche unter der Linie auch füllen? Bis jetzt ist das die einzige Funktion die ich ggü, float vermisse.

                                    [edit]
                                    Kann ich Presets auch verschieben. Ich habe die Floats-Diagrame und die hätte ich gerne in ein gemeinsames Verzeichniss verschoben.

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

                                      @a200 sagte in Test eCharts Adapter:

                                      kann ich die Fläche unter der Linie auch füllen?

                                      ja!

                                      https://forum.iobroker.net/topic/39172/test-echarts-adapter/71?_=1619855497887

                                      a200 2 Replies Last reply Reply Quote 1
                                      • a200
                                        a200 @Homoran last edited by

                                        @homoran Geil, habe nicht gesehen, dass man den "Order" öffnen kann.

                                        a200 1 Reply Last reply Reply Quote 0
                                        • a200
                                          a200 @a200 last edited by a200

                                          @a200 Gleich noch eine Frage. Ich habe Werte die zwischen 0 und 100 liegen. Mich interessieren nur die zwischen 90 - 100 mein Chart zweigt auf der y-Achse 0 - 100. Kann ich erzwingen, dass der sichtbarer Bereich 90-100 ist. Min bei Y-Achse auf 90 zu setzen hat nicht geholfen.

                                          [edit]
                                          Das geht. Min der Y-Achse auf 90 setzen und bei y-Offset = 0

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

                                            @homoran Wenn in einem Chart es zu einem Zeitpunkt mehrere Datenpunkte gibt, dann zeigt Tooltip nur einen Wert an und nicht alle drei oder vier. Was kann man da machen?

                                            111.PNG

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            993
                                            Online

                                            31.6k
                                            Users

                                            79.6k
                                            Topics

                                            1.3m
                                            Posts

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