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.
    • R
      ratte-rizzo last edited by ratte-rizzo

      Moin

      Seit ich den Adapter am Laufen habe, bekomme ich des Öfteren folgende Fehlermeldung auf meinem Rechner im Firefox, wenn ich die VIS aufrufe:

      Socket Error: Error: xhr post error
      

      Oder alternativ manchmal auch:

      Socket Error: Error: websocket error
      

      Das war vorher definitiv nicht der Fall. Woran kann das liegen? der ioBroker läuft auf einem Nuc und die Adapter sind alle aktuell. Hat jemand eine Idee?

      Dank & Gruß
      Daniel

      1 Reply Last reply Reply Quote 0
      • besterquester
        besterquester Developer @Bluefox last edited by

        @bluefox Thanks 👍

        1 Reply Last reply Reply Quote 0
        • F
          funnsurfer @Bluefox last edited by

          @bluefox

          Moin zusammen,

          gibt es die Möglichkeit die Schriftgröße der Legende für die dargestellten Daten zu ändern? Die Einstellung kann ich bei dem schönen Adapter nicht finden.

          Wenn ich ein Theme wähle, ändert sich die Darstellung des Diagramms auch nicht. Was mache ich falsch? Der Fehler sitzt wahrscheinlich vor dem Monitor 🙂

          Gruß + vielen Dank

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

            @funnsurfer geht noch nicht.
            Issue habe ich erstellt:
            https://forum.iobroker.net/topic/39172/test-echarts-adapter/52?_=1614584046099
            https://github.com/ioBroker/ioBroker.echarts/issues/29

            lobomau76 created this issue in ioBroker/ioBroker.echarts

            closed Change size/color of x/y-axes numbers and legend #29

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

              Hat hier schonmal jemand versucht die Charts über iframe einzubetten? Ich benutze jarvis und da blockiert der Browser das Chart oben rechts. Unten links ist ein Chart aus der Visu eingebttet.

              648b81b5-223b-4ace-aa01-2ec2d54e29c6-grafik.png

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

                @stephan1827 Ich habe genau dasselbe Problem beim einbinden über IFrame in VIS

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

                  @dskrt
                  @stephan1827

                  Das Problem hatte ich auch mal mit Lovelace und Flot.
                  Da lag es daran, dass die eine Instanz mittels Ssl verschlüsselt war und die andere nicht.
                  Nachdem beides auf Ssl gestellt war, lief es dann.

                  D stephan1827 3 Replies Last reply Reply Quote 0
                  • D
                    dskrt @David G. last edited by

                    @david-g Beide Iaufen über https://, oder meintest du etwas anderes ?

                    K 1 Reply Last reply Reply Quote 0
                    • K
                      Kueppert @dskrt last edited by

                      @dskrt ich hab irgendwie im Hinterkopf, das nur HTTP funktioniert, bin mir aber unsicher. Wäre aber nen Versuch wert...

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

                        @kueppert

                        Ich hab lovelace und echarts per Ssl am laufen und in meine Visu eingebunden.

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

                          @david-g Es ist definitiv ein Problem zwischen VIS und ECharts, ein Iframe in VIS mit JarVIS oder auch FLOT läuft einwandfrei, sowohl https wie auch http. Irgendwo in ECharts ist eine Option zum setzen von 'allow Iframes, aber wo ? Wer kann helfen ?

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

                            Moin,
                            ich versuche mich immer noch an dem Server-Side-Rendering, ich möchte gerne Charts an Telegram versenden. Muss da noch etwas installiert / aktiviert werden? Wenn ich das Beispiel-Script von @Bluefox nehme, passiert bei mir rein gar nichts - es gibt auch keinen Log-Eintrag.

                            Gruß Steffen

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

                              @steff sagte in Test eCharts Adapter:

                              das Beispiel-Script von @Bluefox nehme

                              hast du dazu mal einen Link?

                              EDIT:
                              meinst du das hier: https://github.com/ioBroker/ioBroker.echarts#server-side-rendering

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

                                @homoran,
                                ich habe das hier aus diesem Post genommen Link Text

                                Gruß Steffen

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

                                  @steff sagte in Test eCharts Adapter:

                                  @homoran,
                                  ich habe das hier aus diesem Post genommen Link Text

                                  Gruß Steffen

                                  das ist ja fast, das gleiche, bzw. eine Umsetzung dessen, was auf github steht:

                                  sendTo('echarts.0', {
                                      preset:   'echarts.0.myPreset', // 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: '',                 // 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);
                                      }
                                  });
                                  

                                  Die Variablen hast du aber angepasst?
                                  (Info: Ich habe das Skript noch nicht probiert!)

                                  Steff 1 Reply Last reply Reply Quote 0
                                  • 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
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            498
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

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