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

      @hansi1234 Man kann eine zweite Instanz anlegen, aber hier darf man nicht die automatische Konfiguration nutzen. Das funktioniert noch nicht.
      Instanz anlegen
      jarvis.1 aufrufen
      weiter,
      weiter,
      weiter,
      -> Manuelle Konfiguration
      (Kann zum Absturz kommen (click) -> F5

      Ein Gerät manuell anlegen, ein Layout manuell anlegen. Läuft.

      7e76ea6c-45ea-47a5-b005-824fec0bb95f-image.png
      d0e4300c-6cdf-4ebe-83ff-d1111a0cad99-image.png

      Man kann auch folgende Werte in jarvis.1.devices kopieren: (node entsprechend eines vorhandenen Wertes anpassen)

      {"TEST1":{"id":"TEST1","function":"other","states":{"test":{"state":{"node":"0_userdata.0.testwert"}}},"options":{},"attributes":{"_created":1615233685623,"_updated":1615233704735},"name":"Test","hash":1615233704735}}
      

      Und in jarvis.1.layout:

      [{"title":"","tabs":[{"id":"home0","title":"HOME","icon":"home","columns":[[{"moduleConfig":{},"devices":[{"type":"device","deviceId":"TEST1","bodyStateKey":"test","bodyElement":"LastChangeBody","primaryStateKey":"test","showState":true,"actionElement":null}],"module":"StateList","title":"Test","id":"TEST2","index":0}],[],[]],"index":0},{"id":"tabhinzufügen1","title":"INFO","icon":"home","columns":[[],[],[]],"index":1}],"id":"0","index":0}]
      

      Dann hat man erst einmal Startwerte.

      H 2 Replies Last reply Reply Quote 0
      • H
        Hansi1234 @MCU last edited by

        @mcu ich füge nur eine weitere Instanz hinzu und weiter nichts. Der Fehler erscheint sofort

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

          @hansi1234 Der Fehler erscheint beim Aufrufen der Seite: http://IP_RPi:8082/jarvis/index.html#instance=1?

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

            @mcu jep

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

              @mcu ich weiß nicht ob das interessant für andere ist bzw. habe ich die Befürchtung dass wenn man nicht weiß was man tut, eventuell was kaputt macht, weil man Code nicht lesen bzw. Verstehen kann. Ich Versuche eigentlich immer sehr dynamische Scripte mit einer build function für createState und Datenpunkt zu machen. Diese muss ja dann logischer Weise nur einmal ausgeführt werden und dann wieder auskommentiert werden.

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

                @hansi1234 Hast du mal die Werte in devices und layout eingetragen?

                H 1 Reply Last reply Reply Quote 0
                • M
                  MCU @Sebastian IO last edited by

                  @sebastian-io Solange du die Datenpunkte nicht in dem Adapter positioniert hast. Warum werden Sie auskommentiert? createstate legt nur dann neu an, wenn nichts vorhanden ist.

                  Sebastian IO 1 Reply Last reply Reply Quote 0
                  • H
                    Hansi1234 @MCU last edited by

                    @mcu mach ich morgen, danke dir

                    1 Reply Last reply Reply Quote 0
                    • Sebastian IO
                      Sebastian IO @MCU last edited by Sebastian IO

                      @mcu das ist so ne programmierkrankeit. Ich will keine function aufrufen die prùft ob state existiert oder nicht, falls es nicht nõtig ist. 😉 Fast vergessen die Datenpunkte werden nur unter dem tree Userdata angelegt.

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

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

                        [{"title":"","tabs":[{"id":"home0","title":"HOME","icon":"home","columns":[[{"moduleConfig":{},"devices":[{"type":"device","deviceId":"TEST1","bodyStateKey":"test","bodyElement":"LastChangeBody","primaryStateKey":"test","showState":true,"actionElement":null}],"module":"StateList","title":"Test","id":"TEST2","index":0}],[],[]],"index":0},{"id":"tabhinzufügen1","title":"INFO","icon":"home","columns":[[],[],[]],"index":1}],"id":"0","index":0}]

                        Das hat funktioniert. Danke

                        Hätte noch eine Frage.
                        Ich habe ein Fenster/Türenscript am Laufen, welche mir anzeigt wieviele Fenster/Türen offen sind. Ein weiteres Script erstellt mir die Anzeige, welche Fenster genau geöffnet sind und wenn keine offen sind, wird zB "Kein Fenster geöffnet" angezeigt.
                        Wie stelle ich bei einem geöffnetem Fenster ein, dass es rot geschrieben wird und wenn alles zu ist, dass es grün geschrieben wird?
                        In VIS habe ich dazu extra ein Script laufen.

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

                          @hansi1234 Wie sehen denn die Werte aus, die in dem Datenpunkt erscheinen? Du hast ja zwei Datenpunkte (Anzahl und Beschreibung). Kommt jetzt darauf an, was do wo angezeigt haben möchtest, Beispiele:

                          e40fc8ca-dba2-422a-a3a6-e495fc4732dc-image.png

                          Falls es sich um eine Zahl handelt:

                          {"0":"Keine Fenster geöffnet"}
                          

                          Text:

                          {"":"Keine Fenster geöffnet"}
                          

                          be1eaa59-f54b-4e85-8577-c92610b3230c-image.png

                          Falls es sich um eine Zahl handelt:

                          {"0":{"color":"green"},">0":{"color":"red"}}
                          

                          Text:

                          {"":{"color":"green"},"default":{"color":"red"}}
                          
                          H 1 Reply Last reply Reply Quote 0
                          • H
                            Hansi1234 @MCU last edited by

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

                            {"0":{"color":"green"},">0":{"color":"red"}}

                            Die Datenpunkte sehen so aus:
                            mc.JPG

                            ICh hätte gerne in grüner Farbe "Keine Tür geöffnet". Wenn etwas geöffnet ist, dann in Rot.
                            Ist das möglich?

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

                              @hansi1234 Bei dem Datenpunkt statusdooropentext entsprechend den Inhalt eintragen und color green zuweisen.

                              {"Keine Tür/Tor geöffnet":{"color":"green"}}
                              
                              H 1 Reply Last reply Reply Quote 0
                              • H
                                Hansi1234 @MCU last edited by

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

                                :{"color":"green"}}

                                wo genau? Bei "Anzeigevariante JSON-Format"?

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

                                  @hansi1234 Nein. Bei Datenpunkt Stil.

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

                                    @mcu bleibt leider weiß

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

                                      @hansi1234 Zeig mal die Einträge.

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

                                        @mcu mc.JPG

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

                                          @hansi1234 Ist im Datenpunkt evtl. noch ein Leerzeichen dahinter?

                                          0f45eb41-03ec-41fe-8d53-d0ceca579800-image.png
                                          435d8383-8d19-4c11-965a-2c836cde3e27-image.png
                                          58119c6c-d930-4b00-a2cd-e3b11cbaf3ba-image.png
                                          58d52b8a-a774-4400-9f01-97d992bc58e2-image.png
                                          4029457f-a91e-48ad-bad9-b9ac92bbacbf-image.png

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

                                            @mcu ne, davor auch nicht

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            740
                                            Online

                                            31.6k
                                            Users

                                            79.5k
                                            Topics

                                            1.3m
                                            Posts

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