Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Tester
    4. jarvis v3.2.x - just another remarkable vis

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    jarvis v3.2.x - just another remarkable vis

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

      @mcu Vielen Dank!

      Was mir noch nicht ganz klar wird ist wohin verweist dann das Gerät FoodWarning? Auf ein Objekt das ich in iobroker angelegt habe? Also z.B. FoodWarningDP?

      Wenn ja, wie kommen dann die Infos in diesen Datenpunkt? Muss ich im Skript dann irgendwo angeben?

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

        @hotspot_2 Die DPs werden doch durch das Script erstellt

        H 1 Reply Last reply Reply Quote 0
        • H
          hotspot_2 @MCU last edited by

          @mcu Ich habe noch nicht so viele. Aber hier mal die, die ich habe.

          timestamp;value;acknowledged;from;
          11.1.2025 09:43:58.726;0.1489;true;influxdb.0
          11.1.2025 23:59:00.014;0.5094;true;javascript.0
          12.1.2025 23:59:00.005;0.079;true;javascript.0
          13.1.2025 23:59:00.017;0.9735;true;javascript.0
          14.1.2025 23:59:00.009;0.3989;true;javascript.0
          15.1.2025 23:59:00.011;0.4798;true;javascript.0
          16.1.2025 23:59:00.008;0.2285;true;javascript.0
          17.1.2025 23:59:00.004;0.2148;true;javascript.0
          18.1.2025 23:59:00.003;0.3871;true;javascript.0
          19.1.2025 23:59:00.017;0.7035;true;javascript.0
          
          M 1 Reply Last reply Reply Quote 0
          • M
            MCU @hotspot_2 last edited by

            @hotspot_2 schau ich mir morgen an

            1 Reply Last reply Reply Quote 0
            • H
              hotspot_2 @MCU last edited by

              @mcu sagte in jarvis v3.2.x - just another remarkable vis:

              @hotspot_2 Die DPs werden doch durch das Script erstellt

              Alles klar. dann verweise ich auf das JSON das in den Objekten drin ist welches das Skript erstellt. Danke!

              H 1 Reply Last reply Reply Quote 0
              • H
                hotspot_2 @hotspot_2 last edited by

                @hotspot_2 sagte in jarvis v3.2.x - just another remarkable vis:

                @mcu sagte in jarvis v3.2.x - just another remarkable vis:

                @hotspot_2 Die DPs werden doch durch das Script erstellt

                Alles klar. dann verweise ich auf das JSON das in den Objekten drin ist welches das Skript erstellt. Danke!

                Und kaum macht man es richtig, geht es schon! Vielen Dank für die Unterstützung.

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

                  @hotspot_2 vermute das Problem liegt in der Art vom Zeitpunkt. Es ist keine UTC Zeit und auch kein timestamp. Dies sollteman aber nutzen. Der Historygraph macht aus dem Zeitstring eine zeit 1 Stunde weiter, da er den string als UTC wahrnimmt.

                  H 1 Reply Last reply Reply Quote 0
                  • H
                    hotspot_2 @MCU last edited by

                    @mcu sagte in jarvis v3.2.x - just another remarkable vis:

                    @hotspot_2 vermute das Problem liegt in der Art vom Zeitpunkt. Es ist keine UTC Zeit und auch kein timestamp. Dies sollteman aber nutzen. Der Historygraph macht aus dem Zeitstring eine zeit 1 Stunde weiter, da er den string als UTC wahrnimmt.

                    Ok. Wo kann ich das einstellen?

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

                      @hotspot_2 Lass es mal laufen. Id stimmt?

                      let id = '0_userdata.0.wasser.verbrauch.wv1'
                      
                      sendTo('influxdb.0', 'getHistory', {
                          id: id,
                          options: {
                              end:       Date.now(),
                              count:     100,
                              aggregate: 'onchange',
                              addId: true
                          }
                      }, function (result) {
                          for (var i = 0; i < result.result.length; i++) {
                              // console.log( new Date(result.result[i].ts).toISOString() + ' ' +result.result[i].val);
                              console.log(result.result[i].ts + ' ' + result.result[i].val )
                          }
                      });
                      
                      H 1 Reply Last reply Reply Quote 0
                      • H
                        hotspot_2 @MCU last edited by

                        @mcu sagte in jarvis v3.2.x - just another remarkable vis:

                        @hotspot_2 Lass es mal laufen. Id stimmt?

                        let id = '0_userdata.0.wasser.verbrauch.wv1'
                        
                        sendTo('influxdb.0', 'getHistory', {
                            id: id,
                            options: {
                                end:       Date.now(),
                                count:     100,
                                aggregate: 'onchange',
                                addId: true
                            }
                        }, function (result) {
                            for (var i = 0; i < result.result.length; i++) {
                                // console.log( new Date(result.result[i].ts).toISOString() + ' ' +result.result[i].val);
                                console.log(result.result[i].ts + ' ' + result.result[i].val )
                            }
                        });
                        

                        Ich habe das am Ende des CSS-Styles Tab eingefügt und es ändert sich aber am HistoryGraph nichts. Die ID passt.

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

                          @hotspot_2 Nein, das ist ein javascript für ioBroker Skripte.
                          398fdffd-dd6d-434f-bd61-e0069bcdd70e-image.png
                          25ede935-7e26-4f03-9fb4-2608a8734607-image.png
                          + klicken
                          158f7f24-babc-4ea6-a483-46df41be97a7-image.png
                          Name eingeben -> TestgetHistory -> ok klicken und dann das Programm dort einfügen und starten.

                          H 1 Reply Last reply Reply Quote 0
                          • H
                            hotspot_2 @MCU last edited by

                            @mcu Alles klar. Das hätte ich hinbekommen. Mir war nur nicht klar wohin damit.

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

                              @hotspot_2 Wollte jetzt erstmal nur sehen wie die ts - Werte aussehen. Hinterher können wir die Daten einmal als array holen und ich kann dann hier direkt mit den Daten nachstellen.

                              H 1 Reply Last reply Reply Quote 0
                              • H
                                hotspot_2 @MCU last edited by

                                @mcu Wenn das Skript läuft dann reagiert es sobald Werte abgespeichert werden, sehe ich das richtig? Das heisst ich sehe erst ab morgen ob es was verbessert.

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

                                  @hotspot_2 Nein, das Script zeigt sofort im LOG die letzten 100 Werte an. Das Script ist nicht für eine Verbesserung, sondern um den Zustand zu klären.

                                  H 1 Reply Last reply Reply Quote 0
                                  • H
                                    hotspot_2 @MCU last edited by

                                    @mcu Am Zustand des HistoryGraph hat sich nichts verändert:

                                    b3d2ccee-c563-49dc-bac0-5c618342e199-image.png

                                    Hier der Log-Auszug:

                                    f0c59f91-47ef-4c89-9301-099e7fcaf1f2-image.png

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

                                      @hotspot_2 Bitte das Log in Code-Tags , nicht als Bild

                                      H 1 Reply Last reply Reply Quote 0
                                      • H
                                        hotspot_2 @MCU last edited by

                                        @mcu Klar.

                                        2025-01-21 16:33:25.516 - info: javascript.0 (6628) script.js.Testläufe.Wasser_HistoryGraph: 1736585038726 0.1489
                                        2025-01-21 16:33:25.516 - info: javascript.0 (6628) script.js.Testläufe.Wasser_HistoryGraph: 1736636340014 0.5094
                                        2025-01-21 16:33:25.516 - info: javascript.0 (6628) script.js.Testläufe.Wasser_HistoryGraph: 1736722740005 0.079
                                        2025-01-21 16:33:25.516 - info: javascript.0 (6628) script.js.Testläufe.Wasser_HistoryGraph: 1736809140017 0.9735
                                        2025-01-21 16:33:25.516 - info: javascript.0 (6628) script.js.Testläufe.Wasser_HistoryGraph: 1736895540009 0.3989
                                        2025-01-21 16:33:25.516 - info: javascript.0 (6628) script.js.Testläufe.Wasser_HistoryGraph: 1736981940011 0.4798
                                        2025-01-21 16:33:25.516 - info: javascript.0 (6628) script.js.Testläufe.Wasser_HistoryGraph: 1737068340008 0.2285
                                        2025-01-21 16:33:25.516 - info: javascript.0 (6628) script.js.Testläufe.Wasser_HistoryGraph: 1737154740004 0.2148
                                        2025-01-21 16:33:25.516 - info: javascript.0 (6628) script.js.Testläufe.Wasser_HistoryGraph: 1737241140003 0.3871
                                        2025-01-21 16:33:25.516 - info: javascript.0 (6628) script.js.Testläufe.Wasser_HistoryGraph: 1737327540017 0.7035
                                        2025-01-21 16:33:25.516 - info: javascript.0 (6628) script.js.Testläufe.Wasser_HistoryGraph: 1737413940011 0.3085
                                        2025-01-21 16:33:25.516 - info: javascript.0 (6628) script.js.Testläufe.Wasser_HistoryGraph: 1737473605511 0.3085
                                        
                                        M 1 Reply Last reply Reply Quote 0
                                        • M
                                          MCU @hotspot_2 last edited by

                                          @hotspot_2
                                          https://mcuiobroker.gitbook.io/jarvis-infos/jarvis-v3/besonderheiten-v3/module/historygraph/beispiele/x-achse#x-achse-1-tag-verschieben

                                          1 Reply Last reply Reply Quote 0
                                          • D
                                            der-eine last edited by

                                            Hallo @MCU,

                                            seit gestern hängt mein iPad an der Wand 👏 über einen Philips Hue Motion Sensor und Pushover lasse ich das iPad aufwecken wenn ich davor stehen.
                                            Dies funktioniert soweit auch gut. Mein Problem ist, dass Jarvis dann nicht mehr ansprechbar ist und als Web-App auf dem Homescreen gibt es auch keinen aktualisieren Button.

                                            Gibt es eine Möglichkeit Jarvis wieder zu verbinden sobald das iPad aufwacht? Das passiert schon wenn eine kurzen Zeitraum keiner am Tablet vorbei läuft.

                                            IMG_1534.jpg

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            818
                                            Online

                                            31.6k
                                            Users

                                            79.6k
                                            Topics

                                            1.3m
                                            Posts

                                            43
                                            879
                                            167242
                                            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