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

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    ICal JSON Objekt abfragen

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

      @paul53
      Hab ich schon, kommt leider nichts...

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

        @nik82 bei mir schon 😉

        sieh dir mal mein Blockly an

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

          @nik82

          hm, sollte man in den openligadb-adapter eine funktion (sendTo) einbauen, über die man die aktuellen spiele für eine bestimmte liga als json abrufen kann? bzw. spiele in einem bestimmten Zeitraum.

          dann könnte man über ein skript regelmäßig alle möglichen aktionen durchzuführen.

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

            @homoran
            So hab mal einiges probiert:

            b81a61b8-d93a-4089-a73e-a403af6ffc9b-image.png

            0aa59add-f4eb-4aec-8499-2474fc6fda5c-image.png

            Also beim ersten sehe ich ja einen Output, durchsuchen geht aber anscheinend leider nicht.

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

              @nik82 sagte: Hab ich schon, kommt leider nichts...

              Glaube ich nicht:

              Bild_2022-02-09_144058.png

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

                @nik82 sagte in ICal JSON Objekt abfragen:

                durchsuchen geht aber anscheinend leider nicht.

                ist da noch was drunter???

                @nik82 sagte in ICal JSON Objekt abfragen:

                Also ich werde den Kalender auf einen Tag stellen.
                Wenn sich Objekt "JS iCal table" ändert, dann soll nach dem Begriff "Champions" gesucht werden.

                das ist ausbaufähig:

                im Moment sieht dein JSON so aus:
                Champion_JSON.png

                Hab das mal weiter analysiert:
                Champion01.png

                wenn du täglich abrufst und nur ein Spiel ist, sollte das gesuchte Spiel nicht bei 1._section stehen, sondern bei 0._section

                Dann noch den "Anbieter-In...." abtrennen und du hast direkt den Text für deine meldung.
                ggf. noch um die Uhrzeit usw. ergänzen

                nik82 1 Reply Last reply Reply Quote 0
                • 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

                                    670
                                    Online

                                    31.9k
                                    Users

                                    80.2k
                                    Topics

                                    1.3m
                                    Posts

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