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.
    • 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
                                  • liv-in-sky
                                    liv-in-sky @Homoran last edited by liv-in-sky

                                    @Homoran ich denke sogar in sachen hardware und so, hast du bedeutend mehr erfahrung als ich

                                    im moment suche ich lieber eine temp frage zu klären, als das MDesign widget fertig zu machen 🙂

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

                                      @Homoran sagte in HTML Tabelle Linux-Control Adapter:

                                      @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

                                      und ja, es ist ein Code.
                                      cat liest die Datei aus, in der steht nur diese Zahl.

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

                                        @Homoran

                                        was passiert, wenn du

                                        du -c /opt/iobroker | tail -1 | awk '{printf $1MB}'
                                        

                                        in die console eingibst - auf dem tinker

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

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

                                          @Scrounger

                                          ich versuche mich noch mit dem list widget und bräuchte mal etwas hilfe:

                                          im bild sind die beiden gelben pfeile 2 tabellen - wie kann ich es schaffen, dass die nebeneinander sind - es kommen auch noch die button-befehle dazu - dann wird das alles zu lang

                                          Image 4.png

                                          hoffentlich ist der code nicht zu wirr

                                          let mysubText = "</br>"+`
                                          
                                                           <div style="color: ${farbeUeber}; font-family: RobotoCondensed-LightItalic; font-size: 20px;">HD:  ${vax1[iii][1]}%, ${vax1[iii][6]}</div> `
                                          
                                                            mysubText=mysubText.concat(`<div style="color: ${farbeUeber}; font-family: RobotoCondensed-LightItalic; font-size: 18px;">Folder:</div>
                                                                                       `)
                                                          mysubText=mysubText.concat(`<span display: flex; flex-direction: row;> <table align="center" >`)
                                          for (var i=0;i<vax2.length;i++){
                                                         if (vax2[i][0]==vax1[iii][0]) {
                                                           mysubText=mysubText.concat(`<tr><td align=\"left\">${vax2[i][1]}</td><td align=\"left\">&ensp;${vax2[i][2]} ${vax2[i][4]}</td></tr>` ) // `<div>${vax2[i][1]}: ${vax2[i][2]} ${vax2[i][4]}  </div>`
                                                            }  }
                                                            mysubText=mysubText.concat(`</table></span>`) 
                                          
                                                            
                                                            mysubText=mysubText.concat(`<div style="color: ${farbeUeber}; font-family: RobotoCondensed-LightItalic; font-size: 18px;">Service:</div>
                                                                                       `)
                                                            mysubText=mysubText.concat(`<span display: flex; flex-direction: row;> <table align="center" >`)
                                          for (var i=0;i<vax3.length;i++){
                                                         if (vax3[i][0]==vax1[iii][0]) {
                                                            let helpextra; vax3[i][2] ? helpextra=serviceTrue :helpextra=serviceFalse  
                                                           mysubText=mysubText.concat( `<tr><td align=\"left\">&ensp;${vax3[i][1]}</td><td align=\"left\">${helpextra}</td></tr>`)
                                                            }  }   
                                                            mysubText=mysubText.concat("</table></span>"  )   
                                            
                                          

                                          Da musst du dich echt gedulden, wir die nächsten Tage sicher nix.
                                          Meine Idee wäre zb beide Tabellen in nen flex Container mit column zu packen oder in eine Tabelle mit zwei Spalten. Vlt hilft dir das schon weiter?

                                          liv-in-sky 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:

                                            @Homoran

                                            was passiert, wenn du

                                            du -c /opt/iobroker | tail -1 | awk '{printf $1MB}'
                                            

                                            in die console eingibst - auf dem tinker

                                            nicht editieren, nachdem ich es kopiert habe 😉

                                            pi@tinkerboard:~$ du -c /opt/iobroker | tail -1 | awk '{printf $1MB}'
                                            139796pi@tinkerboard:~$
                                            
                                            liv-in-sky 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            675
                                            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