Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Adapter "smartmeter"

    NEWS

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    • Minor js-controller 7.0.7 Update in latest repo

    Adapter "smartmeter"

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

      @andiekiste
      Was sagt:

      which nodejs node npm && nodejs -v && node -v && npm -v && whoami && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
      
      A 1 Reply Last reply Reply Quote 1
      • A
        AndieKiste @Homoran last edited by

        @homoran
        3829b485-ccfb-47fa-b721-1854e5b38724-image.png

        Eigentlich schon, ja, es wird mir zumindest so angezeigt. Ich bin aber selbst gerade maximal verwirrt, weil wenn ich in der Konsole nodejs -v eingebe, sagt er mir dass nodejs nicht vorhanden ist und ich es installieren soll. Bin leider kein Linux-Fachmann aber werde es jetzt mal installieren.

        Thomas Braun Homoran 3 Replies Last reply Reply Quote 0
        • Thomas Braun
          Thomas Braun Most Active @AndieKiste last edited by Thomas Braun

          @andiekiste NEIN!
          Das Kommando nodejs ist in aktuellen Versionen nicht mehr drin. Das ist also i. O.

          Du kannst es aber mit

          sudo ln -s /usr/bin/node /usr/bin/nodejs
          

          'nachbauen'.

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

            @andiekiste
            Was liefert

            which nodejs node npm && nodejs -v && node -v && npm -v && whoami && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
            

            denn nu?

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

              @andiekiste sagte in Adapter "smartmeter":

              es wird mir zumindest so angezeigt

              dann wären zwei Szenarien denkbar (oder mehr)

              • es kam später in eine höhere 14.x mit rein
              • du hattest zwischendrin mal eine höhere node-Version als 14 installiert und wieder downgegradet
              A 1 Reply Last reply Reply Quote 0
              • A
                AndieKiste @Thomas Braun last edited by

                @thomas-braun
                0641f1d1-cc76-4131-8e71-06f6599c54cb-image.png

                Ich bin maximal verwirrt. Wenn ich richtig verstehe was du gerne hättest sind das ja verschiedene Befehle hintereinander. Einzeln nacheinander sieht es so aus:

                root@iobroker:~# which nodejs node npm
                /usr/bin/node
                /usr/bin/npm
                root@iobroker:~# nodejs -v                                                                  
                Command 'nodejs' not found, but can be installed with:
                apt install nodejs                                                               
                root@iobroker:~# node -v
                v14.18.2
                root@iobroker:~# npm -v
                6.14.15
                root@iobroker:~# whoami
                root
                root@iobroker:~# apt update &> /dev/null      "Der Befehl gibt garnichts zurück bei mir"
                root@iobroker:~# apt update
                Hit:1 http://archive.ubuntu.com/ubuntu hirsute InRelease
                Hit:2 http://archive.ubuntu.com/ubuntu hirsute-updates InRelease          
                Hit:3 http://archive.ubuntu.com/ubuntu hirsute-security InRelease         
                Hit:4 https://deb.nodesource.com/node_14.x groovy InRelease               
                Reading package lists... Done                       
                Building dependency tree... Done
                Reading state information... Done
                3 packages can be upgraded. Run 'apt list --upgradable' to see them.
                root@iobroker:~# apt policy nodejs
                nodejs:
                  Installed: 14.18.2-deb-1nodesource1
                  Candidate: 14.18.2-deb-1nodesource1
                  Version table:
                 *** 14.18.2-deb-1nodesource1 500
                        500 https://deb.nodesource.com/node_14.x groovy/main amd64 Packages
                        100 /var/lib/dpkg/status
                     12.21.0~dfsg-3ubuntu1 500
                        500 http://archive.ubuntu.com/ubuntu hirsute/universe amd64 Packages
                

                Was ich auch nicht verstehe, er zeigt mir ja von nodejs was an. Umgekehrt über die Konsole dachte ich mir, wenn er nodejs installiert haben will, versuche ich es einfach, aber dann kommt folgendes:

                root@iobroker:~# apt install nodejs
                Reading package lists... Done
                Building dependency tree... Done
                Reading state information... Done
                nodejs is already the newest version (14.18.2-deb-1nodesource1).
                0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
                

                Ich weiß leider dass ich als root angemeldet bin, was nicht gut ist. aber als iobroker kann ich mich nicht einloggen, dann sagt er mir "User account currently not available."

                Erkennst du da was?

                Danke und Gruß
                Andi

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

                  @andiekiste sagte in Adapter "smartmeter":

                  wenn er nodejs installiert haben will, versuche ich es einfach, aber dann kommt folgendes:

                  nodejs ist node
                  Hieß früher nur auch nodejs. Uralte Programme erwarten das noch. Dafür wurde früher einfach ein Link gesetzt, der bei Aufruf von nodejs auf node verlinkt hatte.
                  Das kann man immer noch machen, ist aber standardmäßig nur noch selten der Fall

                  Nix neu installieren!
                  Das geht dann wieder schief

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

                    @homoran Bei node Updates halte ich mich meist an Anleitungen sobald sie verfügbar sind und an die Versionen, wie sie hier im Forum vorgeschlagen werden, da ich wie gesagt nicht der Linux-Fachmann bin. Ich möchte es natürlich nicht ausschließen, aber "aus Versehen" ein Up- und wieder Downgrade zu machen würde mich selbst überraschen. 🙂

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

                      @andiekiste

                      sudo ln -s /usr/bin/node /usr/bin/nodejs
                      

                      Und dann in einer Tour durch:

                      which nodejs node npm && nodejs -v && node -v && npm -v && whoami && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                      

                      Nix rauspflücken, alles so in die Konsole klatschen.

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

                        @andiekiste sagte in Adapter "smartmeter":

                        aber als iobroker kann ich mich nicht einloggen, dann sagt er mir "User account currently not available."

                        das ist auch richtig so, aber du solltest einen normalen user, z.B. andi haben unter dem du arbeitest

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

                          @andiekiste sagte in Adapter "smartmeter":

                          Ich weiß leider dass ich als root angemeldet bin, was nicht gut ist.

                          Dann leg dir einen andi user an.

                          A 1 Reply Last reply Reply Quote 1
                          • A
                            AndieKiste @Homoran last edited by

                            @homoran ahh oke, danke. Dann bleibt nur leider die Frage warum der Adapter nicht will.

                            Macht es Sinn, unter Proxmox einfach mal eine neue VM anzulegen, iobroker neu zu installieren und dort ein Backup zu laden? Oder sind da andere Probleme zu erwarten?

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

                              @andiekiste sagte in Adapter "smartmeter":

                              Oder sind da andere Probleme zu erwarten?

                              nur die Üblichen 😉
                              anderer Hostname und andere IP

                              ersteres sollte eigentlich mit dem Restore über Backitup geregelt sein, bei manuellem Restore geht das über 'iobroker host this' bevor iobroker wieder gestartet wird
                              Letzteres ist nicht unbedingt wild, nur die IPs in diversen Adaptern müssten angepasst werden

                              1 Reply Last reply Reply Quote 0
                              • A
                                AndieKiste @Thomas Braun last edited by

                                @thomas-braun

                                root@iobroker:~# which nodejs node npm && nodejs -v && node -v && npm -v && whoami && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs& sudo apt update && apt policy nodejsv && npm -v && whoami && sudo apt
                                /usr/bin/nodejs
                                /usr/bin/node
                                /usr/bin/npm
                                v14.18.2
                                v14.18.2
                                6.14.15
                                root
                                Hit:1 http://archive.ubuntu.com/ubuntu hirsute InRelease
                                Get:2 http://archive.ubuntu.com/ubuntu hirsute-updates InRelease [115 kB] 
                                Hit:3 https://deb.nodesource.com/node_14.x groovy InRelease                          
                                Get:4 http://archive.ubuntu.com/ubuntu hirsute-security InRelease [110 kB]           
                                Fetched 225 kB in 1s (249 kB/s)    
                                Reading package lists... Done
                                Building dependency tree... Done
                                Reading state information... Done
                                3 packages can be upgraded. Run 'apt list --upgradable' to see them.
                                nodejs:
                                  Installed: 14.18.2-deb-1nodesource1
                                  Candidate: 14.18.2-deb-1nodesource1
                                  Version table:
                                 *** 14.18.2-deb-1nodesource1 500
                                        500 https://deb.nodesource.com/node_14.x groovy/main amd64 Packages
                                        100 /var/lib/dpkg/status
                                
                                1 Reply Last reply Reply Quote 0
                                • A
                                  AndieKiste @Thomas Braun last edited by

                                  @thomas-braun @Homoran
                                  Also wenn zwei exakt das gleiche in einer Minute empfehlen, dann war der User andi jetzt gerade als allererstes erstellt 😄

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

                                    @andiekiste sagte in Adapter "smartmeter":

                                    @thomas-braun @Homoran
                                    Also wenn zwei exakt das gleiche in einer Minute empfehlen, dann war der User andi jetzt gerade als allererstes erstellt 😄

                                    Super!
                                    Auch in die Sudoers eingetragen?

                                    A 1 Reply Last reply Reply Quote 1
                                    • A
                                      AndieKiste @Homoran last edited by

                                      @homoran
                                      Jep, wieder ne gute kurze Forumanleitung inkl. Test gefunden. 🙂

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

                                        @andiekiste sagte in Adapter "smartmeter":

                                        ne gute kurze Forumanleitung inkl. Test gefunden

                                        Wo?

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

                                          @homoran
                                          meistens im wiki.ubuntuusers.de, aber es gab dann noch ne gute Ergänzung hier.

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

                                            @andiekiste sagte in Adapter "smartmeter":

                                            meistens im wiki.ubuntuusers.de,

                                            ok, das passt meistens ganz gut, auch wenn Ubuntu (auch was die Pfade angeht) oft einen eigenen Weg geht

                                            A 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

                                            517
                                            Online

                                            31.6k
                                            Users

                                            79.5k
                                            Topics

                                            1.3m
                                            Posts

                                            279
                                            3620
                                            1759097
                                            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