Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Neuer Adapter: SMA Wechselrichter mit sbfspot

    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

    Neuer Adapter: SMA Wechselrichter mit sbfspot

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

      Hallo zusammen,

      dank der Hilfe hier im Forum hat es nun endlich geklappt mit der Integration in den ioBroker. Im nächsten Schritt wollte ich jetzt das ganze im Multihost-Betrieb realisieren, da die Bluetoothverbindung nicht bis zum Raspberry Pi 4 (Master) reicht. Jetzt erhalte ich folgende Fehlermeldung. Hat da jemand eine Idee zu?472b9715-9a3f-44ee-87aa-6b969aa441a2-image.png

      Rene_HM 1 Reply Last reply Reply Quote 0
      • Rene_HM
        Rene_HM Developer @alex9926 last edited by

        @alex9926 siehe hier https://github.com/rg-engineering/ioBroker.sbfspot#known-issues

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

          Habe da nichts passendes gefunden. Ohne Multihost lief es ja bereits.

          Rene_HM 1 Reply Last reply Reply Quote 0
          • Rene_HM
            Rene_HM Developer @alex9926 last edited by

            @alex9926 es fehlt das package sqlite3. Das muss installiert werden, wie es auf der verlinkten Seite steht. Durch die Multihost-Umstellung hast du irgendwie das Paket verloren (evtl. weil sbfspot jetzt auf einem anderen System laufen soll, oder durch andere Installationen)

            1 Reply Last reply Reply Quote 0
            • J
              james4711 last edited by

              Hallo!

              Ich habe ein Problem mit dem Widget.
              Wenn ich das Widget meiner Visualisierung hinzufüge passiert (wenn ich Instanz und Seriennummer fülle) gar nichts. Es wird nichts dargestellt.
              Wenn ich Instanz und/oder Seriennummer weglasse erhalte ich immerhin einen Hinweis:
              e1f86942-aa2d-4db6-8a25-80f3b7534f11-image.png

              Mit allen Daten habe ich nur eine große, schwarze Fläche.

              Woran kann das liegen!

              Danke für die Hilfe.

              LG,

              Dieter

              J 1 Reply Last reply Reply Quote 0
              • J
                james4711 @james4711 last edited by

                @james4711
                Als Ergänzung: Im Browser in der Webconsole erhalte ich: vis.binds.sbfspot.history.update is not a function.

                Kann es damit zu tun haben??

                Danke!

                Rene_HM 1 Reply Last reply Reply Quote 0
                • Rene_HM
                  Rene_HM Developer @james4711 last edited by

                  @james4711 sagte in Neuer Adapter: SMA Wechselrichter mit sbfspot:

                  Bitte mal das ganze log aus dem browser posten.
                  hast du den Adapter neu installiert oder aktualisiert?

                  1 Reply Last reply Reply Quote 0
                  • J
                    james4711 last edited by

                    Hab das jetzt mal weiter eingrenzt.
                    Irgendwie findet er die Datei /vis/widgets/sbfspot/flot/jquery.canvaswrapper.js nicht.
                    Liegt auch nicht dort, sondern wie die anderen in lib/js/flot/...
                    Auch wenn ich sie in den Pfad hinkopiere, wo er sie sucht geht's nicht!

                    [Deprecation] Application Cache was previously restricted to secure origins only from M70 on but now secure origin use is deprecated and will be removed in M82. Please shift your use case over to Service Workers.
                    index.html:13655 GET http://192.168.0.6:8082/vis/widgets/sbfspot/flot/jquery.canvaswrapper.js net::ERR_ABORTED 404 (Not Found)
                    index.html:3469 Version vis-canvas-gauges: 0.1.5
                    index.html:4012 Version vis-history: 1.0.0
                    info.js:9 Version Info-Adapter-Widget: 0.0.8
                    index.html:5057 Version vis-jqui-mfd: 1.0.12
                    justgage.js:115 Version justgage: 1.0.2
                    index.html:9330 Version vis-map: 1.0.3
                    index.html:10483 Metro version: "1.1.2"
                    milight.js:135 Milight widget version: 0.0.3
                    players.js:58 Version players: 0.1.0
                    index.html:13655 GET http://192.168.0.6:8082/vis/widgets/sbfspot/flot/jquery.canvaswrapper.js net::ERR_ABORTED 404 (Not Found)
                    jquery.flot.js:12 Uncaught TypeError: Cannot read property 'Canvas' of undefined
                    at jquery.flot.js:12
                    at jquery.flot.js:2958
                    (anonymous) @ jquery.flot.js:12
                    (anonymous) @ jquery.flot.js:2958
                    jquery.flot.saturated.js:42 Uncaught TypeError: Cannot set property 'saturated' of undefined
                    at jquery.flot.saturated.js:42
                    at jquery.flot.saturated.js:43
                    (anonymous) @ jquery.flot.saturated.js:42
                    (anonymous) @ jquery.flot.saturated.js:43
                    jquery.flot.browser.js:97 Uncaught TypeError: Cannot set property 'browser' of undefined
                    at jquery.flot.browser.js:97
                    at jquery.flot.browser.js:98
                    (anonymous) @ jquery.flot.browser.js:97
                    (anonymous) @ jquery.flot.browser.js:98
                    jquery.flot.drawSeries.js:662 Uncaught TypeError: Cannot set property 'drawSeries' of undefined
                    at jquery.flot.drawSeries.js:662
                    at jquery.flot.drawSeries.js:663
                    (anonymous) @ jquery.flot.drawSeries.js:662
                    (anonymous) @ jquery.flot.drawSeries.js:663
                    jquery.flot.uiConstants.js:3 Uncaught TypeError: Cannot set property 'uiConstants' of undefined
                    at jquery.flot.uiConstants.js:3
                    at jquery.flot.uiConstants.js:10
                    (anonymous) @ jquery.flot.uiConstants.js:3
                    (anonymous) @ jquery.flot.uiConstants.js:10
                    jquery.flot.time.js:26 Uncaught TypeError: Cannot read property 'saturated' of undefined
                    at jquery.flot.time.js:26
                    at jquery.flot.time.js:585
                    (anonymous) @ jquery.flot.time.js:26
                    (anonymous) @ jquery.flot.time.js:585
                    jquery.flot.legend.js:431 Uncaught TypeError: Cannot read property 'plugins' of undefined
                    at jquery.flot.legend.js:431
                    at jquery.flot.legend.js:437
                    (anonymous) @ jquery.flot.legend.js:431
                    (anonymous) @ jquery.flot.legend.js:437
                    jquery.flot.axislabels_V2.js:463 Uncaught TypeError: Cannot read property 'plugins' of undefined
                    at jquery.flot.axislabels_V2.js:463
                    at jquery.flot.axislabels_V2.js:469

                    Danke!

                    Rene_HM 1 Reply Last reply Reply Quote 0
                    • Rene_HM
                      Rene_HM Developer @james4711 last edited by Rene_HM

                      @james4711 hast du schon mal ein upload vom vis gemacht?

                      bild.png

                      1 Reply Last reply Reply Quote 0
                      • J
                        james4711 last edited by

                        Hab ich jetzt gemacht ... keine Änderung .. gleiche Fehlermeldungen ..

                        Rene_HM 1 Reply Last reply Reply Quote 0
                        • Rene_HM
                          Rene_HM Developer @james4711 last edited by

                          @james4711 installiere mal von github https://github.com/rg-engineering/ioBroker.sbfspot und dann wieder upload vis (nicht sbfspot!)

                          1 Reply Last reply Reply Quote 0
                          • J
                            james4711 last edited by

                            So .. hab ich jetzt gemacht.
                            Fehler sind weg .... aber leider noch immer nichts zu sehen.

                            Log:

                            [Deprecation] Application Cache was previously restricted to secure origins only from M70 on but now secure origin use is deprecated and will be removed in M82. Please shift your use case over to Service Workers.
                            index.html:3469 Version vis-canvas-gauges: 0.1.5
                            index.html:4012 Version vis-history: 1.0.0
                            info.js:9 Version Info-Adapter-Widget: 0.0.8
                            index.html:5057 Version vis-jqui-mfd: 1.0.12
                            justgage.js:115 Version justgage: 1.0.2
                            index.html:9330 Version vis-map: 1.0.3
                            index.html:10483 Metro version: "1.1.2"
                            milight.js:135 Milight widget version: 0.0.3
                            players.js:58 Version players: 0.1.0
                            index.html:14341 Version vis-sbfspot: 2.4.0
                            index.html:16742 Version vis-weather: 2.4.1
                            conn.js:273 2020-03-24T19:20:31.175Z Connected => authenticate
                            conn.js:293 2020-03-24T19:20:31.356Z Authenticated: true

                            Rene_HM 1 Reply Last reply Reply Quote 0
                            • Rene_HM
                              Rene_HM Developer @james4711 last edited by

                              @james4711 wie ein paar posts weiter oben schon mal beschrieben: Ich benötige einen trigger, der das Zeichnen auslösst. Nur dann sieht man die richtigen logs. Also bitte einmal den Namen der Instanz verändern (zum Schluß natürlich wieder richtig eingeben) und dann das log nochmal posten...

                              1 Reply Last reply Reply Quote 0
                              • J
                                james4711 last edited by

                                Hi Rene!

                                Sorry .... ist sich gestern nicht mehr ausgegangen.
                                Habe jetzt den Namen auf sbfspot.1 geändert.
                                Ergebnis:
                                1c71629c-8d38-4a97-a881-a1e5971c119c-image.png

                                Danach wieder auf sbfspot.0. Ergebnis:
                                [Deprecation] Application Cache was previously restricted to secure origins only from M70 on but now secure origin use is deprecated and will be removed in M82. Please shift your use case over to Service Workers.
                                VM14938 index.html:3469 Version vis-canvas-gauges: 0.1.5
                                VM14940 index.html:4012 Version vis-history: 1.0.0
                                info.js:9 Version Info-Adapter-Widget: 0.0.8
                                index.html:5057 Version vis-jqui-mfd: 1.0.12
                                justgage.js:115 Version justgage: 1.0.2
                                index.html:9330 Version vis-map: 1.0.3
                                index.html:10483 Metro version: "1.1.2"
                                milight.js:135 Milight widget version: 0.0.3
                                players.js:58 Version players: 0.1.0
                                index.html:14341 Version vis-sbfspot: 2.4.0
                                index.html:16742 Version vis-weather: 2.4.1
                                conn.js:273 2020-03-25T08:01:22.278Z Connected => authenticate
                                conn.js:293 2020-03-25T08:01:22.452Z Authenticated: true
                                vis.js:3167 Create inner vis object sbfspot.0.304907836.EToday
                                vis.js:3167 Create inner vis object sbfspot.0.304907836.history.last30Days
                                index.html:14375 sbfspot history (w00037)
                                index.html:14960 bind sbfspot.0.304907836.history.last30Days
                                index.html:14600 ShowChart sbfspot (w00037)
                                index.html:14606 need to wait... (w00037)
                                index.html:14600 ShowChart sbfspot (w00037)
                                index.html:14611 ShowChart sbfspot begin (w00037)
                                index.html:14649 sel 2
                                index.html:14815 barwidth = 43200000
                                index.html:14514 CalcTicks4X: DayDiff 11 (1585047600000 1584097200000)
                                jquery.flot.js:1349 +++
                                jquery.flot.js:1349 +++
                                jquery.flot.js:2452 major
                                jquery.flot.js:2452 major
                                index.html:14406 legendformater label undefined
                                index.html:14421 GridMarkings: DayDiff 11 (1585047600000 1584097200000)
                                jquery.flot.js:1824 #1#1#
                                jquery.flot.js:1861 major
                                jquery.flot.js:1911 show 13.Mar on 0.5/-4.015625 Text is 23.328125 width and 8 high
                                jquery.flot.js:1911 show 18.Mar on -21.5/-4.015625 Text is 23.328125 width and 8 high
                                jquery.flot.js:1911 show 23.Mar on -42.5/-4.015625 Text is 23.328125 width and 8 high
                                jquery.flot.js:1861 major
                                jquery.flot.js:1911 show 2.2 kWh on -1/-20.5 Text is 27.55078125 width and 8 high

                                Letzte Zeile wiederholt sich dutzende male

                                LG

                                Rene_HM 1 Reply Last reply Reply Quote 0
                                • Rene_HM
                                  Rene_HM Developer @james4711 last edited by

                                  @james4711 sagte in Neuer Adapter: SMA Wechselrichter mit sbfspot:

                                  Letzte Zeile wiederholt sich dutzende male

                                  Das ist okay. Hier einfach bei Tickgröße größere Werte eingeben, bis die Zeile nur noch 5 bis 10 mal kommt.

                                  bild.png

                                  Wenn sie dutzendende male kommt, versucht er die Skalierung auch so fein aufzubauen.

                                  und dann mal "Breite des Gitterrandes" verändern. Das hatte ich in der Vergangenheit schon mal, dass dieser Wert sich mal ändern muss...

                                  1 Reply Last reply Reply Quote 0
                                  • J
                                    james4711 last edited by

                                    Danke für die Antwort ... habs jetzt mal geändert:

                                    00ffa929-2bca-4e3a-a435-d220eddea77a-image.png

                                    Ergebnis im Log:

                                    [Deprecation] Application Cache was previously restricted to secure origins only from M70 on but now secure origin use is deprecated and will be removed in M82. Please shift your use case over to Service Workers.
                                    VM1882 index.html:3469 Version vis-canvas-gauges: 0.1.5
                                    VM1883 index.html:4012 Version vis-history: 1.0.0
                                    info.js:9 Version Info-Adapter-Widget: 0.0.8
                                    index.html:5057 Version vis-jqui-mfd: 1.0.12
                                    justgage.js:115 Version justgage: 1.0.2
                                    index.html:9330 Version vis-map: 1.0.3
                                    index.html:10483 Metro version: "1.1.2"
                                    milight.js:135 Milight widget version: 0.0.3
                                    players.js:58 Version players: 0.1.0
                                    index.html:14341 Version vis-sbfspot: 2.4.0
                                    index.html:16742 Version vis-weather: 2.4.1
                                    conn.js:273 2020-03-28T18:03:46.546Z Connected => authenticate
                                    conn.js:293 2020-03-28T18:03:46.701Z Authenticated: true
                                    vis.js:3167 Create inner vis object sbfspot.0.304907836.EToday
                                    vis.js:3167 Create inner vis object sbfspot.0.304907836.history.last30Days
                                    index.html:14375 sbfspot history (w00037)
                                    index.html:14960 bind sbfspot.0.304907836.history.last30Days
                                    index.html:14600 ShowChart sbfspot (w00037)
                                    index.html:14606 need to wait... (w00037)
                                    index.html:14600 ShowChart sbfspot (w00037)
                                    index.html:14611 ShowChart sbfspot begin (w00037)
                                    index.html:14649 sel 2
                                    index.html:14815 barwidth = 43200000
                                    index.html:14514 CalcTicks4X: DayDiff 15 (1585393200000 1584097200000)
                                    jquery.flot.js:1349 +++
                                    jquery.flot.js:1349 +++
                                    jquery.flot.js:2452 major
                                    jquery.flot.js:2452 major
                                    index.html:14406 legendformater label ggggg
                                    index.html:14421 GridMarkings: DayDiff 15 (1585393200000 1584097200000)
                                    jquery.flot.js:1824 #1#1#
                                    jquery.flot.js:1861 major
                                    jquery.flot.js:1911 show 13.Mar on 0.5/-19.671875 Text is 34.9921875 width and 12 high
                                    jquery.flot.js:1911 show 18.Mar on -27.5/-19.671875 Text is 34.9921875 width and 12 high
                                    jquery.flot.js:1911 show 23.Mar on -55.5/-19.671875 Text is 34.9921875 width and 12 high
                                    jquery.flot.js:1861 major
                                    jquery.flot.js:1911 show 4.0 kWh on -1/-33.5 Text is 41.326171875 width and 12 high
                                    jquery.flot.js:1911 show 6.0 kWh on -1/-30.5 Text is 41.326171875 width and 12 high
                                    jquery.flot.js:1911 show 8.0 kWh on -1/-27.5 Text is 41.326171875 width and 12 high
                                    jquery.flot.js:1911 show 10.0 kWh on -1/-24.5 Text is 47.326171875 width and 12 high
                                    jquery.flot.js:1911 show 12.0 kWh on -1/-21.5 Text is 47.326171875 width and 12 high
                                    jquery.flot.js:1911 show 14.0 kWh on -1/-18.5 Text is 47.326171875 width and 12 high
                                    jquery.flot.js:1911 show 16.0 kWh on -1/-15.5 Text is 47.326171875 width and 12 high
                                    jquery.flot.js:1911 show 18.0 kWh on -1/-12.5 Text is 47.326171875 width and 12 high
                                    jquery.flot.js:1911 show 20.0 kWh on -1/-10.5 Text is 47.326171875 width and 12 high
                                    jquery.flot.js:1911 show 22.0 kWh on -1/-7.5 Text is 47.326171875 width and 12 high
                                    jquery.flot.js:1911 show 24.0 kWh on -1/-4.5 Text is 47.326171875 width and 12 high
                                    jquery.flot.js:1911 show 26.0 kWh on -1/-1.5 Text is 47.326171875 width and 12 high

                                    Ergebnis am Schirm:
                                    Leider nix!

                                    1 Reply Last reply Reply Quote 0
                                    • J
                                      james4711 last edited by

                                      Hat noch wer eine Idee was ich machen kann, damit die Anzeige funktioniert?

                                      1 Reply Last reply Reply Quote 0
                                      • A
                                        Andersmacher last edited by

                                        @Rene_HM So, nachdem ich leider eine Pause einlegen mußte, habe ich mich der Thematik des bei mir "unsichtbaren Widgets" noch einmal gewidmet.

                                        Ich habe die Visualisierung ´mal via WR-ModBus-Auslesung, History- und flot-Adapter probiert. Damit erhalte ich problemlos Grafiken der Stromerzeugungswerte.

                                        Dann habe ich Deinen Adapter noch einmal komplett neu installiert. Wieder werden alle WR-Werte in der Rubrik "Objekte" unter sbfspot.0/Seriennummer/History angezeigt, aber Dein Widget (das natürlich via SBFspot.db und nicht via ModBus/History an die Daten kommt) will sich einfach nicht zeigen.

                                        Nachfolgend der aktuelle Browser-Log-Stand der Vis-Runtime:

                                        19:57:14.271 Laden fehlgeschlagen für das <script> mit der Quelle "http://Meine_IP-Adresse:8082/vis/widgets/sbfspot/flot/jquery.canvaswrapper.js". index.html:5493:1
                                        19:57:14.277 Version vis-sbfspot: 2.4.0 index.html:6179:25
                                        19:57:14.273
                                        TypeError: window.Flot is undefined
                                        jquery.flot.js:12:18
                                        19:57:14.273
                                        TypeError: $.plot is undefined
                                        jquery.flot.saturated.js:42:5
                                        19:57:14.274
                                        TypeError: $.plot is undefined
                                        jquery.flot.browser.js:97:5
                                        19:57:14.274
                                        TypeError: $.plot is undefined
                                        jquery.flot.drawSeries.js:662:25
                                        19:57:14.275
                                        TypeError: $.plot is undefined
                                        jquery.flot.uiConstants.js:8:9
                                        19:57:14.275
                                        TypeError: $.plot is undefined
                                        jquery.flot.time.js:26:23
                                        19:57:14.275
                                        TypeError: $.plot is undefined
                                        jquery.flot.legend.js:431:5
                                        19:57:14.276
                                        TypeError: $.plot is undefined
                                        jquery.flot.axislabels_V2.js:463:5
                                        19:57:14.669 Create inner vis object sbfspot.0.4711.history.last30Days vis.js:3167:29
                                        19:57:14.798 [1585850234799] Request 19 states. vis.js:2736:21
                                        19:57:14.985 sbfspot history (w00127) index.html:6213:25
                                        19:57:14.985 bind sbfspot.0.4711.history.last30Days index.html:6798:29
                                        19:57:14.986 ShowChart sbfspot (w00127) index.html:6438:29
                                        19:57:15.986 need to wait... (w00127) index.html:6444:37
                                        19:57:15.987 ShowChart sbfspot (w00127) index.html:6438:29
                                        19:57:15.987 ShowChart sbfspot begin (w00127) index.html:6449:29
                                        19:57:15.988 sel 2 index.html:6487:37
                                        19:57:15.989 barwidth = 43200000 index.html:6653:33
                                        19:57:15.991
                                        TypeError: $.plot is not a function

                                        Für mich sieht es so aus, als ob der Zugriff auf das Javaskript "jquery.canvaswrapper.js" ein/das Problem ist. Wo ich mir jetzt nicht sicher bin:

                                        Hat das grundsätzlich etwas mit dem Flot-Adapter zu tun (Ich habe Dein Widget jedoch in einem View, in dem ich nichts mit flot/History anzeigen lasse.) oder benutzt Du für Dein Widget auch irgend´was, daß mit flot zusammenhängt?

                                        Auf meinem Pi lautet der Pfad jedenfalls:

                                        /opt/iobroker/iobroker-data/files/vis/widgets/sbfspot/lib/js/flot/jquery.canvaswrapper.js

                                        und damit kann er es doch von

                                        "http://Meine_IP-Adresse:8082/vis/widgets/sbfspot/flot/jquery.canvaswrapper.js"

                                        auch gar nicht laden - oder?
                                        Ist das bei mir ein "ungewöhnlicher" Speicherort?
                                        Unter "/opt/iobroker/iobroker-data/files/vis/widgets/sbfspot/" das Verzeinis "flot" anzulegen und "jquery.canvaswrapper.js" da hinein zu kopieren, hat jedenfalls nichts gebracht, selbst dann nicht, wenn mann für "jquery.canvaswrapper.js" dort alle Berechtigungen erteilt.

                                        Weißt Du, bis wohin "http://Meine_IP-Adresse:8082/" tatsächlich vom root-Verzeichnis aus verweist? Dann würde ich es dort auch noch einmal hin kopieren.

                                        1 Reply Last reply Reply Quote 0
                                        • Rene_HM
                                          Rene_HM Developer last edited by

                                          @Andersmacher , @james4711 nehmt mal bitte die 2.4.3 aus dem latest-Repo. Ich hatte noch zwei kleinere bug fixes nicht veröffentlicht:

                                          • im widget war der Pfad zu den flot/jquery-Dateien nicht korrekt
                                          • im adapter selbst war die Berechnung für die hitsory heute für sqlite noch falsch
                                            Beides ist behoben.
                                          1 Reply Last reply Reply Quote 0
                                          • A
                                            Andersmacher last edited by

                                            @Rene_HM Kann man die 2.4.3 über die 2.4.0 installieren oder muß man 2.4.0 vorher deinstallieren?

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

                                            Support us

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

                                            742
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            26
                                            248
                                            40630
                                            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