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

      @Homoran bitte zeig mal den inhalt von info ordner

      und hast du die befehle, die bei deban funktionieren auch mal auf der console gecheckt - der hängt sich bei der frage nach dem memory auf
      funktioniert das ? der wert in den dp ist falsch sollte so aussehen (das script prüft ob ein datenpunkt existiert und geht dann davon aus, dass der inhalt stimmt :

      free -m  | awk ' NR == 2 {print $2";"$3";"$4}'
      

      Image 8.png

      zeigt doch mal den output auf der console von

      Image 9.png

      Homoran 2 Replies 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:

        bitte zeig mal den inhalt von info ordner

        gerne, aber etwas später 😉 ich teste gerade noch so einiges.

        z.B. habe ich hier mit der alten Version noch die IP drin, die vom eigenen Befehl kommt.
        Warum die bei der VM abgeschnitten ist, erklärt sich mir nicht, der Befehl ist überall identisch.

        IP_NUC_VM.png

        Habe auch an der Stelle in dem Script ip gegen info.ip getauscht. Das klappt jetzt auch.

        Den Tinker (jetzt MQTT-Tinker) habe ich jetzt von der Instanz als root ohne Sudo ansprechen lassen - das klappt.
        Tinker_als_root.png

        Dann kann ich jetzt im nächsten Schritt damit mal das neue Skript starten

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

          @Homoran ja die ip ist unnötig als befehl

          habe ich in der beschreibung ausgebessert

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

            @liv-in-sky neues Skript geht sofort wieder auf standby mit

            javascript.0	2020-08-20 16:22:44.691	error	(5057) at Script.runInContext (vm.js:133:20)
            javascript.0	2020-08-20 16:22:44.691	error	(5057) at script.js.Linux_Systeme_V04:541:1
            javascript.0	2020-08-20 16:22:44.691	error	(5057) at writeHTML (script.js.Linux_Systeme_V04:318:64)
            javascript.0	2020-08-20 16:22:44.690	error	(5057) TypeError: myArr[i][12].split is not a function
            javascript.0	2020-08-20 16:22:44.690	error	(5057) ^
            javascript.0	2020-08-20 16:22:44.690	error	(5057) if(myArr[i][12]!="") { let myMemTab=myArr[i][12].split(";");
            javascript.0	2020-08-20 16:22:44.689	error	(5057) script.js.Linux_Systeme_V04: script.js.Linux_Systeme_V04:318
            javascript.0	2020-08-20 16:22:44.629	info	(5057) Start javascript script.js.Linux_Systeme_V04
            
            liv-in-sky 1 Reply Last reply Reply Quote 0
            • liv-in-sky
              liv-in-sky @Homoran last edited by liv-in-sky

              @Homoran das istz der selbe fehler wegen dem falschen inhalt in "mem" datenpunkt

              hast du gecheck

              https://forum.iobroker.net/post/476714

              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:

                zeigt doch mal den output auf der console von

                pi@tinkerboard:~$ free -m  | awk ' NR == 2 {print $2";"$3";"$4}'
                2009;284;695
                

                Das steht ja auch im Datenpunkt

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

                  @Homoran ok - dann muss ich nachdenken

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

                    @liv-in-sky muss mich korrigieren, im Datenpunkt steht bei beiden Tinker nur eine Zahl.
                    kein Semikolon, keine Zahlenreihe

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

                      @Homoran

                      es müssen 3 werte mit strich-punkt getrennt sein - sonst chaos 🙂

                      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:

                        es müssen 3 werte mit strich-punkt getrennt sein - sonst chaos

                        isses nicht, obwohl es auf der Konsole so klappt

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

                          @Homoran bitte zeig mal "free -m" in der console

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

                            @Homoran

                            wir könnten auch teamviewen - ist angnehmer

                            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:

                              bitte zeig mal "free -m" in der console

                              brauch ich nicht mehr.

                              Hatte die Datenpunkttypen vertauscht. 😳
                              bei IP der VM war "Zahl", daher nur die ersten beiden Tripletts mit nur einem Separator

                              und hier hatte ich auch Zahl statt Zeichenkette

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

                                @Homoran dann geht es jetzt ?

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

                                  @liv-in-sky Momang - das dauert

                                  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 dann geht es jetzt ?

                                    linux_control_013.png

                                    JA!

                                    aber wahrscheinlich nur so lange, wie der MQTT-Tinker mit root Zugriff die Daten bekommt

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

                                      @Homoran schwere geburt - aber es lebt

                                      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:

                                        aber es lebt

                                        ist aber krank 😞

                                        Avail_is_not_total.png

                                        Ich hatte den Befehl für free mem schon implementiert und mich gefreut, dass available und nicht nur free dargestellt wurde
                                        leider ist der Wert der bei available steht aber die Gesamtgröße des RAM, (total) und nicht der verfügbare Speicher 😞

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

                                          @Homoran blöde bezeichnung

                                          mein avail ist eigentlich total - im material stimmt es - werde es im script ändern -

                                          machst mich ganz gaga 🙂 mit deiner dreambox

                                          versuche gerade meine "dreambox" was eine andere hardware ist - einzubinden - das doofe ding hat nicht mal systemctl, keine updates info, keine service, keine temp

                                          Image 16.png

                                          Image 17.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:

                                            das doofe ding hat nicht mal systemctl, keine updates info, keine service, keine temp

                                            kann nicht mal sudo und hat kein ssh nur busybox

                                            und das bei der 920UHD

                                            liv-in-sky harrym 2 Replies Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            649
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

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