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.
    • 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
                                      • M
                                        MCU @der-eine last edited by

                                        @der-eine Der HUE Motion Sensor kann dann ja auch ein Reload auslösen.
                                        https://mcuiobroker.gitbook.io/jarvis-infos/jarvis-v3/besonderheiten-v3/scripts-3.1.x-pro/sonstige-skripte/reloadpage

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

                                          @mcu danke Dir. Hab es gestern Abend noch eingestellt. Leider funktioniert es nicht (der Datenpunkt reloadPage wird nicht getriggert). Werde es heute nochmal überprüfen ob ich irgendwo nen Fehler gemacht habe und mich nochmal melden.

                                          M 1 Reply Last reply Reply Quote 0
                                          • M
                                            MCU @der-eine last edited by MCU

                                            @der-eine Funktioniert es denn, wenn du den DP auslöst?

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            851
                                            Online

                                            31.6k
                                            Users

                                            79.6k
                                            Topics

                                            1.3m
                                            Posts

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