Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. English
    3. Visualization
    4. Read oid in VIS HTML

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    Read oid in VIS HTML

    This topic has been deleted. Only users with topic management privileges can see it.
    • CrunkFX
      CrunkFX Forum Testing @Gunthervc last edited by

      @Gunthervc Why are you using a Table for that?

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

        @CrunkFX To make a better and proper align on vis html.

        CrunkFX 2 Replies Last reply Reply Quote 0
        • CrunkFX
          CrunkFX Forum Testing @Gunthervc last edited by

          @Gunthervc OK i'll take a Look at IT later

          1 Reply Last reply Reply Quote 0
          • CrunkFX
            CrunkFX Forum Testing @Gunthervc last edited by

            @Gunthervc So doing it with a table will be a bit tricky but not impossible. I tried finding a way without using scripts for that.

            First goto your VIS FileManager and Create an new folder with a custom nameScreenshot (22).png
            then open the created folder and upload your images to itScreenshot (21).png
            then put the actual states of your switched element into the names ( in my case true and false).

            After that you can close the window and goto the HTML Table and put the following line into it:

            <img src= /vis.0/test/img/lamp1/{0_userdata.0.yourlamporwhatever}.png height=100 width=100>
            

            This is the Path we created earlier:

            /vis.0/test/img/lamp1/
            

            This is the actual State(true, false,1,0,whatever):

            {0_userdata.0.yourlamporwhatever}
            

            The rest of the filename so if you use jpg put in .jpg:

            .png
            

            That should do the Trick.
            I´ll be available for any questions

            Kind regards
            CrunkFX

            Gunthervc 1 Reply Last reply Reply Quote 1
            • Gunthervc
              Gunthervc @CrunkFX last edited by

              @CrunkFX This is awesone!
              Search this for a long time.

              Is it also possible to make these images to toggle (false/true) on click?

              I appreciate your help.

              CrunkFX 1 Reply Last reply Reply Quote 0
              • CrunkFX
                CrunkFX Forum Testing @Gunthervc last edited by

                @Gunthervc There's Dome was of creating a Button Image. I'll take a Look at IT.

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

                  Is there some limitation on creating objects in 1 table?
                  After 10 rows the latest image won't be showing.
                  When adding 1 more (11rows) all table are gone and showing code.

                  A.jpg
                  B.jpg

                  CrunkFX 2 Replies Last reply Reply Quote 0
                  • CrunkFX
                    CrunkFX Forum Testing @Gunthervc last edited by CrunkFX

                    @Gunthervc We got that issue already. I'll try top find the Thread but i don't Know If There's was a workaround

                    we kunnen ook gewoon nederlands praten als dat makkelijker is

                    1 Reply Last reply Reply Quote 0
                    • CrunkFX
                      CrunkFX Forum Testing @Gunthervc last edited by

                      @Gunthervc Could you try to use div's instead of Tables?

                      Gunthervc 1 Reply Last reply Reply Quote 0
                      • Gunthervc
                        Gunthervc @CrunkFX last edited by Gunthervc

                        @CrunkFX thanks for the effort.

                        if you can find the topic please let me know.
                        i will try div instead of tables.

                        Ja in het nederlands zou makkelijker zijn maar weet niet of het is toegelaten op dit forum.
                        Je heb me al heel hard geholpen met aantal problemen.
                        Ik ben graag met deze zaken bezig maar schiet te kort in het schrijven van code. Het uitlezen is geen probleem maar kan ze nooit zelf bedenken.

                        Dit alles is begonnen met mijn simatic S7 waar ik momenteel alles mee doe.

                        CrunkFX 1 Reply Last reply Reply Quote 0
                        • CrunkFX
                          CrunkFX Forum Testing last edited by

                          @Gunthervc
                          u kunt ook gebruik maken van het nederlandse forum hier https://forum.iobroker.net/category/40/nederlands

                          het topic ging niet over html maar ik dacht dat wel.

                          er zijn hier scripts die het mogelijk maken om grote html-tabellen te maken, dus dit moet mogelijk zijn. Ik zal deze scripts uitvoeren en zien wat ze anders doen

                          Groeten
                          CrunkFX

                          1 Reply Last reply Reply Quote 0
                          • CrunkFX
                            CrunkFX Forum Testing @Gunthervc last edited by

                            @Gunthervc kunt u hier uw html-script als code plaatsen of via directe chat?

                            1 Reply Last reply Reply Quote 0
                            • O
                              oliverthom707 last edited by oliverthom707

                              Is it also possible to make these images to toggle (false/true) on click?.

                              CrunkFX 1 Reply Last reply Reply Quote 0
                              • CrunkFX
                                CrunkFX Forum Testing @oliverthom707 last edited by

                                @oliverthom707 Of course, it is possible, but somehow not very effective to build. I would consider doing it with a Material Table by Scrounger or just using Buttons in VIS. If created by hand we can´t get big HTML Tables to work properly.

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

                                Support us

                                ioBroker
                                Community Adapters
                                Donate

                                406
                                Online

                                31.8k
                                Users

                                80.0k
                                Topics

                                1.3m
                                Posts

                                vis
                                3
                                15
                                1075
                                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