Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Einsteigerfragen
    4. JSON Frage, wie bezeichne/addressiere ich den Wert?

    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

    JSON Frage, wie bezeichne/addressiere ich den Wert?

    This topic has been deleted. Only users with topic management privileges can see it.
    • Homoran
      Homoran Global Moderator Administrators @Chris 1 last edited by

      @chris-1 sagte in JSON Frage, wie bezeichne/addressiere ich den Wert?:

      bin neu dabei

      na, sooo neu nu auch nicht.

      ich bin nicht wirklich mit js fit, aber meines Wissens ist die Spezialvariable result die Rückgabe vom Request.
      wenn du weiter mit Variablen arbeiten willst musst du eigene erstellen.

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

        @homoran 2 Wochen?

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

          @chris-1 sagte in JSON Frage, wie bezeichne/addressiere ich den Wert?:

          @homoran 2 Wochen?

          109 Beiträge!

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

            @homoran Ich bin Neugierig 😁

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

              @chris-1 sagte in JSON Frage, wie bezeichne/addressiere ich den Wert?:

              @homoran Ich bin Neugierig 😁

              so treibt man den Counter natürlich auch hoch!

              ....worauf?

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

                @homoran Na, wie das hier mit ioBroker so alles funktioniert

                Es gibt viele Sachen, die man auch ausserhalb einer Hausautomatisierung verarbeiten kann und die man ergänzend auf einem Dashboard zwecks Information zur Verfügung stellen kann.
                Sei's der Wellengang in der Ostsee vor'm Lieblingsstrand oder der Pegel Wismar, der nicht von Pegelalarm erfasst ist, den man jedoch separat über eine API (https://www.pegelonline.wsv.de/webservices/rest-api/v2/stations/WISMAR-BAUMHAUS/W.json?includeCurrentMeasurement=true) abrufen kann.

                MOD-EDIT: externen Link sichtbar gemacht!

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

                  @chris-1 willst du jetzt nicht mehr das Blockly fertig machen?

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

                    @homoran DOCH-DOCH-DOCH

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

                      @chris-1 also BTT.
                      was verstehst du nicht?

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

                        @chris-1 bei mir klappt alles!
                        istvam Handy zwar nicht so leicht gewesen, aber kein Problem:

                        Screenshot_20221116-213956_Firefox.jpg

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

                          @chris-1 sagte: "features.0.properties.GRAY_INDEX" aus dem JSON in das Object "0_userdata.0.Ostsee.Brook.Wellengang" schreiben.

                          Bild_2022-11-16_214514328.png

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

                            @homoran

                            Wie bekomme ich (JSON) "features.0.properties.GRAY_INDEX" in das Objekt (Wert) "0_userdata.0.Ostsee.Brook.Wellengang".

                            Wenn ich das verstanden habe, brauch ich ggf später Objekt (Wert) nicht mehr

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

                              @chris-1 du kannst mit result arbeiten, aber von wandeln in Objekt hatte ich nichts geschrieben.

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

                                @homoran

                                Ich habe ein Object

                                0_result.0.Ostsee.Brook.HWS

                                Darin steht ein JSON als Wert

                                Daraus möchte ich gerne "features.0.properties.GRAY_INDEX"

                                In "0_result.0.Ostsee.Brook.Wellengang" als numerischen Wert übertragen.

                                Homoran paul53 2 Replies Last reply Reply Quote 0
                                • Homoran
                                  Homoran Global Moderator Administrators @Chris 1 last edited by

                                  @chris-1 sagte in JSON Frage, wie bezeichne/addressiere ich den Wert?:

                                  Ich habe ein Object
                                  0_result.0.Ostsee.Brook.HWS

                                  du schreibst doch mit deinem Blockly das JSON erst in diesen Datenpunkt.
                                  dann verarbeitest du es weiter.

                                  Dafür musst du es nicht in den DP schreiben.
                                  oder brauchst du das JSON später nochmal?

                                  den Rest haben Paul und ich dir gezeigt

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

                                    @homoran

                                    Ich habe schlicht immer noch nicht kapiert, wie ich an den numerischen Wert von "GRAY_INDEX" komme, denn nur der (naja, ggf auch Timestamp) interessiert mich

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

                                      @chris-1 sagte in JSON Frage, wie bezeichne/addressiere ich den Wert?:

                                      Ich habe schlicht immer noch nicht kapiert, wie ich an den numerischen Wert von "GRAY_INDEX" komme,

                                      @homoran sagte in JSON Frage, wie bezeichne/addressiere ich den Wert?:

                                      @chris-1 bei mir klappt alles!
                                      istvam Handy zwar nicht so leicht gewesen, aber kein Problem:

                                      Screenshot_20221116-213956_Firefox.jpg

                                      nur dass ich das JSON manuell in eine Variable gepackt habe. du hast sie in result

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

                                        @chris-1 Screenshot_20221116-220546_Firefox.jpg

                                        hier als debug.
                                        du musst aktualisiere ID nehmen

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

                                          @chris-1 sagte: Ich habe ein Object 0_result.0.Ostsee.Brook.HWS. Darin steht ein JSON als Wert

                                          Bild_2022-11-16_224257070.png

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

                                            @paul53

                                            Ich glaube ihr versteht nicht, dass ICH NICHT BEGREIFE, wie ich den Wert von Debug auslese

                                            wellengang.jpg

                                            Wie bekomme ich das in wellengang???

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            370
                                            Online

                                            31.9k
                                            Users

                                            80.3k
                                            Topics

                                            1.3m
                                            Posts

                                            4
                                            34
                                            653
                                            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