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

    • Monatsrückblick - April 2025

    • Minor js-controller 7.0.7 Update in latest repo

    • Save The Date: ioBroker@Smart Living Forum Solingen, 14.06.

    Neuer Adapter: SMA Wechselrichter mit sbfspot

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

      Ich nutze seit langem sbfspot zum Monitoren meiner SMA-Wechselrichter. Daten werden dabei per Bluetooth ausgelesen und lokal in eine mySQL-Datenbank geschrieben bzw. optional auch nach PVOutput.org geloggt.

      Für meine ioBroker vis-Anzeige wollte ich nun die Daten im ioBroker haben.

      Dafür habe ich nun kurzerhand einen Adapter geschrieben:

      1391_adapter.png

      Wer Interesse hat findet den Adapter in github unter

      https://github.com/rg-engineering/ioBroker.sbfspot

      1 Reply Last reply Reply Quote 0
      • H
        Heilu last edited by

        Hallo Rene_HM,

        wollte heute deinen Adapter testen. Leider hab ich da ein Problem. Da ich absolut keinen Plan habe und mich erst seit ein paar Tagen mit Iobroker befasse, stehe ich hier auf dem Schlauch. Den Ordner wie in deinem Datei-Anhang gibt es bei mir nach der Installation nicht. Und was trage ich unter DB User, DB Passw. und DB Databasename ein, bzw. wo finde ich die Daten? SBFspot läuft auf dem selben Pi.

        Hoffe du kannst mir weiterhelfen.

        Gruß

        Heiko

        1 Reply Last reply Reply Quote 0
        • H
          Heilu last edited by

          Bei meinem Wechselrichter handelt es sich um einen SMA 4000TL-20 nur mit Bluetooth.

          Gruß

          Heiko

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

            @Heilu:

            Bei meinem Wechselrichter handelt es sich um einen SMA 4000TL-20 nur mit Bluetooth. `

            das ist perfekt. SBFspot arbeitet per Bluetooth.

            Damit der ioBroker Adapter funktioniert, muss natürlich SBFspot richtig konfiguriert sein.

            Zunächst sollte ein mySQL-Server inkl. Datenbank installiert sein. Dort muss die Datenbank SBFspot und die user angelegt werden.

            Dass macht man am besten mit den CreateMySQLDB.sql und CreateMySQLUser.sql, die sbfspot beiliegen. Damit wird dann auch gleich der

            Datenbank-User SBFspotUser mit angelegt. Das Passwort für diesen user sollte man noch ändern und bitte merken, das braucht man auch

            in der sbfspot.cfg und im Adapter.

            In der sbfspot.cfg müssen folgende Daten eingetragen werden

            • BTAddress ist die Bluetooth-Adresse des Wechselrichters

            • OutputPath, OutputPathEvents damit die logs geschrieben werden können

            • und zuletzt (wichtig für den Adapter) der Abschnitt

            MySQL

            SQL_Database=SBFspot

            SQL_Hostname=localhost

            SQL_Username=SBFspotUser

            SQL_Password=DEIN_PASSWORT

            Das sind Daten, die du zum Zugriff auf die SQL-Datenbank benötigst.

            Die gleichen Daten werden im Adapter benötigt.

            1 Reply Last reply Reply Quote 0
            • H
              Heilu last edited by

              ` > SQL_Database=SBFspot

              SQL_Hostname=localhost

              SQL_Username=SBFspotUser

              SQL_Password=DEIN_PASSWORT `
              So, wieder ein Stück weiter.

              Password usw habe ich noch nicht vergeben. Da ich noch im Testbetrieb bin. Wo und wie trage ich die Daten ein ? Habe bis jetzt nur die beiden Dateien gefunden: SBFspotUpload.cfg und SBFspot.cfg

              Leider funktioniert dann der Zugriff auf die Datenbank nicht mehr. Irgenwo hab ich was übersehen.

              Wenn du mir da weiterhelfen könntest…

              Danke schom mal.

              Gruß

              Heiko

              1 Reply Last reply Reply Quote 0
              • K
                krissi last edited by

                Hi, erst mal super arbeit! 🙂 Es gibt nicht zufällig jemanden der das auf eine SMA Sunny Webbox umbauen kann? Im Moment hol ich mir die Daten da über Node-Red. Ich habe an der Webbox 2 Wechselrichter dran, kann aber mit NR nur die Gesamtwerte auslesen.

                Gruß,

                Krissi

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

                  @Heilu:

                  So, wieder ein Stück weiter.

                  Password usw habe ich noch nicht vergeben. Da ich noch im Testbetrieb bin. Wo und wie trage ich die Daten ein ? Habe bis jetzt nur die beiden Dateien gefunden: SBFspotUpload.cfg und SBFspot.cfg

                  Leider funktioniert dann der Zugriff auf die Datenbank nicht mehr. Irgenwo hab ich was übersehen.

                  Wenn du mir da weiterhelfen könntest… `
                  ich denke, das war verkehrt herum 🙂 Du musst die oben genannten Werte aus deiner SBFspot.cfg in die Adapter-Config eintragen.

                  Folgende Zuordnung

                  • "sbfspot DB IP" entspricht dem Wert SQL_Hostname in der sbfspot.cfg

                  • "sbfspot DB user" entspricht dem Wert SQL_Username in der sbfspot.cfg

                  • "sbfspot DB password" entspricht dem Wert SQL_Password in der sbfspot.cfg

                  • "sbfspot DB databasename" entspricht dem Wert SQL_Database in der sbfspot.cfg

                  1 Reply Last reply Reply Quote 0
                  • H
                    Heilu last edited by

                    So, heute werde ich mich mal wieder mit der Sache beschäftigen. 😉

                    ` > Folgende Zuordnung

                    • "sbfspot DB IP" entspricht dem Wert SQL_Hostname in der sbfspot.cfg

                    • "sbfspot DB user" entspricht dem Wert SQL_Username in der sbfspot.cfg

                    • "sbfspot DB password" entspricht dem Wert SQL_Password in der sbfspot.cfg

                    • "sbfspot DB databasename" entspricht dem Wert SQL_Database in der sbfspot.cfg `
                      In der sbfspot.cfg habe ich keine Veränderungen vorgenommen. Nach der Originalanleitung:

                    # MySQL
                    #SQL_Database=SBFspot
                    #SQL_Hostname= <network name="">or <ip-address>
                    #SQL_Username=SBFspotUser
                    #SQL_Password=SBFspotPassword</ip-address></network>
                    

                    und genau so sieht es in der SBFspotUpload.cfg aus.

                    Starte ich dann deinen Adater mit den Daten die vorgegeben sind (entspricht den o.angegebenen), dann erscheint logischerweise in der Log von iobroker error connecting database…nn.

                    Wenn ich da ein Passwort usw. vergebe

                    # MySQL
                    #SQL_Database=SBFspot
                    SQL_Database=SBFspot
                    #SQL_Hostname= <network name="">or <ip-address>
                    SQL_Hostname=localhost
                    #SQL_Username=SBFspotUser
                    SQL_Username=heilu
                    #SQL_Password=SBFspotPassword
                    SQL_Password=123456</ip-address></network>
                    

                    Sieht bei mir so aus. Dann werden keine Daten geladen. Beim Testen: /usr/local/bin/sbfspot.3/SBFspot -v -finq -nocsv

                    wird mir folgendes angezeigt?

                    Warning: Ignoring keyword 'SQL_Hostname'
                    Warning: Ignoring keyword 'SQL_Username'
                    Warning: Ignoring keyword 'SQL_Password'
                    

                    Wo liegt da der Fehler? Wie gesagt, ist das alles für mich noch Neuland. Stehe da noch ganz am Anfang.

                    Gruß

                    Heiko

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

                      Ich denke, wir müssen erst mal sbfspot inkl. datenbank-Zugriff zum laufen bringen… Mein ioBroker Adapter holt sich die Daten aus der mySQL-Datenbank,

                      die von sbfspot gefüllt wird.

                      Wie hast du sbfspot installiert? Mit````
                      sudo make install_mysql

                      
                      Zum Testen und Prüfen der Datenbank wäre auch phpmyadmin hilfreich. Hast du das auf dem System installiert, wo sbfspot läuft?
                      
                      Ich installiere die mySQL-Datenbank inkl. phpmyadmin so:
                      

                      sudo groupadd www-data
                      sudo usermod -a -G www-data www-data
                      sudo apt-get install apache2 apache2-doc apache2-utils
                      sudo apt-get install libapache2-mod-php5 php5 php-pear php5-xcache
                      sudo apt-get install php5-mysql
                      sudo apt-get install mysql-server mysql-client
                      -> root password: DeinPasswort
                      sudo apt-get install phpmyadmin
                      -> apache2
                      -> config: yes
                      -> password: DeinPasswort
                      sudo nano /etc/apache2/apache2.conf
                      -> am Ende:
                      Include /etc/phpmyadmin/apache.conf
                      sudo /etc/init.d/apache2 restart

                      
                      Dann müsstest du dich unter
                      
                      [http://192.DeineIP/phpmyadmin](http://192.DeineIP/phpmyadmin)
                      
                      mit "root" und DeinPasswort einloggen können.
                      
                      Kannst du dich mit
                      
                      username=heilu
                      
                      password=123456
                      
                      dort anmelden? Wenn nicht, musst du den user heilu in der Datenbank anlegen. Das geht unter phpmayadmin…
                      
                      Wenn dann alles soweit funktioniert, sollten deine Wechselrichter-Daten in den Tabellen
                      
                      * Inverters
                      
                      * Daydate
                      
                      erscheinen.
                      
                      das sollte dann so aussehen:
                      
                       ![1391_sbfspot.png](/assets/uploads/files/1391_sbfspot.png) 
                      
                      Erst wenn dort Daten vorhanden sind, kümmern wir uns um den ioBroker-Adapter…
                      1 Reply Last reply Reply Quote 0
                      • H
                        Heilu last edited by

                        > Wie hast du sbfspot installiert?

                        Installiert nach Anleitung:

                        sudo make install_sqlite
                        

                        Mehr ist nicht installiert.

                        Bin strikt nach Anleitung vorgegangen, um erstmal das Ganze einigermaßen zu verstehen, wie was zusammenhängt. :?

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

                          und das kann schon das Problem sein. Mein Adapter verlangt eine mySQL-Datenbank und keine sqlite…

                          sbfSpot stellt beide Varianten zur Verfügung mySQL und sqlite...

                          Deshalb hatte ich oben geschrieben:

                          sudo make install_mysql
                          
                          

                          und das setzt dann natürlich eine installierte mySQL-Datenbank voraus…

                          Für sqlite muss ich den Adapter umbauen... Ich nehme es auf die todo-Liste auf... Es wird eine Option werden, welche Datenbank verwendet werden soll...

                          1 Reply Last reply Reply Quote 0
                          • H
                            Heilu last edited by

                            ` > und das kann schon das Problem sein. Mein Adapter verlangt eine mySQL-Datenbank und keine sqlite…

                            sbfSpot stellt beide Varianten zur Verfügung mySQL und sqlite... `
                            Super, danke. Werde das die Tage mal probieren.

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

                              @Rene_HM:

                              Für sqlite muss ich den Adapter umbauen… Ich nehme es auf die todo-Liste auf... Es wird eine Option werden, welche Datenbank verwendet werden soll... `

                              Ich habe die Version 0.2.1 auf github hochgeladen. Diese Version unterstützt nun beide Datenbank-Versionen (mySQL und sqlite). Die Umschaltung erfolgt in den Einstellungen des adapters. Man muss nur die Konfiguration ausfüllen, die für die jeweilige Datenbank notwendig ist (links für mySQL und rechts für sqlite)

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

                                Der Adapter ist nun auch unter dem Namen sbfspot https://www.npmjs.com/package/iobroker.sbfspot in NPM zu finden.

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

                                  es gibt endlich neue Funktionen im sbfspot-Adapter:

                                  • Berechnung von historischen Werten für Jahre, die letzten 12 Monate und die letzten 30 Tage und Ausgabe als json

                                  • spezielles widget, welches die oben berechneten Werte darstellt

                                  • den support der beiden Datenbanken mySQL und sqlite habe ich komplett überarbeitet

                                  Hier die Datenpunkte:

                                  1391_sbfspot2.png

                                  hier das widget

                                  1391_sbfspot1.png

                                  und hier die Konfiguration im vis edit:

                                  1391_sbfspot3.png

                                  Aber: Ich konnte bisher nur die Version mit mySQL wirklich testen. Die Version mit sqlite ist noch nicht ausführlich getestet. Für Rückmeldungen wäre ich dankbar. In der Android-App ist dieses widget auch noch nicht enthalten…

                                  Derzeit ist die Version 0.2.5. nur im github verfügbar...

                                  1 Reply Last reply Reply Quote 0
                                  • Q
                                    Qlink last edited by

                                    Hi,

                                    ich hätte gerade probiert den Adapter zu installieren, es kommt aber folgende FM:

                                    $ ./iobroker add sbfspot
                                    npm install iobroker.sbfspot --production --prefix "C:/ioBroker" (System call)
                                    node-pre-gyp ERR! Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.13/node-v46-win32-x64.tar.gz node-pre-gyp ERR! Pre-built binaries not found for sqlite3@3.1.13 and node@4.5.0 (node-v46 ABI) (falling back to source compile with node-gyp) 
                                    
                                    gyp
                                     ERR! configure error 
                                    gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.gyp ERR!
                                     stack     at failNoPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:449:14)gyp ERR! stack     at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:404:11
                                    gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:82:15)
                                    gyp ERR! System Windows_NT 10.0.14393
                                    gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\\ioBroker\\node_modules\\iobroker.sbfspot\\node_modules\\sqlite3\\lib\\binding\\node-v46-win32-x64\\node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=C:\\ioBroker\\node_modules\\iobroker.sbfspot\\node_modules\\sqlite3\\lib\\binding\\node-v46-win32-x64"
                                    gyp ERR! cwd C:\ioBroker\node_modules\iobroker.sbfspot\node_modules\sqlite3
                                    gyp ERR! node -v v4.5.0
                                    gyp ERR! node-gyp -v v3.4.0
                                    
                                    gyp
                                    
                                    ERR!
                                     not ok 
                                    node-pre-gyp ERR! build error 
                                    node-pre-gyp ERR! stack Error: Failed to execute 'node-gyp.cmd configure --fallback-to-build --module=C:\ioBroker\node_modules\iobroker.sbfspot\node_modules\sqlite3\lib\binding\node-v46-win32-x64\node_sqlite3.node --module_name=node_sqlite3 --module_path=C:\ioBroker\node_modules\iobroker.sbfspot\node_modules\sqlite3\lib\binding\node-v46-win32-x64' (1)node-pre-gyp ERR! stack     at ChildProcess. <anonymous>(C:\ioBroker\node_modules\iobroker.sbfspot\node_modules\sqlite3\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
                                    node-pre-gyp ERR! stack     at emitTwo (events.js:87:13)
                                    node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
                                    node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:829:16)
                                    node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
                                    
                                    node-pre-gyp ERR! System Windows_NT 10.0.14393node-pre-gyp ERR! 
                                    command "C:\\Program Files\\nodejs\\node.exe" "C:\\ioBroker\\node_modules\\iobroker.sbfspot\\node_modules\\sqlite3\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build"node-pre-gyp ERR! cwd C:\ioBroker\node_modules\iobroker.sbfspot\node_modules\sqlite3
                                    node-pre-gyp ERR! node -v v4.5.0
                                    node-pre-gyp ERR! node-pre-gyp -v v0.6.38
                                    node-pre-gyp ERR! not ok 
                                    
                                    npm
                                    
                                    ERR! Windows_NT 10.0.14393npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "iobroker.sbfspot" "--production" "--prefix" "C:/ioBroker"
                                    
                                    npm ERR! node v4.5.0npm ERR! npm  v2.15.9
                                    npm ERR! code ELIFECYCLE
                                    
                                    npm ERR! sqlite3@3.1.13 install: `node-pre-gyp install --fallback-to-build`
                                    npm ERR! Exit status 1
                                    npm ERR! 
                                    npm ERR! Failed at the sqlite3@3.1.13 install script 'node-pre-gyp install --fallback-to-build'.
                                    npm 
                                    ERR! This is most likely a problem with the sqlite3 package,npm ERR! not with npm itself.
                                    npm ERR! Tell the author that this fails on your system:
                                    npm ERR!     node-pre-gyp install --fallback-to-build
                                    npm ERR! You can get information on how to open an issue for this project with:
                                    npm ERR!     npm bugs sqlite3
                                    npm ERR! Or if that isn't available, you can get their info via:
                                    npm ERR! 
                                    npm ERR!     npm owner ls sqlite3
                                    npm ERR! There is likely additional logging output above.
                                    
                                    npm ERR! Please include the following file with any support request:
                                    npm ERR!     C:\ioBroker\node_modules\iobroker\npm-debug.log
                                    
                                    host.iobroker install adapter sbfspot
                                    npm install iobroker.sbfspot --production --prefix "C:/ioBroker" (System call)
                                    node-pre-gyp ERR! Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.13/node-v46-win32-x64.tar.gz node-pre-gyp ERR! Pre-built binaries not found for sqlite3@3.1.13 and node@4.5.0 (node-v46 ABI) (falling back to source compile with node-gyp) 
                                    
                                    gyp
                                     ERR! configure error 
                                    gyp ERR! stack
                                     Error: Can't find Python executable "python", you can set the PYTHON env variable.gyp ERR!
                                     stack     at failNoPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:449:14)gyp ERR! stack     at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:404:11
                                    gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:82:15)
                                    gyp ERR! System Windows_NT 10.0.14393
                                    gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\\ioBroker\\node_modules\\iobroker.sbfspot\\node_modules\\sqlite3\\lib\\binding\\node-v46-win32-x64\\node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=C:\\ioBroker\\node_modules\\iobroker.sbfspot\\node_modules\\sqlite3\\lib\\binding\\node-v46-win32-x64"
                                    gyp ERR! cwd C:\ioBroker\node_modules\iobroker.sbfspot\node_modules\sqlite3
                                    gyp ERR! node -v v4.5.0
                                    gyp ERR! node-gyp -v v3.4.0
                                    gyp ERR! not ok 
                                    
                                    node-pre-gyp
                                     ERR! build error 
                                    node-pre-gyp ERR! stack Error: Failed to execute 'node-gyp.cmd configure --fallback-to-build --module=C:\ioBroker\node_modules\iobroker.sbfspot\node_modules\sqlite3\lib\binding\node-v46-win32-x64\node_sqlite3.node --module_name=node_sqlite3 --module_path=C:\ioBroker\node_modules\iobroker.sbfspot\node_modules\sqlite3\lib\binding\node-v46-win32-x64' (1)node-pre-gyp ERR! stack     at ChildProcess. <anonymous>(C:\ioBroker\node_modules\iobroker.sbfspot\node_modules\sqlite3\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
                                    node-pre-gyp ERR! stack     at emitTwo (events.js:87:13)
                                    node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
                                    node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:829:16)
                                    node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
                                    node-pre-gyp ERR! System Windows_NT 10.0.14393
                                    node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\ioBroker\\node_modules\\iobroker.sbfspot\\node_modules\\sqlite3\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build"
                                    node-pre-gyp ERR! cwd C:\ioBroker\node_modules\iobroker.sbfspot\node_modules\sqlite3
                                    node-pre-gyp ERR! node -v v4.5.0
                                    node-pre-gyp ERR! node-pre-gyp -v v0.6.38
                                    node-pre-gyp ERR! not ok 
                                    
                                    npm
                                     ERR! Windows_NT 10.0.14393
                                    npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "iobroker.sbfspot" "--production" "--prefix" "C:/ioBroker"
                                    npm ERR! node v4.5.0npm ERR! npm  v2.15.9
                                    npm ERR! code ELIFECYCLE
                                    
                                    npm ERR! sqlite3@3.1.13 install: `node-pre-gyp install --fallback-to-build`
                                    npm ERR! Exit status 1
                                    
                                    npm ERR! npm ERR! Failed at the sqlite3@3.1.13 install script 'node-pre-gyp install --fallback-to-build'.
                                    npm
                                     ERR! This is most likely a problem with the sqlite3 package,npm ERR! not with npm itself.
                                    npm ERR! Tell the author that this fails on your system:
                                    npm ERR!     node-pre-gyp install --fallback-to-build
                                    npm ERR! You can get information on how to open an issue for this project with:
                                    npm ERR!     npm bugs sqlite3
                                    npm ERR! Or if that isn't available, you can get their info via:
                                    npm ERR! 
                                    npm ERR!     npm owner ls sqlite3
                                    npm ERR! There is likely additional logging output above.
                                    
                                    npm ERR!
                                     Please include the following file with any support request:npm ERR!     C:\ioBroker\node_modules\iobroker\npm-debug.log
                                    
                                    host.iobroker install adapter sbfspot
                                    npm install iobroker.sbfspot --production --prefix "C:/ioBroker" (System call)
                                    node-pre-gyp ERR! Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.13/node-v46-win32-x64.tar.gz node-pre-gyp ERR! Pre-built binaries not found for sqlite3@3.1.13 and node@4.5.0 (node-v46 ABI) (falling back to source compile with node-gyp) 
                                    
                                    gyp
                                     ERR! configure error 
                                    gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.gyp ERR!
                                     stack     at failNoPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:449:14)gyp ERR! stack     at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:404:11
                                    gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:82:15)
                                    gyp ERR! System Windows_NT 10.0.14393
                                    gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\\ioBroker\\node_modules\\iobroker.sbfspot\\node_modules\\sqlite3\\lib\\binding\\node-v46-win32-x64\\node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=C:\\ioBroker\\node_modules\\iobroker.sbfspot\\node_modules\\sqlite3\\lib\\binding\\node-v46-win32-x64"
                                    gyp ERR! cwd C:\ioBroker\node_modules\iobroker.sbfspot\node_modules\sqlite3
                                    gyp ERR! node -v v4.5.0
                                    gyp ERR! node-gyp -v v3.4.0
                                    gyp ERR! not ok
                                    
                                    node-pre-gyp
                                    
                                    ERR!
                                     build error 
                                    node-pre-gyp ERR! stack Error: Failed to execute 'node-gyp.cmd configure --fallback-to-build --module=C:\ioBroker\node_modules\iobroker.sbfspot\node_modules\sqlite3\lib\binding\node-v46-win32-x64\node_sqlite3.node --module_name=node_sqlite3 --module_path=C:\ioBroker\node_modules\iobroker.sbfspot\node_modules\sqlite3\lib\binding\node-v46-win32-x64' (1)node-pre-gyp ERR! stack     at ChildProcess. <anonymous>(C:\ioBroker\node_modules\iobroker.sbfspot\node_modules\sqlite3\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
                                    node-pre-gyp ERR! stack     at emitTwo (events.js:87:13)
                                    node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
                                    node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:829:16)
                                    node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
                                    node-pre-gyp ERR! System Windows_NT 10.0.14393
                                    node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\ioBroker\\node_modules\\iobroker.sbfspot\\node_modules\\sqlite3\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build"
                                    node-pre-gyp ERR! cwd C:\ioBroker\node_modules\iobroker.sbfspot\node_modules\sqlite3
                                    node-pre-gyp ERR! node -v v4.5.0
                                    node-pre-gyp ERR! node-pre-gyp -v v0.6.38
                                    node-pre-gyp ERR! not ok 
                                    
                                    npm
                                    
                                    ERR! Windows_NT 10.0.14393
                                    npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "iobroker.sbfspot" "--production" "--prefix" "C:/ioBroker"npm ERR! node v4.5.0
                                    npm ERR! npm  v2.15.9
                                    npm ERR! code ELIFECYCLE
                                    
                                    npm ERR! sqlite3@3.1.13 install: `node-pre-gyp install --fallback-to-build`
                                    npm ERR! Exit status 1
                                    
                                    npm ERR! npm ERR!
                                     Failed at the sqlite3@3.1.13 install script 'node-pre-gyp install --fallback-to-build'.npm ERR! This is most likely a problem with the sqlite3 package,
                                    npm ERR! not with npm itself.
                                    npm ERR! Tell the author that this fails on your system:
                                    npm ERR!     node-pre-gyp install --fallback-to-build
                                    npm ERR! You can get information on how to open an issue for this project with:
                                    npm ERR!     npm bugs sqlite3
                                    npm
                                     ERR! Or if that isn't available, you can get their info via:npm ERR! 
                                    npm ERR!     npm owner ls sqlite3
                                    npm ERR! There is likely additional logging output above.
                                    
                                    npm ERR! Please include the following file with any support request:npm ERR!     C:\ioBroker\node_modules\iobroker\npm-debug.log
                                    
                                    host.iobroker install adapter sbfspot
                                    ERROR: host.iobroker Cannot install sbfspot
                                    ERROR: process exited with code 13</anonymous></anonymous></anonymous>
                                    

                                    Tut wohl nicht so mit sqlite oder gibts hier ein anderes Problem ?

                                    Beste Grüße

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

                                      Der continous integration mit AppVeyor und travis sagt etwas ähnliches:

                                      auf x86-Systemen mit nodejs 4 kann anscheinend sqlite3 3.1.8 oder höher nicht gebaut werden.

                                      Auf Linux-Systemen scheint das kein Problem zu sein…

                                      Wenn man auf eine 2.0.14 von sqlite3 zurückspringt, funktioniert Windows, aber dann Linux nicht mehr 😢

                                      AppVeyor sagt aber auch, dass das Ganze mit nodejs 6 oder 8 funktionieren sollte...

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

                                        Jetzt ist endlich continous integration mit AppVeyor und travis grün.

                                        Ich habe die sqlite3 Version auf 3.1.7 zurück gesetzt, das ist die gleiche, die auch ioBroker.sql nutzt.

                                        Damit habe ich nun die Version 1.0.0 auf github und npm released.

                                        1 Reply Last reply Reply Quote 0
                                        • P
                                          philipp485 last edited by

                                          Hallo Rene,

                                          erstmal vielen Dank, dass du einen Adapter für sbfspot geschrieben hast. Ich nutze sbfspot schon länger, um mir per Node-RED die aktuellen Werte live in der Vis anzeigen zu lassen.

                                          Ich habe deinen Adapter gerade installiert, bekomme aber bei dem regelmäßigen Task, der sich die Variablen aus der SQLite holt folgenden Fehler:

                                          host.iobroker	2017-12-26 16:55:00.269	info	instance system.adapter.sbfspot.0 terminated with code 0 (OK)
                                          sbfspot.0	2017-12-26 16:55:00.261	info	terminating
                                          sbfspot.0	2017-12-26 16:55:00.252	debug	cleaned everything up...
                                          sbfspot.0	2017-12-26 16:55:00.252	error	at Statement. (/opt/iobroker/node_modules/iobroker.sbfspot/sbfspot.js:430:13)
                                          sbfspot.0	2017-12-26 16:55:00.252	error	at GetInverter (/opt/iobroker/node_modules/iobroker.sbfspot/sbfspot.js:457:13)
                                          sbfspot.0	2017-12-26 16:55:00.252	error	at DB_GetInvertersData (/opt/iobroker/node_modules/iobroker.sbfspot/sbfspot.js:480:19)
                                          sbfspot.0	2017-12-26 16:55:00.252	error	--> in Database#all('SELECT * from SpotData where Serial =xxxxxxxxxx ORDER BY TimeStamp DESC LIMIT 1', [Function])
                                          sbfspot.0	2017-12-26 16:55:00.252	error	at Statement. (/opt/iobroker/node_modules/iobroker.sbfspot/sbfspot.js:481:13)
                                          sbfspot.0	2017-12-26 16:55:00.252	error	ReferenceError: GetInverterterData is not defined
                                          sbfspot.0	2017-12-26 16:55:00.252	error	uncaught exception: GetInverterterData is not defined
                                          sbfspot.0	2017-12-26 16:55:00.247	debug	SELECT * from SpotData where Serial =xxxxxxxxxx ORDER BY TimeStamp DESC LIMIT 1
                                          sbfspot.0	2017-12-26 16:55:00.244	info	got data from SB 5000TL-21 with ID xxxxxxxxxx
                                          sbfspot.0	2017-12-26 16:55:00.244	debug	rows [{"Serial":xxxxxxxxxx,"Name":"SN: xxxxxxxxxx","Type":"SB 5000TL-21","SW_Version":"02.81.01.R","TimeStamp":1514303685,"TotalPac":0,"EToday":5.179,"ETotal":8576.84,"OperatingTime":5729.71,"FeedInT
                                          sbfspot.0	2017-12-26 16:55:00.238	debug	SELECT * from Inverters
                                          sbfspot.0	2017-12-26 16:55:00.238	debug	sqlite Database is connected ...
                                          sbfspot.0	2017-12-26 16:55:00.237	debug	--- connecting to /usr/share/solar/sbfspot.3/SBFspot.db
                                          sbfspot.0	2017-12-26 16:55:00.204	info	start with mySQL
                                          sbfspot.0	2017-12-26 16:55:00.203	info	starting. Version 1.0.0 in /opt/iobroker/node_modules/iobroker.sbfspot, node: v8.9.3
                                          sbfspot.0	2017-12-26 16:55:00.194	debug	statesDB connected
                                          sbfspot.0	2017-12-26 16:55:00.187	debug	objectDB connected
                                          host.iobroker	2017-12-26 16:55:00.010	info	instance system.adapter.sbfspot.0 started with pid 22775
                                          

                                          Hast du eine Idee, woran das liegen könnte?

                                          Viele Grüße

                                          Philipp

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

                                            @philipp485:

                                            Hast du eine Idee, woran das liegen könnte? `

                                            Ich habe den Fehler gefunden und behoben. Im github liegt die Version 1.0.1. Diese Version behebt den typo wie oben beschrieben und enthält noch einen bug fix für die Abfrage der historischen Daten bei Verwendung von sqlite. mySQL betrifft die beiden Änderungen nicht…

                                            Grüße René

                                            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

                                            605
                                            Online

                                            31.6k
                                            Users

                                            79.4k
                                            Topics

                                            1.3m
                                            Posts

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