Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. JavaScript
    5. HowTo: Zusatz-Programme fuer jarvis v3

    NEWS

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    • Minor js-controller 7.0.7 Update in latest repo

    HowTo: Zusatz-Programme fuer jarvis v3

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

      @m-a-hueb Schau mal mit v1.0.2 neue Option oldItemsOnlyOnce.
      https://mcuiobroker.gitbook.io/jarvis-infos/jarvis-v3/besonderheiten-v3/scripts-3.1.x-pro/sonstige-skripte/bringremoveitem

      M-A Hueb 1 Reply Last reply Reply Quote 1
      • M-A Hueb
        M-A Hueb @MCU last edited by M-A Hueb

        @mcu muss man dass das neue Script importiert wird die Jarvis Instanz neu starten?

        Und muss man etwas im Fullybrowser einstellen das man das Icon sieht?

        M 1 Reply Last reply Reply Quote 0
        • M
          MCU @M-A Hueb last edited by

          @m-a-hueb Welches Icon?
          Zeig was du in scripts drin stehen hast

          M-A Hueb 1 Reply Last reply Reply Quote 0
          • M-A Hueb
            M-A Hueb @MCU last edited by M-A Hueb

            @mcu das Icon mit zBsp Kaffee aus !Bring

            Im den Jarvis Einstellungen Scripts steht

            http://192.168.1.1:8082/vis.0/bringRemoveltem.js

            Einträge werden immer noch gedoppelt

            M 1 Reply Last reply Reply Quote 0
            • M
              MCU @M-A Hueb last edited by MCU

              @m-a-hueb So?
              705a884b-6c62-48b9-97fb-bb44a30fff1e-image.png
              Im Script selbst die Anpassungen vorgenommen?
              Hast du denn den Inhalt von Deiner Datei geändert?

              M-A Hueb 1 Reply Last reply Reply Quote 0
              • M-A Hueb
                M-A Hueb @MCU last edited by

                @mcu ohne den ; ganz hinten da das der einzigste Eintrag ist

                Datei hab ich direkt im Vis Verzeichnis auf dem Windows server geändert

                M 1 Reply Last reply Reply Quote 0
                • M
                  MCU @M-A Hueb last edited by MCU

                  @m-a-hueb Und danach F5 am Frontend gedrückt?
                  Und oben in der Datei steht ?
                  c8d87878-52de-4064-9af4-e62569994496-image.png

                  M-A Hueb 1 Reply Last reply Reply Quote 0
                  • M-A Hueb
                    M-A Hueb @MCU last edited by

                    @mcu habs am iphone, am Pc mit F5, und am FireHD-Tablet mit FullyBrowser ausprobiert

                    M 1 Reply Last reply Reply Quote 0
                    • M
                      MCU @M-A Hueb last edited by

                      @m-a-hueb
                      Hast du die alten Einträge in oldItems gelöscht?
                      Also die jsonTable (oldItems) -> []

                      M-A Hueb 1 Reply Last reply Reply Quote 0
                      • M-A Hueb
                        M-A Hueb @MCU last edited by

                        @mcu sorry wenn ich mich da evtl gerade doof anstelle
                        Ja Datenpunkt habe ich gerade gelöscht so das nur noch []
                        Drin steht

                        M 1 Reply Last reply Reply Quote 0
                        • M
                          MCU @M-A Hueb last edited by

                          @m-a-hueb Und jetzt wird immer noch gedoppelt?

                          M-A Hueb 1 Reply Last reply Reply Quote 0
                          • M-A Hueb
                            M-A Hueb @MCU last edited by

                            @mcu ja 😔

                            M 1 Reply Last reply Reply Quote 0
                            • M
                              MCU @M-A Hueb last edited by MCU

                              @m-a-hueb Kann nicht, aber dann zeig mal den Inhalt von der Datei. Es reichen die oberen Zeilen als Bild.
                              bis hierhin:
                              let oldBackgroundColor = 'grey';

                              M-A Hueb 1 Reply Last reply Reply Quote 0
                              • M-A Hueb
                                M-A Hueb @MCU last edited by

                                @mcu du meinst vom js Skript?

                                CA397C95-894C-4746-B468-B42D8F126C57.png

                                M 1 Reply Last reply Reply Quote 0
                                • M
                                  MCU @M-A Hueb last edited by

                                  @m-a-hueb Ja, was steht in dem DP?
                                  6e854f01-7cd5-4372-80cc-c9a5c7771da4-image.png

                                  M-A Hueb 1 Reply Last reply Reply Quote 1
                                  • M-A Hueb
                                    M-A Hueb @MCU last edited by

                                    @mcu jetzt nach dem Test

                                    
                                    [{"oldItem":"<div style=\"background-color:transparent;text-align:center!important; justify-content:center!important;\"><button style=\"background-color:white;min-width:300px; text-align:center;\" id=\"Kaffee\" type=\"button\" onclick=\"addItemBring(this.id)\"><div style=\"padding: 10px; background-color:grey;\"><img src=\"https://web.getbring.com/assets/images/items/kaffee.png\" onerror=\"this.src='https://web.getbring.com/assets/images/items/bring.png';\" alt=\"nicht verfügbar\";  height=\"45\";  /></div><div><span style=\"color:black\">Espresso, ganze Bohne</span>&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color:red;font-weight: bold;\">Kaffee</span></div></button></div>","specification":"Espresso, ganze Bohne","name":"Kaffee"},{"oldItem":"<div style=\"background-color:transparent;text-align:center!important; justify-content:center!important;\"><button style=\"background-color:white;min-width:300px; text-align:center;\" id=\"Kaffee\" type=\"button\" onclick=\"addItemBring(this.id)\"><div style=\"padding: 10px; background-color:grey;\"><img src=\"https://web.getbring.com/assets/images/items/kaffee.png\" onerror=\"this.src='https://web.getbring.com/assets/images/items/bring.png';\" alt=\"nicht verfügbar\";  height=\"45\";  /></div><div><span style=\"color:black\">Espresso, ganze Bohne</span>&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color:red;font-weight: bold;\">Kaffee</span></div></button></div>","specification":"Espresso, ganze Bohne","name":"Kaffee"}]
                                    
                                    
                                    M 1 Reply Last reply Reply Quote 0
                                    • M
                                      MCU @M-A Hueb last edited by MCU

                                      @m-a-hueb Da muss jetzt -> [] stehen und dann im Frontend F5 drücken und nochmal probieren.
                                      Man muss natürlich auf allen Geräten erst F5 drücken, bevor man auf die Tabelle klickt!
                                      Jedes Gerät, dass man mit Jarvis nutzt, holt sich sein "eigenes" Programm bringRemoveItems.

                                      M-A Hueb 1 Reply Last reply Reply Quote 1
                                      • M-A Hueb
                                        M-A Hueb @MCU last edited by

                                        @mcu ich habe beide Datenpunkte leer gemacht []
                                        Dann über die App Kaffee eingetragen. Funktioniert korrekt. wenn ich ihn auf dieerledigt liste klicke passt es auch. sprich graues icon
                                        dann wieder auswählen steht er wieder in beiden listen
                                        Keine Ahnung was ich falsch mache

                                        M 1 Reply Last reply Reply Quote 0
                                        • M
                                          MCU @M-A Hueb last edited by MCU

                                          @m-a-hueb Ja soll ja auch in beiden Listen stehen, aber nicht doppelt in der "oldItems".
                                          Oder möchtest du, dass der Eintrag aus der oldItems-Liste verschwindet, wenn er wieder in "zu Kaufen" gesetzt wurde?

                                          M-A Hueb 1 Reply Last reply Reply Quote 1
                                          • M-A Hueb
                                            M-A Hueb @MCU last edited by M-A Hueb

                                            @mcu Ich danke dir für deine Geduld. in einem privaten Fenster funktioniert es. ich leere jetzt mal alle Caches. Vielen Dank

                                            Und so wie du es gemacht hast passt es

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            704
                                            Online

                                            31.6k
                                            Users

                                            79.5k
                                            Topics

                                            1.3m
                                            Posts

                                            javascript
                                            30
                                            858
                                            150417
                                            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