Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. JavaScript
    5. HTML Tabelle Linux-Control Adapter

    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

    HTML Tabelle Linux-Control Adapter

    This topic has been deleted. Only users with topic management privileges can see it.
    • Homoran
      Homoran Global Moderator Administrators @liv-in-sky last edited by

      @liv-in-sky bin ich gerade bei, aber auch die Temperatur ist nicht da 😞

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

        @Homoran sagte in HTML Tabelle Linux-Control Adapter:

        @liv-in-sky bin ich gerade bei, aber auch die Temperatur ist nicht da 😞

        EDIT: geht in der VM auch nicht

        liv-in-sky 2 Replies Last reply Reply Quote 0
        • liv-in-sky
          liv-in-sky @Homoran last edited by liv-in-sky

          @Homoran hast du die temperatur mal direct in der console abgefragt mit dem befehl, den du benutzt ? evtl stimmt da was nicht - ich weiß nicht, wie eine antwort auf die temp abfrage bei raspi 4 aussieht

          habe nur raspi 3 getestet

          1 Reply Last reply Reply Quote 0
          • liv-in-sky
            liv-in-sky @Homoran last edited by

            @Homoran

            evtl das debug log des adapters aktivieren - da steht vielleicht etwas mehr

            Homoran 1 Reply Last reply Reply Quote 0
            • Homoran
              Homoran Global Moderator Administrators @liv-in-sky last edited by Homoran

              @liv-in-sky sagte in HTML Tabelle Linux-Control Adapter:

              evtl das debug log des adapters aktivieren - da steht vielleicht etwas mehr

              mach ich auch gleich - hänge gerade am dritten Server = Tinkerboard mit Armbian.
              Temperatur wird dort laut OPI-Adapter so ausgelesen:

              "temperature": {
                    "soc_temp": {
                      "command": "cat /sys/devices/virtual/thermal/thermal_zone0/temp",
                      "regexp": "(.*)",
                      "post": "$1"
                    }
              

              Ich bastel da gerade an dem Befehl

              Da tut's der Folder Befehl auch nicht

              liv-in-sky 1 Reply Last reply Reply Quote 0
              • liv-in-sky
                liv-in-sky @Homoran last edited by

                @Homoran der befehl scheint klar zu sein

                cat /sys/devices/virtual/thermal/thermal_zone0/temp
                

                es geht nur um die auswertung - wie ist den der output von diesem befehl ?

                Homoran 1 Reply Last reply Reply Quote 0
                • Homoran
                  Homoran Global Moderator Administrators @liv-in-sky last edited by Homoran

                  @liv-in-sky sagte in HTML Tabelle Linux-Control Adapter:

                  @Homoran der befehl scheint klar zu sein

                  cat /sys/devices/virtual/thermal/thermal_zone0/temp
                  

                  es geht nur um die auswertung - wie ist den der output von diesem befehl ?

                  Habe es jetzt mit :
                  cat /sys/devices/virtual/thermal/thermal_zone0/temp | awk '{print substr($1, length($0)-5,4)}' probiert um zu sehen was da kommt.
                  Danach hat er unglaubliche 438 °C

                  muss also noch ne Kommastelle rein

                  Output_3Server.png

                  Aber das mit den Foldern gefällt mir nicht.
                  Muss das mit einem abschließenden slash (/) sein.
                  Beim RasPi klappt es ja

                  liv-in-sky 1 Reply Last reply Reply Quote 0
                  • liv-in-sky
                    liv-in-sky @Homoran last edited by

                    @Homoran ein klein wenig zu hoch - würd sagen alles über 400 grad ist nicht ok 🙂

                    lass einfach die 8 und °C weg - die einheit hat eh der dp

                    Homoran 1 Reply Last reply Reply Quote 0
                    • Homoran
                      Homoran Global Moderator Administrators @liv-in-sky last edited by

                      @liv-in-sky sagte in HTML Tabelle Linux-Control Adapter:

                      lass einfach die 8 und °C weg - die einheit hat eh der dp

                      🤣

                      Wenn ich wüsste wie! ...und das °C kommt vom DP

                      liv-in-sky 1 Reply Last reply Reply Quote 0
                      • liv-in-sky
                        liv-in-sky @Homoran last edited by

                        @Homoran

                        length($0)-5,4)
                        

                        da kannst du spielen bis es paßt

                        Homoran 1 Reply Last reply Reply Quote 0
                        • Homoran
                          Homoran Global Moderator Administrators @liv-in-sky last edited by

                          @liv-in-sky Scherzkeks!

                          das dachte ich mir schon, aber was heißt das???

                          liv-in-sky 2 Replies Last reply Reply Quote 0
                          • liv-in-sky
                            liv-in-sky @Homoran last edited by

                            @Homoran versuche mal

                            length($0)-5,3)}
                            

                            dann wird eine zahl weniger angezeigt

                            1 Reply Last reply Reply Quote 0
                            • liv-in-sky
                              liv-in-sky @Homoran last edited by

                              @Homoran Image 15.png

                              Homoran 1 Reply Last reply Reply Quote 1
                              • Homoran
                                Homoran Global Moderator Administrators @liv-in-sky last edited by

                                @liv-in-sky Die Ausgabe ist:

                                 cat /sys/devices/virtual/thermal/thermal_zone0/temp
                                45061
                                

                                und mit

                                 cat /sys/devices/virtual/thermal/thermal_zone0/temp | awk '{print substr($1, length($0)-5,3)}'
                                45
                                

                                kommt wenigstens was halbwegs sinnvolles raus.

                                liv-in-sky D 2 Replies Last reply Reply Quote 0
                                • liv-in-sky
                                  liv-in-sky @Homoran last edited by

                                  @Homoran das sieht aber eher nach einem code aus -hast du den befehl so ausgeführt in der console oder ist das einfach nur gepostet

                                  Homoran 1 Reply Last reply Reply Quote 0
                                  • Homoran
                                    Homoran Global Moderator Administrators @liv-in-sky last edited by

                                    @liv-in-sky sagte in HTML Tabelle Linux-Control Adapter:

                                    ist das einfach nur gepostet

                                    verbreite ich etwa irgendwo fake news????

                                    @liv-in-sky sagte in HTML Tabelle Linux-Control Adapter:

                                    hast du den befehl so ausgeführt in der console

                                    aber selbstverständlich!!

                                    Output_3Server003.png

                                    Jetzt nur noch das Problem mit den folders

                                    liv-in-sky 1 Reply Last reply Reply Quote 0
                                    • liv-in-sky
                                      liv-in-sky @Homoran last edited by

                                      @Homoran

                                      ok habe das mit temp gefunden - daher sollte dein wert stimmen
                                      Image 16.png

                                      Homoran 1 Reply Last reply Reply Quote 0
                                      • Homoran
                                        Homoran Global Moderator Administrators @liv-in-sky last edited by

                                        @liv-in-sky sagte in HTML Tabelle Linux-Control Adapter:

                                        ok habe das mit temp gefunden - daher sollte dein wert stimmen

                                        vertraust du mir etwa nicht, dass du das verifizieren musst??????

                                        Ich habe ja schon zu Zeiten von ccuio den rpi-"Adapter" auf armbian umgestellt. Damals für den Cubietruck

                                        liv-in-sky 2 Replies Last reply Reply Quote 0
                                        • liv-in-sky
                                          liv-in-sky @Homoran last edited by

                                          @Homoran
                                          ne - aber ich hatte mal ein problem mit irgendeinem gerät - da war das ein code und nicht einfach die temperatur

                                          kenne tinkerboard nicht

                                          Homoran 1 Reply Last reply Reply Quote 0
                                          • Homoran
                                            Homoran Global Moderator Administrators @liv-in-sky last edited by

                                            @liv-in-sky sagte in HTML Tabelle Linux-Control Adapter:

                                            kenne tinkerboard nicht

                                            das ist auch nicht das "Problem". geht genau so beim Oranpe Pi, beim Rock64 und Pine64 , beim Odroid und beim Cubietruck um nur einige zu nennen:

                                            https://forum.iobroker.net/topic/8089/rpi2-0-und-cubietruck-cubieboard-3

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            643
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

                                            javascript template
                                            7
                                            201
                                            17684
                                            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