Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Tester
    4. jarvis v2.2.0 - 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 v2.2.0 - just another remarkable vis

    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      Smart81 @Ceel last edited by

      @ceel

      Hi!

      Ich meine ich habe V2 aber wo kann ich denn werte in customHTML Adden?

      Diginix 1 Reply Last reply Reply Quote 0
      • Diginix
        Diginix @Smart81 last edited by

        @smart81 Genau so wie ich es einen Post vor deinem gezeigt habe.
        Das widget braucht einen state in dem das komplette HTML enthalten ist und die Aktualisierung von Werten in dem HTML machst du per Skript selbst.

        1 Reply Last reply Reply Quote 0
        • C
          Ceel @Diginix last edited by

          @Diginix
          Danke dir
          Hat super geklappt

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

            Für die Nutzer, die ein Video oder Image als Notification-Popup an jarvis schicken. Vielen war die Größe vom Popup zu klein.

            Mit CSS Styles könnt ihr die Größe beeinflussen:

            /* Nur für v2.2.x */
            .MuiDialog-paperWidthSm {
              width: 100% !important;
              max-width: 100% !important;
            }
            

            20212e5b-ae9c-41fb-9ab9-92fab59a2086-image.png

            Die Anzeige geht dann fast über die komplette Seite.

            C 1 Reply Last reply Reply Quote 0
            • Diginix
              Diginix last edited by

              Kann mir mal bitte einer Beispiele für andere DistanceToNow Formate geben.
              Ich habe alles mögliche ohne Erfolg probiert: https://date-fns.org/v2.24.0/docs/formatDistanceToNow

              Ich hätte es gern kompakter ohne "vor weniger als ...", also "vor 10 Sekunden" und auch gern ohne "etwa".
              Also immer nur "vor x ..." und dann Sek oder Min oder Stunden usw.

              Mit Formaten wie "dd.MM.yyyy HH:mm:ss" erhalte ich aber nur das absolute Datum der Änderung, nicht mehr die Zeitspanne.
              Mit options wie "includeSeconds" kommt immer nur "Falsches Zeitformat".

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

                @diginix In v2.2.x funktioniert kein anderes Format.

                Diginix 1 Reply Last reply Reply Quote 1
                • Diginix
                  Diginix @MCU last edited by

                  @mcu Demnach soll es in v3 gehen?
                  Was gäbe es da denn? Wenn ich es in der Doku deute hat man nicht all zu viel Einfluss auf die Wortwahl. Maximal der Teil weniger als 30 Sek scheint detaillierter zu gehen. Aber vllt verstehe ich es auch nur nicht.

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

                    @diginix Auch in v3 zieht es nocht nicht.
                    Alternativen wären:
                    Distance
                    DistanceToNow
                    DistanceStrict
                    DistanceToNowStrict
                    Ich habs nochmal aufgenommen, damit es nicht vergessen wird:
                    https://github.com/Zefau/ioBroker.jarvis/issues/1031

                    mcuiobroker created this issue in Zefau/ioBroker.jarvis

                    open v3: Zeitformate werden nicht alle unterstützt #1031

                    1 Reply Last reply Reply Quote 1
                    • U
                      UncleB last edited by

                      Abend zusammen..
                      Das Trigger Element "Button Action" gefällt mir besser als diese Schieber 🙂
                      Aber is es möglich wie in meinem Beispiel zu überprüfen ob ein DP true oder false ist?
                      Falls Garage offen sollte der Button "schließen" heißen und steuer entsprechend das Relais, und falls Garage zu ist würde ich sie halt gern öffnen, ich seh da in den Einstellungen keine Möglichkeit?..
                      Screenshot - 2021-09-24T183303.269.png

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

                        @uncleb
                        Toggle-Modus ist erst mit v3 möglich.
                        v2: ButtonAction oder IconButtonAction, kann ein Zustand schalten entweder "true" oder "false".
                        Möchte man nicht "true" schalten, sondern "false" muss man in den Datenpunkt-Eigenschaften: {"on":false} eintragen.

                        U 1 Reply Last reply Reply Quote 1
                        • M
                          MCU @Smart81 last edited by MCU

                          @smart81

                          /* Gilt nur für v2.2.x */
                          [id="Id der Statelist"] .MuiButton-root {
                             width:130px!important;
                              
                          }
                          /* falls Rollladen mit drin ist */
                          [id="Id der Statelist"]  .MuiButtonGroup-grouped  {
                             padding: 0px 0px !important;
                             min-width:30px !important;
                             width:30px !important;
                          } 
                          

                          bec34205-9623-42b1-949e-6ce6b9de7341-image.png

                          1 Reply Last reply Reply Quote 1
                          • C
                            Ceel @MCU last edited by

                            @mcu said in jarvis v2.2.0 - just another remarkable vis:

                            Für die Nutzer, die ein Video oder Image als Notification-Popup an jarvis schicken. Vielen war die Größe vom Popup zu klein.

                            Mit CSS Styles könnt ihr die Größe beeinflussen:

                            .MuiDialog-paperWidthSm {
                              width: 100% !important;
                              max-width: 100% !important;
                            }
                            

                            20212e5b-ae9c-41fb-9ab9-92fab59a2086-image.png

                            Die Anzeige geht dann fast über die komplette Seite.

                            wie baue ich das denn in meinen code ein?

                            var jarvisNotify = {};
                            jarvisNotify.title = "Es hat geklingelt";
                            let httpAdr = getState('synology.0.SurveillanceStation.cameras.Eingang.linkMjpegHttpPath').val;
                            httpAdr = httpAdr.replace('"',"%22");
                            httpAdr = httpAdr.replace('"',"%22");
                            jarvisNotify.message= '<iFrame src="'+ String(httpAdr) +'" height="360" width="650"></iFrame>';
                            jarvisNotify.state = "unread";          //Damit bleibt die Benachrichtigung auch nach POPUP ungelesen und wird oben angezeigt mit der Zahl
                            jarvisNotify.criticality = "none";      // error,warning,info,success
                            jarvisNotify.display ="popup";          //drawer,snackbar,popup, none für focusTab
                            jarvisNotify.autoHideDuration = 180000;  //5000ms -> 5 Sekunden
                            jarvisNotify.snackbarOrigin = {};       //"snackbarOrigin": { "horizontal": "...", "vertical": "" }, 
                                                                    // optional, applies when display is snackbar, { horizontal: 'center' | 'left' | 'right', vertical: 'bottom' | 'top' }
                            jarvisNotify.icon = "bell-ring-outline"; //mdi Iconify
                            jarvisNotify.iconColor = "#5D5DED";
                            jarvisNotify.backgroundColor = "black";
                            jarvisNotify.fontColor = "white";
                            jarvisNotify.focusTab = ""; //focus a certain tab
                            console.log(jarvisNotify.message);
                            setState('jarvis.0.addNotification',JSON.stringify(jarvisNotify));
                            
                            M 1 Reply Last reply Reply Quote 0
                            • M
                              MCU @Ceel last edited by MCU

                              @ceel Das gehört nicht in den Code, sondern in die CSS/Styles (Pro).
                              Wenn Dein Gerät (Tablet) ,dann eine größere Auflösung hat als 650x360, musst du auch das Video entsprechend vergrößert in die Notification schicken. Also auch dort dann die Werte anpassen.

                              C 1 Reply Last reply Reply Quote 0
                              • C
                                Ceel @MCU last edited by

                                @mcu
                                aber es zeigt immer noch nicht das komplette Bild an
                                ghet das auch mit der v3?

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

                                  @ceel Hast du jetzt die v3 im Einsatz?
                                  Mach mal ein Bild vom Tablet bzw Gerät mit der Notification

                                  C 1 Reply Last reply Reply Quote 0
                                  • C
                                    Ceel @MCU last edited by

                                    @mcu ja habe ich
                                    war das für die 2.2.x

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

                                      @ceel Ja, Das war für v2.2.x.
                                      Bzgl v3 schau ich mir mal nach.

                                      C 1 Reply Last reply Reply Quote 0
                                      • C
                                        Ceel @MCU last edited by Ceel

                                        @mcu Unbenannt2.png

                                        ich dachte du wärest auch schon auf der 3

                                        M 2 Replies Last reply Reply Quote 1
                                        • M
                                          MCU @Ceel last edited by

                                          @ceel Ich hab beide v2 und v3 parallel auf unterschiedlichen Systemen.

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

                                            @ceel Also für v3 wäre es:

                                            /* nur für v3 */
                                            .q-dialog .q-card {
                                            	max-width: 700px !important;
                                            	width: 700px !important;
                                            }
                                            

                                            Und dann entsprechend alle Werte so anpassen, welche du für Dein System brauchst .

                                            C 2 Replies Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            672
                                            Online

                                            31.6k
                                            Users

                                            79.6k
                                            Topics

                                            1.3m
                                            Posts

                                            jarvis material material ui materialdesign vis visualisierung visualization
                                            316
                                            6126
                                            3472899
                                            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