NEWS
Read oid in VIS HTML
-
@Gunthervc Why are you using a Table for that?
-
@CrunkFX To make a better and proper align on vis html.
-
@Gunthervc OK i'll take a Look at IT later
-
@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 name
then open the created folder and upload your images to it
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 questionsKind regards
CrunkFX -
@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.
-
@Gunthervc There's Dome was of creating a Button Image. I'll take a Look at IT.
-
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.
-
@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
-
@Gunthervc Could you try to use div's instead of Tables?
-
@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.
-
@Gunthervc
u kunt ook gebruik maken van het nederlandse forum hier https://forum.iobroker.net/category/40/nederlandshet 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 -
@Gunthervc kunt u hier uw html-script als code plaatsen of via directe chat?
-
Is it also possible to make these images to toggle (false/true) on click?.
-
@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.