Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Visualisierung
    4. neue Visualisierung "webui" (alternative zu vis & vis-2)

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    neue Visualisierung "webui" (alternative zu vis & vis-2)

    This topic has been deleted. Only users with topic management privileges can see it.
    • jogibear9988
      jogibear9988 @Smilie108 last edited by

      @smilie108

      @playing kann raus, das geht ja nicht...

      1 Reply Last reply Reply Quote 0
      • jogibear9988
        jogibear9988 @Smilie108 last edited by

        @smilie108 said in neue Visualisierung "webui" (alternative zu vis & vis-2):

        @jogibear9988 jap die id hab ich vergeben
        das interesannte ist wenn ich es bei dir aufrufe mit gleichem screen ( export bei dir und import bei mir) gleicher browser und nur diesen screen aufgerufen dann hast du

        <wired-video id="radioEl" class="wired-rendered" src="" bind-prop:src="=local_radiosenderauswahl_topplay_okay::src" bind-prop:autoplay="=local_radisender_top_stopplay::autoplay" playsinline="" @playing='{"commands":[{"type":"Co…23","target":"error"}]}' style="position:relativ;left:0p….821px;width:462.016px;">
        

        und bei mir kommt

        error parsing javascript - screenviewer - normalscreens/multimedia/radio(1) TypeError: radioEl.video is undefined
        

        und

        <wired-video id="radioEl" class="wired-rendered" src="" bind-prop:src="=local_radiosenderauswahl_topplay_okay::src" bind-prop:autoplay="=local_radisender_top_stopplay::autoplay" playsinline="" style="position:relativ;left:0p….821px;width:462.016px;">
        

        woher nimmt er bei dir das @playing ? das finde ich bei dir weder im code noch sonst irgendwo
        THX

        hab das script angepasst....
        schau mal obs so geht

        Smilie108 1 Reply Last reply Reply Quote 0
        • Smilie108
          Smilie108 @jogibear9988 last edited by

          @jogibear9988 da bekomme ich das gleiche wie auf deinem
          Uncaught TypeError: radioEl.video is undefined
          bzw beim play stop drücken
          Uncaught (in promise) DOMException: The media resource indicated by the src attribute or assigned media provider object was not suitable.

          Smilie108 jogibear9988 2 Replies Last reply Reply Quote 0
          • Smilie108
            Smilie108 @Smilie108 last edited by

            @jogibear9988
            Lass es gut danke für deine Hilfe ich glaub ich hab das soweit verstanden wie es gehen sollte mit dem event listener aber wenn es nicht will dann will es nicht 😉 alles gut ich glaube ich muss das nochmal überdencken wie ich das mache 😉 bzw wie ich das einbinden will.
            ABER HERZLICHEN DANK FÜR DEINE BEMÜHUNGEN
            Gruß tom

            1 Reply Last reply Reply Quote 0
            • jogibear9988
              jogibear9988 @Smilie108 last edited by

              @smilie108 said in neue Visualisierung "webui" (alternative zu vis & vis-2):

              @jogibear9988 da bekomme ich das gleiche wie auf deinem
              Uncaught TypeError: radioEl.video is undefined

              kein plan warum das noch kommt. Wenn musst deinen ganzen screen nochmals hochladen, dann kann ich schauen

              Smilie108 1 Reply Last reply Reply Quote 0
              • Smilie108
                Smilie108 @jogibear9988 last edited by

                @jogibear9988 hab ich gemacht unter smilie108 radio1

                jogibear9988 1 Reply Last reply Reply Quote 0
                • jogibear9988
                  jogibear9988 @Smilie108 last edited by

                  @smilie108 said in neue Visualisierung "webui" (alternative zu vis & vis-2):

                  @jogibear9988 hab ich gemacht unter smilie108 radio1

                  nun gehts... ist das problem, die wired elmente sind noch nicht geladen, wenn man das event ranhängen will. Nun warte ich darauf, schau dir das script an.

                  1 Reply Last reply Reply Quote 0
                  • jogibear9988
                    jogibear9988 last edited by jogibear9988

                    Diesen Code führe ich aus:

                    https://github.com/node-projects/base-custom-webcomponent/blob/795eb5cc78fbead59ba1d6d99bb8d0a343faa937/src/BaseCustomWebComponent.ts#L621

                    Der wartet darauf das alle child webcomponenten geupgraded sind.

                    Smilie108 1 Reply Last reply Reply Quote 1
                    • Smilie108
                      Smilie108 @jogibear9988 last edited by

                      @jogibear9988 ja jetzt gehts 😉 Danke . das muss man sich für die zukunft merken 😉
                      Danke

                      1 Reply Last reply Reply Quote 0
                      • jogibear9988
                        jogibear9988 last edited by

                        Was gibts neues....

                        Kommt in der nächsten Version (ist noch nicht live)

                        CSS-Specificity wird nun angezeigt, und die Styles nach dieser sortiert:
                        der wert: (a-b-c)
                        dadurch weiß man welche styles benutzt werden.

                        b5105f8f-d191-4ef4-950e-7e010dba0742-image.png

                        1 Reply Last reply Reply Quote 1
                        • jogibear9988
                          jogibear9988 last edited by

                          Sooo, hab mal ein bisschen an den zoom properties gearbeitet. Nun kann man Screens in andere Screens einbetten und zoomen. Dabei kann man noch eine Größe festlegen, von welcher aus der Zoom berechnet wird (wenn der ursprüngliche Screen keine fixe Größe hat).

                          05f59931-8deb-499b-b2a9-08f1512edc18-image.png

                          1 Reply Last reply Reply Quote 1
                          • jogibear9988
                            jogibear9988 last edited by

                            I've added a few of the samples to a new "start" page of webui:

                            9f785835-1ad3-4658-bcf8-99cc73990227-image.png

                            http://129.159.205.3:8082/webui/runtime.html

                            Smilie108 1 Reply Last reply Reply Quote 0
                            • Smilie108
                              Smilie108 @jogibear9988 last edited by Smilie108

                              @jogibear9988 in firefox geht nichts mer in chrome gehts keine ahnung warum
                              Firefox debug bringt

                              
                              
                              
                              Uncaught SyntaxError: redeclaration of const importMapWidgets
                                  <anonymous> http://192.168.1.173:8082/webui.0.widgets/importmap.js:1
                              
                              Uncaught (in promise) NS_ERROR_UNEXPECTED: 
                                  loadScreenData http://192.168.1.173:8082/webui/dist/frontend/runtime/ScreenViewer.js:165
                              ScreenViewer.js:165
                              

                              js geht auch in chrome nicht ( menue und player usw ) in Chrome zeigt er mir wenigstens das startbild

                              Version 1.9.8

                              jogibear9988 B 3 Replies Last reply Reply Quote 0
                              • jogibear9988
                                jogibear9988 @Smilie108 last edited by

                                @smilie108

                                sorry, ich schaus mir nacher an. 😉

                                Ich schau auch mal das ich ein paar UI tests baue.

                                1 Reply Last reply Reply Quote 0
                                • B
                                  Blockmove @Smilie108 last edited by

                                  @smilie108 said in neue Visualisierung "webui" (alternative zu vis & vis-2):

                                  @jogibear9988 in firefox geht nichts mer in chrome gehts keine ahnung warum

                                  Kann ich bestätigen.

                                  1 Reply Last reply Reply Quote 0
                                  • jogibear9988
                                    jogibear9988 last edited by

                                    Firefox nightly ging, nur der aktuelle nicht.

                                    hatte diesen code:

                                     if (Document.parseHTMLUnsafe) {
                                            //@ts-ignore
                                            myDocument = Document.parseHTMLUnsafe(html)
                                    

                                    und ein fallback wenn es "parseHTMLUnsafe" nicht gibt. Problem, im aktuellen Firefox gibts die API, ist aber kaputt. In nightly geht Sie. Hab den code für firefox nun erst mal deaktiviert.
                                    Dadurch geht in Firefox DeclarativeShadowDom nicht (nutzt aber eh keiner)

                                    1 Reply Last reply Reply Quote 0
                                    • jogibear9988
                                      jogibear9988 @Smilie108 last edited by

                                      @smilie108 said in neue Visualisierung "webui" (alternative zu vis & vis-2):

                                      @jogibear9988 in firefox geht nichts mer in chrome gehts keine ahnung warum
                                      Firefox debug bringt

                                      
                                      
                                      
                                      Uncaught SyntaxError: redeclaration of const importMapWidgets
                                          <anonymous> http://192.168.1.173:8082/webui.0.widgets/importmap.js:1
                                      
                                      Uncaught (in promise) NS_ERROR_UNEXPECTED: 
                                          loadScreenData http://192.168.1.173:8082/webui/dist/frontend/runtime/ScreenViewer.js:165
                                      ScreenViewer.js:165
                                      

                                      js geht auch in chrome nicht ( menue und player usw ) in Chrome zeigt er mir wenigstens das startbild

                                      Version 1.9.8

                                      1.9.9 sollte laufen

                                      Smilie108 1 Reply Last reply Reply Quote 0
                                      • Smilie108
                                        Smilie108 @jogibear9988 last edited by

                                        @jogibear9988 1.9.9 visu selber geht eingeschränkt wieder. Startbild geht aber zb menue und javascripte gehen nicht.
                                        auch nicht mit chrome
                                        mfg tom

                                        jogibear9988 1 Reply Last reply Reply Quote 0
                                        • jogibear9988
                                          jogibear9988 @Smilie108 last edited by

                                          @smilie108 said in neue Visualisierung "webui" (alternative zu vis & vis-2):

                                          @jogibear9988 1.9.9 visu selber geht eingeschränkt wieder. Startbild geht aber zb menue und javascripte gehen nicht.
                                          auch nicht mit chrome
                                          mfg tom

                                          mir nicht klar welche scripte wo nicht gehen...

                                          hab ein javascript probiert, hat funktioniert. Im startscreen gehen scripte auch.
                                          Welche scripte genau gehen wo nicht?

                                          1 Reply Last reply Reply Quote 0
                                          • jogibear9988
                                            jogibear9988 last edited by

                                            Sehe gerade blockly macht wohl probleme:

                                            f7a48c9f-4555-4151-87b4-e3c6ca5311b3-image.png

                                            das hab ich geupdatet, schauen was da geändert wurde

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            513
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

                                            20
                                            1074
                                            282537
                                            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