Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Visualisierung
    4. Jarvis v3.1.9-beta.2 -> JSON Table Inhalte (TS in Datum)

    NEWS

    • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?

    • Monatsrückblick – September 2025

    • Neues Video "KI im Smart Home" - ioBroker plus n8n

    Jarvis v3.1.9-beta.2 -> JSON Table Inhalte (TS in Datum)

    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      MCU @tritanium last edited by

      @tritanium ?Im Link sind mehrere Beispiele gezeigt. Verstehe jetzt das Problem nicht.
      Hast du es jetzt hinbekommen oder nicht?

      T 1 Reply Last reply Reply Quote 0
      • T
        tritanium @MCU last edited by

        @mcu

        Leider eben nicht, sonst würde ich ja hier im Forum nicht um Hilfe bitten.

        Ich bin alle Beispiele von hier (https://mcuiobroker.gitbook.io/jarvis-infos/jarvis-v3/besonderheiten-v3/module/jsontable/parameter-format-pro#formatted-date) durchgegangen und habe aus jedem Beispiel den "format" Tag genommen und probiert, aber keiner hat funktioniert.

        Aktuell lautet der Format String:

        7d61c1a6-6e00-4e58-a070-19f312b08bc1-grafik.png

        Als Ergebnis kommt:

        c0454a0c-1986-44a7-bba5-de471d25f494-grafik.png

        Wie auch immer ich aus deiner Doku mir die Beispiele rauskopiere, vernünftig als "Datum" wird es leider nicht angezeigt.

        Ich habe keine Ahnung wo mein Fehler liegen könnte, deshalb ja die Anfrage hier im Forum.

        Bin für jede Hilfe dankbar 🙂

        1 Reply Last reply Reply Quote 0
        • M
          MCU last edited by MCU

          @tritanium Dann hast du keine PRO Version?
          fa04cfab-3717-4428-aff3-cd78ad8059fc-image.png

          https://mcuiobroker.gitbook.io/jarvis-infos/jarvis-v3/besonderheiten-v3/pro-account

          T 1 Reply Last reply Reply Quote 0
          • T
            tritanium @MCU last edited by

            @mcu

            Aber na klar 🙂

            f6785e14-c853-493d-bbc3-56c36da41e21-grafik.png

            M 3 Replies Last reply Reply Quote 0
            • M
              MCU @tritanium last edited by MCU

              @tritanium Ok, dann schaue ich mir das nochmal genauer an.

              1 Reply Last reply Reply Quote 0
              • M
                MCU @tritanium last edited by

                @tritanium Bitte die Konfig-Einstellungen als Code-Tag.

                T 1 Reply Last reply Reply Quote 0
                • M
                  MCU @tritanium last edited by MCU

                  @tritanium Also dass scheint ein Bug zu sein. date selbst wird nicht mehr erkannt.

                  So geht es:

                  "format": "val=>{let x = new Date(val).toLocaleString(); return x;}"
                  /* falls das komma stört */
                  "format": "val=>{let x = new Date(val).toLocaleString(); return x.replace(',','');}"
                  

                  https://github.com/Zefau/ioBroker.jarvis/issues/2412

                  T 1 Reply Last reply Reply Quote 0
                  • T
                    tritanium @MCU last edited by

                    @mcu

                    Aiaiai, da hätte ich ja nun gar nicht mit gerechnet, das das ein Bug ist 🙂

                    Also nach deinen Aussagen habe ich nun deine folgenden Format Tags getestet:

                    1. "format": "val=>{let x = new Date(val).toLocaleString(); return x;}"

                    als Rückgabe kommt nun:

                    d8a8fff7-3c0a-4d34-85e7-dc1713c6ae2a-grafik.png

                    Sieht "Uhrzeitentechnisch" schon mal besser aus, aber das Datum will immer noch nicht....

                    1. "format": "val=>{let x = new Date(val).toLocaleString(); return x.replace(',','');}"

                    wie oben, nur halt ohne KOMMA (hattest du ja auch so geschrieben)

                    61b269d3-fc02-4d9d-81e3-a4547bbd3657-grafik.png

                    Also wir kommen der Sache näher 🙂

                    1 Reply Last reply Reply Quote 0
                    • T
                      tritanium @MCU last edited by

                      @mcu

                      Was meinst du mit "Konfig" Einstellungen?

                      Wo bekomme ich die her ?

                      M 1 Reply Last reply Reply Quote 0
                      • M
                        MCU @tritanium last edited by MCU

                        @tritanium
                        e0a64225-fee6-4586-afba-0d5da425d4f6-image.png
                        a0bace5c-f2fd-4f19-bd56-3796542b8888-image.png
                        In dem speziellen Fall muss man den TS-Wert *1000 nehmen.

                        Den Inhalt von Spalten als CodeTag.

                        T 1 Reply Last reply Reply Quote 0
                        • T
                          tritanium @MCU last edited by

                          @mcu

                          Ups, okay, hatte ich überlesen 🙂

                          [{"field":"begin","label":"Start",  "format": "val=>{let x = new Date(val).toLocaleString(); return x.replace(',','');}"},{"field":"end","label":"Ende"},{"field":"duration","label":"Dauer","format":"val => (val/60).toFixed(2)"}]
                          

                          So steht es nun 1:1 drin 🙂

                          Raus kommt das:

                          8a99dbdf-a902-41da-88c2-da25aae9c6c9-grafik.png

                          Wo muss ich was "*1000" nehmen ??

                          M 1 Reply Last reply Reply Quote 0
                          • M
                            MCU @tritanium last edited by

                            @tritanium
                            779f5312-ed40-43ac-8f92-353458388fb7-image.png

                            [{"field":"begin","label":"Start", "format": "val=>{let x = new Date(val*1000).toLocaleString(); return x.replace(',','');}"},{"field":"end","label":"Ende", "format": "val=>{let x = new Date(val*1000).toLocaleString(); return x.replace(',','');}"},{"field":"duration","label":"Dauer","format":"val => (val/60).toFixed(2)"}]
                            
                            T 1 Reply Last reply Reply Quote 0
                            • T
                              tritanium @MCU last edited by

                              @mcu

                              Jiiiipiiiieee 🐶

                              Es geht tatsächlich ... Hammer... einen Gaaaanz Lieben Dank

                              Äh, ist das jetzt so, das ich das so lassen kann, oder hätte es mit den Format Tags wie in der Doku beschrieben auch gehen sollen, wenn nicht der Bug wäre ?

                              Ich bin erst einmal froh, das nun die Anzeige mal vernünftig aussieht .... das wir meine Frau freuen ... 🙂

                              Danke danke danke für deine Geduld ....

                              M 1 Reply Last reply Reply Quote 0
                              • M
                                MCU @tritanium last edited by

                                @tritanium Ja erstmal so lassen. Doku hätte funktionieren müssen.

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

                                Support us

                                ioBroker
                                Community Adapters
                                Donate

                                1.1k
                                Online

                                32.4k
                                Users

                                81.2k
                                Topics

                                1.3m
                                Posts

                                2
                                17
                                871
                                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