Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Adapter-Status mit Blockly JSON auslesen

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    SOLVED Adapter-Status mit Blockly JSON auslesen

    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      djsirius last edited by

      Re: Material Design Widgets: Adapter Status

      Moin!

      Kann ich per Blockly aus der jsonList einzelne Informationen rausziehen?

      Kann mir vielleicht jemand ein Beispiel posten?

      Vielen Dank!

      Homoran 1 Reply Last reply Reply Quote 0
      • paul53
        paul53 @djsirius last edited by paul53

        @djsirius
        Weshalb die Informationen über den Umweg Widget-JSON auslesen? Sie liegen auch als Datenpunkte unter "system.adapter.adaptername.N" vor.

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

          @djsirius sagte in Adapter-Status mit Blockly JSON auslesen:

          aus der jsonList

          wie sieht die aus?

          geht es so
          https://forum.iobroker.net/post/1043801
          oder ähnlich?

          bitte mehr Informationen!
          https://forum.iobroker.net/topic/51555/hinweise-für-gute-forenbeiträge/1

          D 1 Reply Last reply Reply Quote 1
          • D
            djsirius @Homoran last edited by djsirius

            @homoran Sorry, das habe ich total vergessen! 😕

            Es geht um diese JSON [https://forum.iobroker.net/topic/30661/material-design-widgets-adapter-status/1](link url)

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

              @djsirius was ist das? der link geht hierhin

              Screenshot_20230915-112221_Firefox.jpg

              wo ist das JSON?
              warum postest du es nicht hier, wo du fragst?

              D 1 Reply Last reply Reply Quote 0
              • D
                djsirius @Homoran last edited by

                @homoran du musst unter dem 1. Post gucken (habe meinen Link geändert). Dort ist ein Skript welches eine JSON erzeugt.

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

                  @djsirius sagte in Adapter-Status mit Blockly JSON auslesen:

                  du musst

                  muss ich?

                  bitte poste hier dein JSON.

                  D 1 Reply Last reply Reply Quote 1
                  • D
                    djsirius @Homoran last edited by

                    @homoran

                    [
                      {
                        "text": "<div style=\"display: flex; flex-direction: row; line-height: 1.5; padding-right: 8px; align-items: center;\">\n                            <div style=\"flex: 1\"> Javascript</div>\n                            <div style=\"color: grey; font-size: 12px; font-family: RobotoCondensed-LightItalic;\">v7.0.3</div>\n                        </div>",
                        "subText": "<div style=\"display: flex; flex-direction: row; line-height: 1.3; padding-left: 1px; padding-right: 8px; align-items: center;\">\n                                <div style=\"flex: 1;\">CPU</div>\n                                <div style=\"color: grey; font-size: 14px; font-family: RobotoCondensed-LightItalic; text-align: right;\">6.27 %</div>\n                            </div>\n                            <div style=\"display: flex; flex-direction: row; line-height: 1.3; padding-left: 1px; padding-right: 8px; align-items: center;\">\n                                <div style=\"flex: 1;\">RAM total</div>\n                                <div style=\"color: grey; font-size: 14px; font-family: RobotoCondensed-LightItalic; text-align: right;\">225.76 MB</div>\n                            </div>\n                            <div style=\"display: flex; flex-direction: row; line-height: 1.3; padding-left: 1px; padding-right: 8px; align-items: center;\">\n                                <div style=\"flex: 1;\">RAM verwendet</div>\n                                <div style=\"color: grey; font-size: 14px; font-family: RobotoCondensed-LightItalic; text-align: right;\">209.09 MB</div>\n                            </div>\n                            <div style=\"display: flex; flex-direction: row; line-height: 1.3; padding-left: 1px; padding-right: 8px; align-items: center;\">\n                                <div style=\"flex: 1;\">RAM reserviert</div>\n                                <div style=\"color: grey; font-size: 14px; font-family: RobotoCondensed-LightItalic; text-align: right;\">373.29 MB</div>\n                            </div>\n                            <div style=\"display: flex; flex-direction: row; line-height: 1.3; padding-left: 1px; padding-right: 8px; align-items: center;\">\n                                <div style=\"flex: 1;\">Betriebszeit</div>\n                                <div style=\"color: grey; font-size: 14px; font-family: RobotoCondensed-LightItalic; text-align: right;\">10h 54m</div>\n                            </div>\n                            <div style=\"display: flex; flex-direction: row; line-height: 1.3; padding-left: 1px; padding-right: 8px; align-items: center;\">\n                                <div style=\"flex: 1;\">Modus</div>\n                                <div style=\"color: grey; font-size: 14px; font-family: RobotoCondensed-LightItalic; text-align: right;\">daemon</div>\n                            </div>",
                        "image": "/javascript.admin/javascript.png",
                        "listType": "buttonState",
                        "objectId": "0_userdata.0.vis.AdapterStatus.restartTrigger",
                        "buttonStateValue": "system.adapter.javascript.0",
                        "statusBarColor": "green",
                        "showValueLabel": false,
                        "name": "Javascript",
                        "mode": "daemon",
                        "hasUpdates": false,
                        "cpu": 6.27,
                        "memHeapTotal": 225.76,
                        "memHeapUsed": 209.09,
                        "memRss": 373.29,
                        "uptime": 39229,
                        "status": 0,
                        "lockEnabled": true
                      },
                      {
                        "text": "<div style=\"display: flex; flex-direction: row; line-height: 1.5; padding-right: 8px; align-items: center;\">\n                            <div style=\"flex: 1\"> Admin</div>\n                            <div style=\"color: grey; font-size: 12px; font-family: RobotoCondensed-LightItalic;\">v6.8.0</div>\n                        </div>",
                        "subText": "<div style=\"display: flex; flex-direction: row; line-height: 1.3; padding-left: 1px; padding-right: 8px; align-items: center;\">\n                                <div style=\"flex: 1;\">CPU</div>\n                                <div style=\"color: grey; font-size: 14px; font-family: RobotoCondensed-LightItalic; text-align: right;\">0.07 %</div>\n                            </div>\n                            <div style=\"display: flex; flex-direction: row; line-height: 1.3; padding-left: 1px; padding-right: 8px; align-items: center;\">\n                                <div style=\"flex: 1;\">RAM total</div>\n                                <div style=\"color: grey; font-size: 14px; font-family: RobotoCondensed-LightItalic; text-align: right;\">63.83 MB</div>\n                            </div>\n                            <div style=\"display: flex; flex-direction: row; line-height: 1.3; padding-left: 1px; padding-right: 8px; align-items: center;\">\n                                <div style=\"flex: 1;\">RAM verwendet</div>\n                                <div style=\"color: grey; font-size: 14px; font-family: RobotoCondensed-LightItalic; text-align: right;\">59.98 MB</div>\n                            </div>\n                            <div style=\"display: flex; flex-direction: row; line-height: 1.3; padding-left: 1px; padding-right: 8px; align-items: center;\">\n                                <div style=\"flex: 1;\">RAM reserviert</div>\n                                <div style=\"color: grey; font-size: 14px; font-family: RobotoCondensed-LightItalic; text-align: right;\">182.55 MB</div>\n                            </div>\n                            <div style=\"display: flex; flex-direction: row; line-height: 1.3; padding-left: 1px; padding-right: 8px; align-items: center;\">\n                                <div style=\"flex: 1;\">Betriebszeit</div>\n                                <div style=\"color: grey; font-size: 14px; font-family: RobotoCondensed-LightItalic; text-align: right;\">11T 23h 41m</div>\n                            </div>\n                            <div style=\"display: flex; flex-direction: row; line-height: 1.3; padding-left: 1px; padding-right: 8px; align-items: center;\">\n                                <div style=\"flex: 1;\">Modus</div>\n                                <div style=\"color: grey; font-size: 14px; font-family: RobotoCondensed-LightItalic; text-align: right;\">daemon</div>\n                            </div>",
                        "image": "/admin.admin/admin.png",
                        "listType": "buttonState",
                        "objectId": "0_userdata.0.vis.AdapterStatus.restartTrigger",
                        "buttonStateValue": "system.adapter.admin.0",
                        "statusBarColor": "green",
                        "showValueLabel": false,
                        "name": "Admin",
                        "mode": "daemon",
                        "hasUpdates": false,
                        "cpu": 0.07,
                        "memHeapTotal": 63.83,
                        "memHeapUsed": 59.98,
                        "memRss": 182.55,
                        "uptime": 1035634,
                        "status": 0,
                        "lockEnabled": true
                      },
                    
                    Homoran paul53 2 Replies Last reply Reply Quote 0
                    • Homoran
                      Homoran Global Moderator Administrators @djsirius last edited by Homoran

                      @djsirius das ist kein (gültiges) JSON

                      Screenshot_20230915-113813_Firefox.jpg

                      Wenn ich deine bisherige Informationen richtig deute

                      @djsirius sagte in Adapter-Status mit Blockly JSON auslesen:

                      Dort ist ein Skript welches eine JSON erzeugt.

                      generierst du erst ein JSON per Skript, um es dann wieder per Skript zu zerlegen!??

                      EDIT:
                      Nach Entfernen einiger Zeichen sehe ich jetzt das hier
                      Screenshot_20230915-114118_Firefox.jpg

                      ob das auch dass ist, was wirklich vorliegt musst du mir sagen

                      1 Reply Last reply Reply Quote 0
                      • paul53
                        paul53 @djsirius last edited by paul53

                        @djsirius
                        Weshalb die Informationen über den Umweg Widget-JSON auslesen? Sie liegen auch als Datenpunkte unter "system.adapter.adaptername.N" vor.

                        1 Reply Last reply Reply Quote 2
                        • First post
                          Last post

                        Support us

                        ioBroker
                        Community Adapters
                        Donate

                        787
                        Online

                        32.0k
                        Users

                        80.4k
                        Topics

                        1.3m
                        Posts

                        3
                        9
                        388
                        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