Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. HAM adapter Verbindungsprobleme

    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

    UNSOLVED HAM adapter Verbindungsprobleme

    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      suffix @Thomas Braun last edited by

      @Thomas-Braun
      Aber ist der HAM Adapter nicht so gedacht, dass er auf dem gleichen System läuft? Ich kann ja auch keine ip angeben von der Homebridge, sondern nur die config Pfade. Wie mach ich das wenn das auf einem anderen pi läuft?

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

        @suffix Habe den Adapter nicht im Einsatz.
        Aber ist es nicht so, dass Homekit eigentlich auf Apple Hardware und einen Netz läuft?

        S 1 Reply Last reply Reply Quote 0
        • S
          suffix @Thomas Braun last edited by suffix

          @Thomas-Braun
          Also Homebridge (aka Hoobs) ist eine Ergänzung zu HomeKit. Mit Homebridge bringt man Geräte zu HomeKit, die nicht nativ HomeKit fähig sind. Deshalb habe ich eine Homebridge laufen und zusätzlich ioBroker.

          Ich möchte eigentlich mit dem HAM Adapter meine nicht nativen HomeKit Geräte (Fake Switch zum Beispiel) in ioBroker einbinden. Über diesen Umweg könnte ich Geräte für die es keinen ioBroker Adapter gibt dennoch in ioBroker nutzen. Wie das auf zwei Geräten laufen soll weiß ich aber nicht...

          Ich hab nur etwas Panik dass wenn ich Node deinstallieren und neu installiere, installationspfade der alten Version nicht mehr vorhanden sind, aber von Homebridge (hoobs) benötigt werden.

          Was mich an der Sache mit den gleichen Ports wundert ist, dass der Adapter anscheinend sogar so gedacht ist, dass er auf dem gleichen System wie Homebridge läuft. Als „Haupt“ Ports habe ich für ioBroker die 8081 und für HOOBS die 8080

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

            @suffix
            Die Pfade von hoobs oder iobroker werden von nodeJS nicht angefasst.

            S 1 Reply Last reply Reply Quote 0
            • S
              suffix @Thomas Braun last edited by

              @Thomas-Braun
              Das nicht, aber wenn node js von HOOBS unter einem bestimmen Pfad gesucht wird und dort nicht mehr zu finden ist, kann das zu Problemen führen?

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

                @suffix Das wird im $PATH gesucht. Und da hast du im Moment zwei Installationen drin.

                S 1 Reply Last reply Reply Quote 0
                • S
                  suffix @Thomas Braun last edited by suffix

                  @Thomas-Braun
                  Ich habe jetzt diese Befehle ausgeführt

                  
                  sudo apt remove node-*
                  sudo apt remove nodejs
                  sudo apt update
                  sudo apt dist-upgrade
                  sudo reboot
                  
                  

                  Und bekomme mit der folgenden Abfrage kein Ergebnis mehr

                  
                  which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs
                  
                  

                  So sollte es ja sein. Wie mach ich nun am besten weiter?

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

                    @suffix Kannst du bitte die vollständigen Ein- und Ausgaben posten?

                    S 1 Reply Last reply Reply Quote 0
                    • S
                      suffix @Thomas Braun last edited by suffix

                      @Thomas-Braun
                      Bin jetzt gerade unterwegs. Bei dem letzen Befehl kam keine ausgabe zurück

                      
                      pi@raspberrypi:~ $ which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs
                      pi@raspberrypi:~ $ 
                      
                      
                      Thomas Braun 1 Reply Last reply Reply Quote 0
                      • Thomas Braun
                        Thomas Braun Most Active @suffix last edited by

                        @suffix Dann kannst du nach der oben verlinkten Anleitung node12 sauber installieren.

                        S 1 Reply Last reply Reply Quote 0
                        • S
                          suffix @Thomas Braun last edited by

                          @Thomas-Braun
                          Alles klar, werde es gleich mal probieren

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

                            @suffix Moment...

                            apt policy nodejs
                            

                            liefert nichts?

                            S 1 Reply Last reply Reply Quote 0
                            • S
                              suffix @Thomas Braun last edited by

                              @Thomas-Braun said in HAM adapter Verbindungsprobleme:

                              apt policy nodejs

                              Doch, der Befehl alleine liefert das

                              
                              pi@raspberrypi:~ $ apt policy nodejs
                              nodejs:
                                Installiert:           (keine)
                                Installationskandidat: 10.21.0~dfsg-1~deb10u1+rpi1
                                Versionstabelle:
                                   10.21.0~dfsg-1~deb10u1+rpi1 500
                                      500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
                              
                              
                              Thomas Braun 1 Reply Last reply Reply Quote 0
                              • Thomas Braun
                                Thomas Braun Most Active @suffix last edited by

                                @suffix
                                Okay, dann nach der oben verlinkten Anleitung vorgehen und node12 installieren.

                                S 1 Reply Last reply Reply Quote 0
                                • S
                                  suffix @Thomas Braun last edited by suffix

                                  @Thomas-Braun
                                  Ich habe jetzt mit den beiden Befehlen

                                  curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash –
                                  sudo apt install nodejs
                                  

                                  installiert.

                                  Die Befehle

                                  which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs
                                  

                                  geben nunr folgendes zurück:

                                  
                                  pi@raspberrypi:~ $ which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs
                                  /usr/bin/nodejs
                                  v12.19.0
                                  /usr/bin/node
                                  v12.19.0
                                  /usr/local/bin/npm
                                  6.14.5
                                  nodejs:
                                    Installiert:           12.19.0-1nodesource1
                                    Installationskandidat: 12.19.0-1nodesource1
                                    Versionstabelle:
                                   *** 12.19.0-1nodesource1 500
                                          500 https://deb.nodesource.com/node_12.x buster/main armhf Packages
                                          100 /var/lib/dpkg/status
                                       10.21.0~dfsg-1~deb10u1+rpi1 500
                                          500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
                                  pi@raspberrypi:~ $
                                  
                                  

                                  Ist so alles korrekt?

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

                                    @suffix Da stimmt noch was nicht.

                                    sudo rm /usr/local/bin/npm
                                    
                                    S 1 Reply Last reply Reply Quote 0
                                    • S
                                      suffix @Thomas Braun last edited by

                                      @Thomas-Braun said in HAM adapter Verbindungsprobleme:

                                      @suffix Da stimmt noch was nicht.

                                      sudo rm /usr/local/bin/npm
                                      

                                      Einfach den Befehl ausführen? Wie installier npm ich danach am besten neu?

                                      S 1 Reply Last reply Reply Quote 0
                                      • S
                                        suffix @suffix last edited by

                                        @suffix said in HAM adapter Verbindungsprobleme:

                                        @Thomas-Braun said in HAM adapter Verbindungsprobleme:

                                        @suffix Da stimmt noch was nicht.

                                        sudo rm /usr/local/bin/npm
                                        

                                        Einfach den Befehl ausführen? Wie installier npm ich danach am besten neu?

                                        Edit:
                                        Befehl ausgeführt, neue Ausgabe:

                                        
                                        pi@raspberrypi:~ $ which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs
                                        /usr/bin/nodejs
                                        v12.19.0
                                        /usr/bin/node
                                        v12.19.0
                                        /usr/bin/npm
                                        6.14.8
                                        nodejs:
                                          Installiert:           12.19.0-1nodesource1
                                          Installationskandidat: 12.19.0-1nodesource1
                                          Versionstabelle:
                                         *** 12.19.0-1nodesource1 500
                                                500 https://deb.nodesource.com/node_12.x buster/main armhf Packages
                                                100 /var/lib/dpkg/status
                                             10.21.0~dfsg-1~deb10u1+rpi1 500
                                                500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
                                        pi@raspberrypi:~ $
                                        
                                        
                                        Thomas Braun 1 Reply Last reply Reply Quote 0
                                        • Thomas Braun
                                          Thomas Braun Most Active @suffix last edited by

                                          @suffix Ja, jetzt passt es soweit.

                                          S 1 Reply Last reply Reply Quote 0
                                          • S
                                            suffix @Thomas Braun last edited by suffix

                                            @Thomas-Braun
                                            Super, danke.

                                            Leider besteht aber immernoch das Eingangs genannte Problem 😕

                                            Ich frage mich zum Bsiepiel auch, warum immer '/lib/user' im Log hinter meinem angegebenen Pfad steht. Ich gebe im HAM Adapter ja als globalen Homebridge Pfad '/usr/local/lib/node_modules/' an. Im Log macht er daraus '/usr/local/lib/node_modules/lib/user'

                                            Keine Ahnung wo das Problem ist

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            868
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            ham ham-adapter homebridge hoobs iobroker log
                                            4
                                            53
                                            1906
                                            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