Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. ICal JSON Objekt abfragen

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    ICal JSON Objekt abfragen

    This topic has been deleted. Only users with topic management privileges can see it.
    • nik82
      nik82 Most Active @Homoran last edited by nik82

      @homoran
      Ah jetzt hab ich was gefunden, das Hauptproblem bei mir gerade ist, dass ich das Objekt nicht als Text hinbekomme.
      Das hier geht:

      aa562c9e-a138-401a-a032-67e69d717c90-image.png

      Aber nicht wenn ich das Objekt nehme:

      3f738ee4-9d32-4483-931a-5456ba9e39eb-image.png

      auch nicht so:

      b1cc9b5b-5f75-42a4-b5a9-06bd837cf79d-image.png

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

        @nik82 sagte in ICal JSON Objekt abfragen:

        Aber nicht wenn ich das Objekt nehme:

        konvertiere es mal in "nach String"

        Ansonsten:
        Champion03.png
        bekommst du da deine ganzen Informationen.
        Nur müsstest du in ical noch die Formatierung des Datums ggf. anpassen

        nik82 2 Replies Last reply Reply Quote 0
        • nik82
          nik82 Most Active @Homoran last edited by

          @homoran
          Nein, String geht leider auch nicht:

          7da82a01-965f-42da-91f7-4f5289ff94c8-image.png

          Irgendwas ist bei dem Objekt anders, selbst ein einfach Output geht nicht:

          6e5f5b88-89a0-4285-96e8-1c4a76554720-image.png

          7e1480f5-cabb-41e2-ba3d-511dc0c35a1a-image.png

          Oder als JSON:
          0d1d32d4-0004-4127-bdf0-fdfdb9226797-image.png

          9ce77956-cd40-4927-bfa2-23e9088de150-image.png

          Kannst du dir das erklären, hier mal die Objektdaten:

          88508692-8650-4fcb-8085-e6191f5944cb-image.png

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

            @nik82 sagte in ICal JSON Objekt abfragen:

            Oder als JSON:

            nee, da willst du ein JSON in ein Objekt wandeln.
            Das so genannte JSON i, ICAL ist aber ein ARRAY von Jsons

            1 Reply Last reply Reply Quote 0
            • nik82
              nik82 Most Active @Homoran last edited by

              @homoran

              Ok, aber wie bekomme ich jetzt den Inhalt von dem Objekt in Text? 🙂

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

                @nik82
                Wenn der DP vom Typ "array" ist, wandle "Objekt nach JSON".

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

                  @nik82 sagte in ICal JSON Objekt abfragen:

                  Ok, aber wie bekomme ich jetzt den Inhalt von dem Objekt in Text?

                  ggf. direkt als Liste einlesen

                  1 Reply Last reply Reply Quote 0
                  • nik82
                    nik82 Most Active @paul53 last edited by

                    @paul53

                    Ahhhhh, so einfach wenn man es weiß 🙂👍

                    Es funktioniert:

                    84461a75-3a1f-429f-89ff-b402d087d09d-image.png

                    Vielen, vielen Dank euch zwei @paul53 und @Homoran 👍

                    Homoran sten-tor 2 Replies Last reply Reply Quote 0
                    • Homoran
                      Homoran Global Moderator Administrators @nik82 last edited by

                      @nik82 vielleicht hättest du sogar den Trashschedule Adapter dafür Missbrauchen können

                      1 Reply Last reply Reply Quote 0
                      • sten-tor
                        sten-tor @nik82 last edited by sten-tor

                        @nik82 Falls du auch den Inhalt der relevanten JSON-Objekte auslesen möchtest, würde ich dir JSONata empfehlen.

                        Beispielsweise so:

                        json.png

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

                        Support us

                        ioBroker
                        Community Adapters
                        Donate
                        FAQ Cloud / IOT
                        HowTo: Node.js-Update
                        HowTo: Backup/Restore
                        Downloads
                        BLOG

                        951
                        Online

                        31.6k
                        Users

                        79.6k
                        Topics

                        1.3m
                        Posts

                        5
                        22
                        1228
                        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