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.
    • Chris 1
      Chris 1 last edited by Chris 1

      Moin,

      wenn ich folgendes JSON habe (0_userdata.0.Ostsee.Brook.HWS)

      json.jpg

      Wie referenziere ich hier GRAY_INDEX als Text in Blockly, um da
      an GRAY_INDEX als Zahl ran zu kommen?

      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?:

        folgendes JSON

        bitte als Text in code-tags

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

          @homoran

          {"type":"FeatureCollection","features":[{"type":"Feature","id":"fid_dwd:Cwam_reg025_fd_sl_SWH_0000","geometry":null,"properties":{"GRAY_INDEX":0.7799999713897705,"TIME":"2022-11-16T12:00:00Z","REFERENCE_TIME":"2022-11-16T12:00:00Z"}}],"totalFeatures":"unknown","numberReturned":1,"timeStamp":"2022-11-16T19:36:33.100Z","crs":null}

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

            @chris-1 dann

            Attribut von features.0.properties.GRAY_INDEX

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

              @homoran Danke, probier ich gleich aus

              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 Danke, probier ich gleich aus

                da fehlte noch properties

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

                  @homoran

                  Ich vermute, ich bin auf dem richtigen Weg,
                  aber result wird nicht überschrieben/neu gesetzt ?

                  blockly.jpg

                  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?:

                    aber result wird nicht überschrieben/neu gesetzt ?

                    wie meinen?
                    du weist result doch nichts neues zu

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

                      @homoran

                      Ich will einfach "features.0.properties.GRAY_INDEX" aus dem JSON in das Object "0_userdata.0.Ostsee.Brook.Wellengang" schreiben.

                      Hab weder von ioBroker noch JSON Ahnung,
                      bin neu dabei 😕

                      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?:

                        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
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            781
                                            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